summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx
index bd505d6edac5..07532a4ecf22 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.cxx
@@ -33,7 +33,9 @@
#include "WrappedTextRotationProperty.hxx"
#include "macros.hxx"
+#include <com/sun/star/beans/XPropertyState.hpp>
+using namespace ::com::sun::star;
using ::com::sun::star::uno::Any;
using ::rtl::OUString;
@@ -43,13 +45,23 @@ namespace chart
{
//.............................................................................
-WrappedTextRotationProperty::WrappedTextRotationProperty()
+WrappedTextRotationProperty::WrappedTextRotationProperty( bool bDirectState )
: ::chart::WrappedProperty( C2U( "TextRotation" ), C2U( "TextRotation" ) )
+ , m_bDirectState( bDirectState )
{
}
WrappedTextRotationProperty::~WrappedTextRotationProperty()
{
}
+
+beans::PropertyState WrappedTextRotationProperty::getPropertyState( const uno::Reference< beans::XPropertyState >& xInnerPropertyState ) const
+ throw (beans::UnknownPropertyException, uno::RuntimeException)
+{
+ if( m_bDirectState )
+ return beans::PropertyState_DIRECT_VALUE;
+ return WrappedProperty::getPropertyState( xInnerPropertyState );
+}
+
Any WrappedTextRotationProperty::convertInnerToOuterValue( const Any& rInnerValue ) const
{
Any aRet;