c20f15c1eb
Now all names in basctl are in namespace 'basctl'. There were lots of names that included the word 'Basic' or 'BasicIDE' in it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox, BasicIDEModule, IDEBaseWindow etc. This information is now stored in the namespace name, so the names could be shortened: basctl::DocumentEntry, basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc. Some other minor changes: * LibInfos, LibInfoItem, LibInfoKey -> LibInfos, LibInfos::Item, LibInfos::Key * The header guards are now uniformly BASCTL_FILENAME_HXX, instead of e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'. * namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl * BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ... Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b Reviewed-on: https://gerrit.libreoffice.org/501 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
66 lines
1.9 KiB
C++
66 lines
1.9 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
|
*
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
* the License or as specified alternatively below. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
* for the specific language governing rights and limitations under the
|
|
* License.
|
|
*
|
|
* Major Contributor(s):
|
|
* [ Copyright (C) 2011 August Sodora <augsod@gmail.com> (initial developer) ]
|
|
*
|
|
* All Rights Reserved.
|
|
*
|
|
* For minor contributions see the git repository.
|
|
*
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
* either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
|
* the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
|
* in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
|
* instead of those above.
|
|
*/
|
|
#ifndef BASCTL_LINENUMBERWINDOW_HXX
|
|
#define BASCTL_LINENUMBERWINDOW_HXX
|
|
|
|
#include <vcl/window.hxx>
|
|
|
|
namespace basctl
|
|
{
|
|
|
|
class ModulWindow;
|
|
|
|
class LineNumberWindow : public Window
|
|
{
|
|
private:
|
|
ModulWindow* m_pModulWindow;
|
|
int m_nWidth;
|
|
long m_nCurYOffset;
|
|
int m_nBaseWidth;
|
|
virtual void DataChanged (DataChangedEvent const& rDCEvt);
|
|
|
|
protected:
|
|
virtual void Paint( const Rectangle& );
|
|
|
|
public:
|
|
LineNumberWindow (Window* pParent, ModulWindow* pModulWin);
|
|
~LineNumberWindow();
|
|
|
|
void DoScroll( long nHorzScroll, long nVertScroll );
|
|
|
|
bool SyncYOffset();
|
|
long& GetCurYOffset();
|
|
|
|
int GetWidth();
|
|
};
|
|
|
|
} // namespace basctl
|
|
|
|
#endif // BASCTL_LINENUMBERWINDOW_HXX
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|