summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/verttexttbxctrl.hxx3
-rw-r--r--svx/source/tbxctrls/verttexttbxctrl.cxx5
2 files changed, 1 insertions, 7 deletions
diff --git a/include/svx/verttexttbxctrl.hxx b/include/svx/verttexttbxctrl.hxx
index b49e5e81ce8a..bc6ce5a81753 100644
--- a/include/svx/verttexttbxctrl.hxx
+++ b/include/svx/verttexttbxctrl.hxx
@@ -27,15 +27,12 @@
*/
class SvxVertCTLTextTbxCtrl : public SfxToolBoxControl
{
- bool bCheckVertical; //determines whether vertical mode or CTL mode has to be checked
public:
SvxVertCTLTextTbxCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
virtual ~SvxVertCTLTextTbxCtrl();
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState ) SAL_OVERRIDE;
- void SetVert(bool bSet) {bCheckVertical = bSet;}
-
};
class SVX_DLLPUBLIC SvxCTLTextTbxCtrl : public SvxVertCTLTextTbxCtrl
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index 36a5e930dab4..d9834b5ccb6f 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -33,20 +33,17 @@ SFX_IMPL_TOOLBOX_CONTROL(SvxVertTextTbxCtrl, SfxBoolItem);
SvxCTLTextTbxCtrl::SvxCTLTextTbxCtrl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SvxVertCTLTextTbxCtrl( nSlotId, nId, rTbx )
{
- SetVert(false);
addStatusListener( OUString( ".uno:CTLFontState" ));
}
SvxVertTextTbxCtrl::SvxVertTextTbxCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SvxVertCTLTextTbxCtrl( nSlotId, nId, rTbx )
{
- SetVert(true);
addStatusListener( OUString( ".uno:VerticalTextState" ));
}
SvxVertCTLTextTbxCtrl::SvxVertCTLTextTbxCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
- SfxToolBoxControl( nSlotId, nId, rTbx ),
- bCheckVertical(true)
+ SfxToolBoxControl( nSlotId, nId, rTbx )
{
}