summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/verttexttbxctrl.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-07-06 12:21:26 +0000
committerOliver Bolte <obo@openoffice.org>2004-07-06 12:21:26 +0000
commit62903bf2edb9f7c8802a1133f9e1872d62d9c9cc (patch)
tree802afe66edc2943427bc5ccc9e52da2c3d63c432 /svx/source/tbxctrls/verttexttbxctrl.cxx
parent248cd17b1e3b5266a940e563fe2be8e0943fc823 (diff)
INTEGRATION: CWS docking1 (1.5.502); FILE MERGED
2004/04/25 05:40:40 cd 1.5.502.1: #i26252# Transition of toolbar controllers
Diffstat (limited to 'svx/source/tbxctrls/verttexttbxctrl.cxx')
-rw-r--r--svx/source/tbxctrls/verttexttbxctrl.cxx35
1 files changed, 27 insertions, 8 deletions
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index 4b000aa7312f..a4ff8a10a153 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: verttexttbxctrl.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 15:05:01 $
+ * last change: $Author: obo $ $Date: 2004-07-06 13:21:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,17 +79,34 @@
#ifndef _SV_TOOLBOX_HXX
#include <vcl/toolbox.hxx>
#endif
+#include <rtl/ustring.hxx>
SFX_IMPL_TOOLBOX_CONTROL(SvxCTLTextTbxCtrl, SfxBoolItem);
SFX_IMPL_TOOLBOX_CONTROL(SvxVertTextTbxCtrl, SfxBoolItem);
-/* -----------------------------27.04.01 15:50--------------------------------
- ---------------------------------------------------------------------------*/
-SvxVertCTLTextTbxCtrl::SvxVertCTLTextTbxCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBindings ) :
- SfxToolBoxControl( nId, rTbx, rBindings ),
+// -----------------------------27.04.01 15:50--------------------------------
+
+SvxCTLTextTbxCtrl::SvxCTLTextTbxCtrl(USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+ SvxVertCTLTextTbxCtrl( nSlotId, nId, rTbx )
+{
+ SetVert(FALSE);
+ addStatusListener( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CTLFontState" )));
+}
+
+SvxVertTextTbxCtrl::SvxVertTextTbxCtrl( USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+ SvxVertCTLTextTbxCtrl( nSlotId, nId, rTbx )
+{
+ SetVert(TRUE);
+ addStatusListener( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:VerticalTextState" )));
+}
+
+/* ---------------------------------------------------------------------------*/
+SvxVertCTLTextTbxCtrl::SvxVertCTLTextTbxCtrl( USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+ SfxToolBoxControl( nSlotId, nId, rTbx ),
bCheckVertical(sal_True)
{
}
+
/* -----------------------------27.04.01 15:53--------------------------------
---------------------------------------------------------------------------*/
@@ -99,8 +116,10 @@ SvxVertCTLTextTbxCtrl::~SvxVertCTLTextTbxCtrl( )
/* -----------------------------27.04.01 15:50--------------------------------
---------------------------------------------------------------------------*/
-void SvxVertCTLTextTbxCtrl::StateChanged( USHORT nSID, SfxItemState eState,
- const SfxPoolItem* pState )
+void SvxVertCTLTextTbxCtrl::StateChanged(
+ USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState )
{
SvtLanguageOptions aLangOptions;
BOOL bCalc = sal_False;