summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-07-01 12:44:08 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-07-01 12:44:08 +0000
commit6a554663d4bd731ce8ecc83a6fbc1275418ea285 (patch)
treeac5ed3c8366a88a3167d6c139ba6c74ceea584cc /svx/source/unodraw
parent53d99bfdeb2bd35161decf2488e654d933656ce0 (diff)
INTEGRATION: CWS impress144 (1.172.94); FILE MERGED
2008/06/10 14:09:02 cl 1.172.94.1: #i87698# fixed WritingMode property
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unoshape.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index c91c9b9e8b..13bb0c143f 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unoshape.cxx,v $
- * $Revision: 1.176 $
+ * $Revision: 1.177 $
*
* This file is part of OpenOffice.org.
*
@@ -4295,6 +4295,16 @@ bool SvxShapeText::setPropertyValueImpl( const SfxItemPropertyMap* pProperty, co
bool SvxShapeText::getPropertyValueImpl( const SfxItemPropertyMap* pProperty, ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
+ if( pProperty->nWID == SDRATTR_TEXTDIRECTION )
+ {
+ SdrTextObj* pTextObj = dynamic_cast< SdrTextObj* >( mpObj.get() );
+ if( pTextObj && pTextObj->IsVerticalWriting() )
+ rValue <<= com::sun::star::text::WritingMode_TB_RL;
+ else
+ rValue <<= com::sun::star::text::WritingMode_LR_TB;
+ return true;
+ }
+
return SvxShape::getPropertyValueImpl( pProperty, rValue );
}