diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2016-12-21 01:15:45 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2016-12-22 02:24:29 +0000 |
commit | 51cb1ebcc46030ed9526d18a0e2e9279a4edf438 (patch) | |
tree | 227d5d505f392f4549aa98674b71aac2fd70bfdc | |
parent | eb319362c94f1c17beb355a53f392a9bcf939822 (diff) |
tdf#104737: Bullets and Numbering: inconsistent naming of last tab page
Change-Id: Id1d1d92933c110942fd232067620e8224686a915
Reviewed-on: https://gerrit.libreoffice.org/32256
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 584c745ea484e1f8047278fc83b41b30a90f884d)
Reviewed-on: https://gerrit.libreoffice.org/32321
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | svx/source/tbxctrls/bulletsnumbering.cxx | 15 | ||||
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/num.cxx | 2 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/bulletsandnumbering.ui | 4 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/templatedialog16.ui | 4 |
5 files changed, 7 insertions, 20 deletions
diff --git a/svx/source/tbxctrls/bulletsnumbering.cxx b/svx/source/tbxctrls/bulletsnumbering.cxx index 9da0da285a05..5671bf97ace7 100644 --- a/svx/source/tbxctrls/bulletsnumbering.cxx +++ b/svx/source/tbxctrls/bulletsnumbering.cxx @@ -48,7 +48,6 @@ class NumberingToolBoxControl : public svt::PopupWindowController public: explicit NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) override; - bool IsInImpressDraw(); // XStatusListener virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& rEvent ) @@ -189,14 +188,7 @@ void NumberingPopup::VSSelectHdl(void* pControl) } else if ( getSelectedEntryId() == 1 ) { - OUString aPageName; - if ( mrController.IsInImpressDraw() ) - aPageName = "customize"; - else - // Writer variants - aPageName = "options"; - - auto aArgs( comphelper::InitPropertySequence( { { "Page", css::uno::makeAny( aPageName ) } } ) ); + auto aArgs( comphelper::InitPropertySequence( { { "Page", css::uno::makeAny( OUString("customize") ) } } ) ); mrController.dispatchCommand( ".uno:OutlineBullet", aArgs ); } } @@ -214,11 +206,6 @@ VclPtr<vcl::Window> NumberingToolBoxControl::createPopupWindow( vcl::Window* pPa return VclPtr<NumberingPopup>::Create( *this, pParent, mePageType ); } -bool NumberingToolBoxControl::IsInImpressDraw() -{ - return ( m_sModuleName == "com.sun.star.presentation.PresentationDocument" || - m_sModuleName == "com.sun.star.drawing.DrawingDocument" ); -} void SAL_CALL NumberingToolBoxControl::statusChanged( const css::frame::FeatureStateEvent& rEvent ) throw ( css::uno::RuntimeException, std::exception ) diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index f1262f6ff38c..f5e431423057 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -315,7 +315,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, m_nBulletId = AddTabPage("bullets", RID_SVXPAGE_PICK_BULLET); m_nNumId = AddTabPage("outline", RID_SVXPAGE_PICK_NUM); m_nBmpId = AddTabPage("graphics", RID_SVXPAGE_PICK_BMP); - m_nNumOptId = AddTabPage("options", RID_SVXPAGE_NUM_OPTIONS ); + m_nNumOptId = AddTabPage("customize", RID_SVXPAGE_NUM_OPTIONS ); m_nNumPosId = AddTabPage("position", RID_SVXPAGE_NUM_POSITION ); } break; diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index ac2b5ad1728b..ed7c94e90907 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -960,7 +960,7 @@ SwSvxNumBulletTabDialog::SwSvxNumBulletTabDialog(vcl::Window* pParent, m_nBulletPageId = AddTabPage("bullets", RID_SVXPAGE_PICK_BULLET ); AddTabPage("outlinenum", RID_SVXPAGE_PICK_NUM ); AddTabPage("graphics", RID_SVXPAGE_PICK_BMP ); - m_nOptionsPageId = AddTabPage("options", RID_SVXPAGE_NUM_OPTIONS ); + m_nOptionsPageId = AddTabPage("customize", RID_SVXPAGE_NUM_OPTIONS ); m_nPositionPageId = AddTabPage("position", RID_SVXPAGE_NUM_POSITION ); } diff --git a/sw/uiconfig/swriter/ui/bulletsandnumbering.ui b/sw/uiconfig/swriter/ui/bulletsandnumbering.ui index 537e9ff14ceb..8d37037fbe1f 100644 --- a/sw/uiconfig/swriter/ui/bulletsandnumbering.ui +++ b/sw/uiconfig/swriter/ui/bulletsandnumbering.ui @@ -177,10 +177,10 @@ <placeholder/> </child> <child type="tab"> - <object class="GtkLabel" id="options"> + <object class="GtkLabel" id="customize"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Options</property> + <property name="label" translatable="yes">Customize</property> </object> <packing> <property name="position">5</property> diff --git a/sw/uiconfig/swriter/ui/templatedialog16.ui b/sw/uiconfig/swriter/ui/templatedialog16.ui index 28bf3fb363d6..a9cba6d9f130 100644 --- a/sw/uiconfig/swriter/ui/templatedialog16.ui +++ b/sw/uiconfig/swriter/ui/templatedialog16.ui @@ -193,10 +193,10 @@ <placeholder/> </child> <child type="tab"> - <object class="GtkLabel" id="options"> + <object class="GtkLabel" id="customize"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Options</property> + <property name="label" translatable="yes">Customize</property> </object> <packing> <property name="position">6</property> |