summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/transporttypes.hxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-01-13 17:06:34 +0100
committerIngrid Halama <iha@openoffice.org>2010-01-13 17:06:34 +0100
commit738f329af2e92ca824cdc810799a2801a60bd23d (patch)
tree50739685d0b179ecfd7ad45d3c1974ecafe754cc /xmloff/source/chart/transporttypes.hxx
parentb1063d4a9633d2c90b201ad69988bb94ba8d6057 (diff)
chartmultiline: #i82971# complex categories (part3 - complex categories for internal data + load/save + copy/paste) + cleanup
Diffstat (limited to 'xmloff/source/chart/transporttypes.hxx')
-rw-r--r--xmloff/source/chart/transporttypes.hxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/xmloff/source/chart/transporttypes.hxx b/xmloff/source/chart/transporttypes.hxx
index 6046ec4606fc..c9eaf415a663 100644
--- a/xmloff/source/chart/transporttypes.hxx
+++ b/xmloff/source/chart/transporttypes.hxx
@@ -40,17 +40,37 @@ enum SchXMLCellType
{
SCH_CELL_TYPE_UNKNOWN,
SCH_CELL_TYPE_FLOAT,
- SCH_CELL_TYPE_STRING
+ SCH_CELL_TYPE_STRING,
+ SCH_CELL_TYPE_COMPLEX_STRING
};
struct SchXMLCell
{
rtl::OUString aString;
+ ::com::sun::star::uno::Sequence< rtl::OUString >* pComplexString;
double fValue;
SchXMLCellType eType;
rtl::OUString aRangeId;
- SchXMLCell() : fValue( 0.0 ), eType( SCH_CELL_TYPE_UNKNOWN ) {}
+ SchXMLCell() : pComplexString(0), fValue( 0.0 ), eType( SCH_CELL_TYPE_UNKNOWN )
+ {}
+
+ SchXMLCell( const SchXMLCell& rOther )
+ : aString( rOther.aString )
+ , pComplexString( rOther.pComplexString ? new ::com::sun::star::uno::Sequence< rtl::OUString >( *rOther.pComplexString ) : 0 )
+ , fValue( rOther.fValue )
+ , eType( rOther.eType )
+ , aRangeId( rOther.aRangeId )
+ {}
+
+ ~SchXMLCell()
+ {
+ if(pComplexString)
+ {
+ delete pComplexString;
+ pComplexString=0;
+ }
+ }
};
struct SchXMLTable