diff options
author | Oliver Specht <os@openoffice.org> | 2002-09-13 12:47:00 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-09-13 12:47:00 +0000 |
commit | 63d1a850fb360017593467ef6dfb86f583f251ff (patch) | |
tree | 8bb6d205576a61663118128872889b5ec6ada7b2 /svx/source/tbxctrls/verttexttbxctrl.cxx | |
parent | f356c38e073128d7ea8c13b433cc1a8e6894c58a (diff) |
#100584# SvxCTLTextTbxCtrl created to support CTL-support-dependent buttons
Diffstat (limited to 'svx/source/tbxctrls/verttexttbxctrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/verttexttbxctrl.cxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx index 8cdf44f1c715..64534aa5e6a0 100644 --- a/svx/source/tbxctrls/verttexttbxctrl.cxx +++ b/svx/source/tbxctrls/verttexttbxctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: verttexttbxctrl.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: os $ $Date: 2001-07-13 12:31:02 $ + * last change: $Author: os $ $Date: 2002-09-13 13:38:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,8 +67,8 @@ #ifndef _SVX_VERT_TEXT_TBXCTRL_HXX #include <verttexttbxctrl.hxx> #endif -#ifndef _SVTOOLS_CJKOPTIONS_HXX -#include <svtools/cjkoptions.hxx> +#ifndef _SVTOOLS_LANGUAGEOPTIONS_HXX +#include <svtools/languageoptions.hxx> #endif #ifndef _SFXAPP_HXX #include <sfx2/app.hxx> @@ -80,29 +80,34 @@ #include <vcl/toolbox.hxx> #endif +SFX_IMPL_TOOLBOX_CONTROL(SvxCTLTextTbxCtrl, SfxBoolItem); SFX_IMPL_TOOLBOX_CONTROL(SvxVertTextTbxCtrl, SfxBoolItem); /* -----------------------------27.04.01 15:50-------------------------------- ---------------------------------------------------------------------------*/ -SvxVertTextTbxCtrl::SvxVertTextTbxCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBindings ) : - SfxToolBoxControl( nId, rTbx, rBindings ) +SvxVertCTLTextTbxCtrl::SvxVertCTLTextTbxCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBindings ) : + SfxToolBoxControl( nId, rTbx, rBindings ), + bCheckVertical(sal_True) { } /* -----------------------------27.04.01 15:53-------------------------------- ---------------------------------------------------------------------------*/ -SvxVertTextTbxCtrl::~SvxVertTextTbxCtrl( ) +SvxVertCTLTextTbxCtrl::~SvxVertCTLTextTbxCtrl( ) { } /* -----------------------------27.04.01 15:50-------------------------------- ---------------------------------------------------------------------------*/ -void SvxVertTextTbxCtrl::StateChanged( USHORT nSID, SfxItemState eState, +void SvxVertCTLTextTbxCtrl::StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState ) { BOOL bVisible = GetToolBox().IsItemVisible(GetId()); BOOL bCalc = sal_False; - if(SvtCJKOptions().IsVerticalTextEnabled()) + SvtLanguageOptions aLangOptions; + sal_Bool bEnabled = bCheckVertical ? + aLangOptions.IsVerticalTextEnabled() : aLangOptions.IsCTLFontEnabled(); + if(bEnabled) { if(!bVisible) { |