Kaydet (Commit) 584c745e authored tarafından Tamás Zolnai's avatar Tamás Zolnai

tdf#104737: Bullets and Numbering: inconsistent naming of last tab page

Change-Id: Id1d1d92933c110942fd232067620e8224686a915
Reviewed-on: https://gerrit.libreoffice.org/32256Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 331c6698
......@@ -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 )
......
......@@ -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;
......
......@@ -959,7 +959,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 );
}
......
......@@ -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>
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment