diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-25 12:43:27 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-08-29 20:48:28 +0000 |
commit | c20f15c1ebf648c3ed71de0ac4771029c9bb59bb (patch) | |
tree | da9f3dddc80492e7ea2435aa6e0bf02e8d40153e /basctl/source/accessibility | |
parent | cda156257003df673fa853a0a5ffcd1cb4848d43 (diff) |
Basic IDE: namespace basctl
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>
Diffstat (limited to 'basctl/source/accessibility')
-rw-r--r-- | basctl/source/accessibility/accessibledialogcontrolshape.cxx | 7 | ||||
-rw-r--r-- | basctl/source/accessibility/accessibledialogwindow.cxx | 15 |
2 files changed, 16 insertions, 6 deletions
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index ccfd4af7247b..4b58550e92d0 100644 --- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx +++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx @@ -33,6 +33,9 @@ #include <toolkit/helper/vclunohelper.hxx> #include <vcl/svapp.hxx> +namespace basctl +{ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -45,7 +48,7 @@ using namespace ::comphelper; // class AccessibleDialogControlShape // ----------------------------------------------------------------------------- -AccessibleDialogControlShape::AccessibleDialogControlShape (basctl::DialogWindow* pDialogWindow, DlgEdObj* pDlgEdObj) +AccessibleDialogControlShape::AccessibleDialogControlShape (DialogWindow* pDialogWindow, DlgEdObj* pDlgEdObj) :AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() ) ,m_pDialogWindow( pDialogWindow ) ,m_pDlgEdObj( pDlgEdObj ) @@ -607,4 +610,6 @@ Reference< awt::XFont > AccessibleDialogControlShape::getFont( ) throw (Runtime // ----------------------------------------------------------------------------- +} // namespace basctl + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx index a36c5b2b221e..c9b19717bf3e 100644 --- a/basctl/source/accessibility/accessibledialogwindow.cxx +++ b/basctl/source/accessibility/accessibledialogwindow.cxx @@ -36,6 +36,9 @@ #include <toolkit/helper/convert.hxx> #include <vcl/svapp.hxx> +namespace basctl +{ + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -538,26 +541,26 @@ void AccessibleDialogWindow::Notify( SfxBroadcaster&, const SfxHint& rHint ) } else if (DlgEdHint const* pDlgEdHint = dynamic_cast<DlgEdHint const*>(&rHint)) { - switch ( pDlgEdHint->GetKind() ) + switch (pDlgEdHint->GetKind()) { - case DLGED_HINT_WINDOWSCROLLED: + case DlgEdHint::WINDOWSCROLLED: { UpdateChildren(); UpdateBounds(); } break; - case DLGED_HINT_LAYERCHANGED: + case DlgEdHint::LAYERCHANGED: { if (DlgEdObj* pDlgEdObj = pDlgEdHint->GetObject()) UpdateChild( ChildDescriptor( pDlgEdObj ) ); } break; - case DLGED_HINT_OBJORDERCHANGED: + case DlgEdHint::OBJORDERCHANGED: { SortChildren(); } break; - case DLGED_HINT_SELECTIONCHANGED: + case DlgEdHint::SELECTIONCHANGED: { UpdateFocused(); UpdateSelected(); @@ -1093,4 +1096,6 @@ void AccessibleDialogWindow::deselectAccessibleChild( sal_Int32 nChildIndex ) th // ----------------------------------------------------------------------------- +} // namespace basctl + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |