diff options
author | Zheng Fan <zhengfan@apache.org> | 2013-04-26 01:22:59 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:23 +0100 |
commit | 4a2b3f15b334b8c33826305218b8ec872522ad1d (patch) | |
tree | 7d34bba81aababe8acea6fec5416d19e7fc76a82 /svx/source/sidebar/paragraph | |
parent | e6c40f56516d6e03c6a39c4389b421835dc51492 (diff) |
Resolves: #ii122166# refine icons of numbering and bullets toolbox...
inside sidebar for consistency
(cherry picked from commit 6818706a832b4f6281cdf31d274b4a72c0ff2d58)
Conflicts:
svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
Change-Id: Ida87df66cd35066415a83e369008a4b1e20ab171
Diffstat (limited to 'svx/source/sidebar/paragraph')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 15 | ||||
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.hxx | 5 |
2 files changed, 16 insertions, 4 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 5716de9e03d5..62d9640467bc 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -465,7 +465,11 @@ void ParaPropertyPanel::InitToolBoxBulletsNumbering() maTBxNumBullet->SetItemImage( IID_NUMBER, maNumBImageListRTL.GetImage( IID_NUMBER ) ); } else - InitImageList(maTBxNumBullet, maNumBImageList, maNumBImageListH); + //i122166, the icons for numbering or bullets toolbox inside toolbar and sidebar should be the same one + { + maBulletOnOff.SetupToolBoxItem(*maTBxNumBullet, IID_BULLET); + maNumberOnOff.SetupToolBoxItem(*maTBxNumBullet, IID_NUMBER); + } maTBxNumBullet->SetDropdownClickHdl(LINK(this,ParaPropertyPanel,NumBTbxDDHandler)); maTBxNumBullet->SetSelectHdl(LINK(this,ParaPropertyPanel,NumBTbxSelectHandler)); @@ -1545,7 +1549,7 @@ PopupControl* ParaPropertyPanel::CreateBGColorPopupControl (PopupContainer* pPar ParaPropertyPanel::ParaPropertyPanel(Window* pParent, - const cssu::Reference<css::frame::XFrame>& /*rxFrame*/, + const cssu::Reference<css::frame::XFrame>& rxFrame, SfxBindings* pBindings, const cssu::Reference<css::ui::XSidebar>& rxSidebar) : Control(pParent, SVX_RES(RID_SIDEBAR_PARA_PANEL)), @@ -1631,12 +1635,15 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent, maVertTop (SID_TABLE_VERT_NONE, *pBindings,*this), maVertCenter (SID_TABLE_VERT_CENTER, *pBindings,*this), maVertBottom (SID_TABLE_VERT_BOTTOM,*pBindings,*this), - maBulletOnOff (FN_NUM_BULLET_ON, *pBindings,*this), - maNumberOnOff (FN_NUM_NUMBERING_ON, *pBindings,*this), + //i122166, the icons for numbering or bullets toolbox inside toolbar and sidebar should be the same one + maBulletOnOff (FN_NUM_BULLET_ON, *pBindings,*this,A2S("DefaultBullet"),rxFrame), + maNumberOnOff (FN_NUM_NUMBERING_ON, *pBindings,*this,A2S("DefaultNumbering"),rxFrame), + //End i122166 maBackColorControl (SID_BACKGROUND_COLOR, *pBindings,*this), m_aMetricCtl (SID_ATTR_METRIC, *pBindings,*this), maBulletNumRuleIndex (FN_BUL_NUM_RULE_INDEX, *pBindings,*this), maNumNumRuleIndex (FN_NUM_NUM_RULE_INDEX, *pBindings,*this), + mxFrame(rxFrame), maContext(), mpBindings(pBindings), maLineSpacePopup(this, ::boost::bind(&ParaPropertyPanel::CreateLineSpacingControl, this, _1)), diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index 7bf9380eff35..267fb8b3449f 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -212,6 +212,9 @@ private: ::sfx2::sidebar::ControllerItem maBulletNumRuleIndex; ::sfx2::sidebar::ControllerItem maNumNumRuleIndex; + //i122166, the icons for numbering or bullets toolbox inside toolbar and sidebar should be the same one + cssu::Reference<css::frame::XFrame> mxFrame; + //End of i122166 ::sfx2::sidebar::EnumContext maContext; SfxBindings* mpBindings; ParaLineSpacingPopup maLineSpacePopup; @@ -250,6 +253,8 @@ private: void StateChangeIncDecImpl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); // Add toggle state for numbering and bullet icons void StateChangeBulletNumImpl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); + //Modified for Numbering&Bullets Dialog UX Enh + //Handing the transferred the num rule index data of the current selection void StateChangeBulletNumRuleImpl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); void initial(); |