summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-12-21 01:15:45 +0000
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-12-21 11:39:56 +0000
commit584c745ea484e1f8047278fc83b41b30a90f884d (patch)
tree1307a57b3ee82d0bad79c1ccec498377e5ff46bc /svx
parent331c66989fca9e1c792f4a8dab807aca98b70740 (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>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/bulletsnumbering.cxx15
1 files changed, 1 insertions, 14 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 )