summaryrefslogtreecommitdiff
path: root/chart2/source/controller/itemsetwrapper
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-06 08:08:12 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-06 08:08:12 +0000
commitecb113a8d09337508d3c786a074b0d424eb19222 (patch)
tree410d3aeccdb3fa5c08e0b6ad2d36df4021ca43ca /chart2/source/controller/itemsetwrapper
parent2e3fce6a1f3c794af14ae609eba92cd4b44a9c97 (diff)
INTEGRATION: CWS chart25 (1.11.86); FILE MERGED
2008/04/24 12:46:35 iha 1.11.86.2: RESYNC: (1.11-1.13); FILE MERGED 2008/04/10 09:15:56 iha 1.11.86.1: #i26572# set an explicit text for the font preview
Diffstat (limited to 'chart2/source/controller/itemsetwrapper')
-rw-r--r--chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
index 4dbc6af63b15..674fac30b3eb 100644
--- a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: CharacterPropertyItemConverter.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
* This file is part of OpenOffice.org.
*
@@ -42,7 +42,10 @@
#include <svx/postitem.hxx>
#include <svx/wghtitem.hxx>
#include <svx/fhgtitem.hxx>
+#include <svtools/stritem.hxx>
+
#include <com/sun/star/beans/XPropertyState.hpp>
+#include <com/sun/star/chart2/XFormattedString.hpp>
using namespace ::com::sun::star;
@@ -272,6 +275,19 @@ void CharacterPropertyItemConverter::FillSpecialItem(
}
}
break;
+
+ case SID_CHAR_DLG_PREVIEW_STRING:
+ {
+ uno::Reference< chart2::XFormattedString > xFormattedString( GetPropertySet(), uno::UNO_QUERY );
+ if( xFormattedString.is() )
+ {
+ ::rtl::OUString aString = xFormattedString->getString();
+ rOutItemSet.Put( SfxStringItem( nWhichId, aString ) );
+ }
+ else
+ rOutItemSet.Put( SfxStringItem( nWhichId, C2U( "" ) ) );
+ }
+ break;
}
}