summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh2.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
commit49c3ed6df3f204e9d430665721dab2f2284022d9 (patch)
treea4b05134228e5ab2d7f6565d32644f0ae108e628 /sc/source/ui/view/tabvwsh2.cxx
parent0c93701f87f15fe544ada098286fc59ddb29e882 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'sc/source/ui/view/tabvwsh2.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx
index 7091d2a84..3cebbf7d2 100644
--- a/sc/source/ui/view/tabvwsh2.cxx
+++ b/sc/source/ui/view/tabvwsh2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabvwsh2.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: nn $ $Date: 2002-12-11 14:13:00 $
+ * last change: $Author: hr $ $Date: 2003-03-26 18:06:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,6 +76,9 @@
#include <svtools/aeitem.hxx>
#include <svtools/whiter.hxx>
#include <svtools/moduleoptions.hxx>
+#ifndef _SVTOOLS_LANGUAGEOPTIONS_HXX
+#include <svtools/languageoptions.hxx>
+#endif
#include <sfx2/dispatch.hxx>
#include "tabvwsh.hxx"
@@ -434,6 +437,11 @@ void ScTabViewShell::GetDrawState(SfxItemSet &rSet)
nPutId != SID_DRAW_CAPTION_VERTICAL )
nPutId = USHRT_MAX;
SfxAllEnumItem aItem( nWhich, nPutId );
+ if ( !SvtLanguageOptions().IsVerticalTextEnabled() )
+ {
+ aItem.DisableValue( SID_DRAW_TEXT_VERTICAL );
+ aItem.DisableValue( SID_DRAW_CAPTION_VERTICAL );
+ }
rSet.Put( aItem );
}
break;