diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-22 16:34:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-22 16:35:27 +0000 |
commit | 945394d8679e1f8c61d4cdab53420192a53472a6 (patch) | |
tree | 96a0fc67200893270f8d72a9ef89d34ec97a5607 | |
parent | 696fd019ca1cb04344342ee45c7677eb0dcd1c73 (diff) |
rename _HeaderTabListBox to MacroEventListBox
Change-Id: I310b1e0c48723b383b9eb15b8df763bac3bfd687
-rw-r--r-- | cui/source/customize/eventdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/customize/macropg.cxx | 20 | ||||
-rw-r--r-- | cui/source/customize/macropg_impl.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/headertablistbox.hxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/macroass.cxx | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/cui/source/customize/eventdlg.cxx b/cui/source/customize/eventdlg.cxx index abe8013a35bd..2fcb6cf082ec 100644 --- a/cui/source/customize/eventdlg.cxx +++ b/cui/source/customize/eventdlg.cxx @@ -63,7 +63,7 @@ SvxEventConfigPage::SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet, { mpImpl->pStrEvent = new OUString( CUI_RES( STR_EVENT )); mpImpl->pAssignedMacro = new OUString( CUI_RES( STR_ASSMACRO )); - mpImpl->pEventLB = new _HeaderTabListBox( this, CUI_RES( LB_EVENT )); + mpImpl->pEventLB = new MacroEventListBox( this, CUI_RES( LB_EVENT )); mpImpl->pAssignFT = new FixedText( this, CUI_RES( FT_ASSIGN )); mpImpl->pAssignPB = new PushButton( this, CUI_RES( PB_ASSIGN )); mpImpl->pDeletePB = new PushButton( this, CUI_RES( PB_DELETE )); diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index db9a6a8104d4..b362a99c21d5 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -99,9 +99,9 @@ static long nTabs[] = #define LB_MACROS_ITEMPOS 2 -IMPL_LINK( _HeaderTabListBox, HeaderEndDrag_Impl, HeaderBar*, pBar ) +IMPL_LINK( MacroEventListBox, HeaderEndDrag_Impl, HeaderBar*, pBar ) { - DBG_ASSERT( pBar == &maHeaderBar, "*_HeaderTabListBox::HeaderEndDrag_Impl: something is wrong here..." ); + DBG_ASSERT( pBar == &maHeaderBar, "*MacroEventListBox::HeaderEndDrag_Impl: something is wrong here..." ); (void)pBar; if( !maHeaderBar.GetCurItemId() ) @@ -133,7 +133,7 @@ IMPL_LINK( _HeaderTabListBox, HeaderEndDrag_Impl, HeaderBar*, pBar ) return 1; } -bool _HeaderTabListBox::Notify( NotifyEvent& rNEvt ) +bool MacroEventListBox::Notify( NotifyEvent& rNEvt ) { bool nRet = Control::Notify( rNEvt ); @@ -146,7 +146,7 @@ bool _HeaderTabListBox::Notify( NotifyEvent& rNEvt ) return nRet; } -_HeaderTabListBox::_HeaderTabListBox( Window* pParent, const ResId& rId ) +MacroEventListBox::MacroEventListBox( Window* pParent, const ResId& rId ) : Control( pParent, rId ) , maHeaderBar( this, WB_BUTTONSTYLE | WB_BOTTOMBORDER ) , maListBox( this, WB_HSCROLL | WB_CLIPCHILDREN | WB_TABSTOP ) @@ -157,7 +157,7 @@ _HeaderTabListBox::_HeaderTabListBox( Window* pParent, const ResId& rId ) maListBox.EnableCellFocus(); } -void _HeaderTabListBox::Resize() +void MacroEventListBox::Resize() { Control::Resize(); @@ -174,23 +174,23 @@ void _HeaderTabListBox::Resize() maListBox.SetPosSizePixel( aPnt, aSize ); } -void _HeaderTabListBox::ConnectElements( void ) +void MacroEventListBox::ConnectElements( void ) { Resize(); // set handler - maHeaderBar.SetEndDragHdl( LINK( this, _HeaderTabListBox, HeaderEndDrag_Impl ) ); + maHeaderBar.SetEndDragHdl( LINK( this, MacroEventListBox, HeaderEndDrag_Impl ) ); maListBox.InitHeaderBar( &maHeaderBar ); } -void _HeaderTabListBox::Show( sal_Bool bVisible, sal_uInt16 nFlags ) +void MacroEventListBox::Show( sal_Bool bVisible, sal_uInt16 nFlags ) { maListBox.Show( bVisible, nFlags ); maHeaderBar.Show( bVisible, nFlags ); } -void _HeaderTabListBox::Enable( bool bEnable, bool bChild ) +void MacroEventListBox::Enable( bool bEnable, bool bChild ) { maListBox.Enable( bEnable, bChild ); maHeaderBar.Enable( bEnable, bChild ); @@ -818,7 +818,7 @@ SvxMacroTabPage::SvxMacroTabPage( Window* pParent, const Reference< frame::XFram { mpImpl->pStrEvent = new OUString( CUI_RES( STR_EVENT ) ); mpImpl->pAssignedMacro = new OUString( CUI_RES( STR_ASSMACRO ) ); - mpImpl->pEventLB = new _HeaderTabListBox( this, CUI_RES( LB_EVENT ) ); + mpImpl->pEventLB = new MacroEventListBox( this, CUI_RES( LB_EVENT ) ); mpImpl->pAssignFT = new FixedText( this, CUI_RES( FT_ASSIGN ) ); mpImpl->pAssignPB = new PushButton( this, CUI_RES( PB_ASSIGN ) ); mpImpl->pDeletePB = new PushButton( this, CUI_RES( PB_DELETE ) ); diff --git a/cui/source/customize/macropg_impl.hxx b/cui/source/customize/macropg_impl.hxx index 6de18f096185..c46713781102 100644 --- a/cui/source/customize/macropg_impl.hxx +++ b/cui/source/customize/macropg_impl.hxx @@ -34,7 +34,7 @@ public: Image* pComponentImg; OUString* pStrEvent; OUString* pAssignedMacro; - _HeaderTabListBox* pEventLB; + MacroEventListBox* pEventLB; sal_Bool bReadOnly; sal_Bool bIDEDialogMode; }; diff --git a/cui/source/inc/headertablistbox.hxx b/cui/source/inc/headertablistbox.hxx index b39c36a7c178..0e0147507c56 100644 --- a/cui/source/inc/headertablistbox.hxx +++ b/cui/source/inc/headertablistbox.hxx @@ -24,7 +24,7 @@ #include <svtools/svtabbx.hxx> -class _HeaderTabListBox : public Control +class MacroEventListBox : public Control { private: HeaderBar maHeaderBar; @@ -33,7 +33,7 @@ protected: DECL_LINK( HeaderEndDrag_Impl, HeaderBar* ); virtual bool Notify( NotifyEvent& rNEvt ); public: - _HeaderTabListBox( Window* pParent, const ResId& rId ); + MacroEventListBox( Window* pParent, const ResId& rId ); void Resize(); diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 2bc3630cb431..f5044cec4adf 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -50,7 +50,7 @@ public: PushButton* pDeletePB; OUString* pStrEvent; OUString* pAssignedMacro; - _HeaderTabListBox* pEventLB; + MacroEventListBox* pEventLB; SfxConfigGroupListBox_Impl* pGroupLB; FixedText* pFT_MacroLBLabel; SfxConfigFunctionListBox_Impl* pMacroLB; @@ -464,7 +464,7 @@ SfxMacroTabPage::SfxMacroTabPage( Window* pParent, const ResId& rResId, const Re { mpImpl->pStrEvent = new OUString( CUI_RES( STR_EVENT ) ); mpImpl->pAssignedMacro = new OUString( CUI_RES( STR_ASSMACRO ) ); - mpImpl->pEventLB = new _HeaderTabListBox( this, CUI_RES( LB_EVENT ) ); + mpImpl->pEventLB = new MacroEventListBox( this, CUI_RES( LB_EVENT ) ); mpImpl->pAssignPB = new PushButton( this, CUI_RES( PB_ASSIGN ) ); mpImpl->pDeletePB = new PushButton( this, CUI_RES( PB_DELETE ) ); mpImpl->pMacroFT = new FixedText( this, CUI_RES( FT_MACRO ) ); |