diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
commit | c717c57260486d25d6f33ffafa9f91acbc775a0a (patch) | |
tree | 5ae47dd7433a869e0b26ba10b86ad73511fe4977 /xmloff | |
parent | 21e15edc7ea870c8d3549730201d1b0c47dcebad (diff) |
CWS-TOOLING: integrate CWS chart30
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/xmltoken.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/chart/PropertyMap.hxx | 5 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 12 | ||||
-rw-r--r-- | xmloff/source/core/xmltoken.cxx | 2 |
4 files changed, 19 insertions, 2 deletions
diff --git a/xmloff/inc/xmloff/xmltoken.hxx b/xmloff/inc/xmloff/xmltoken.hxx index 3ea5bca9fe26..075515ff8446 100644 --- a/xmloff/inc/xmloff/xmltoken.hxx +++ b/xmloff/inc/xmloff/xmltoken.hxx @@ -2961,6 +2961,8 @@ namespace xmloff { namespace token { XML_PERCENTAGE_DATA_STYLE_NAME, XML_VALUE_AND_PERCENTAGE, XML_GROUP_BARS_PER_AXIS, + XML_AUTOMATIC_POSITION, + XML_AUTOMATIC_SIZE, XML_REVERSE_DIRECTION, XML_LABEL_SEPARATOR, XML_LABEL_POSITION, diff --git a/xmloff/source/chart/PropertyMap.hxx b/xmloff/source/chart/PropertyMap.hxx index 5ff5ffd30d22..c64aea895c92 100644 --- a/xmloff/source/chart/PropertyMap.hxx +++ b/xmloff/source/chart/PropertyMap.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PropertyMap.hxx,v $ - * $Revision: 1.35 $ + * $Revision: 1.34.8.3 $ * * This file is part of OpenOffice.org. * @@ -133,8 +133,11 @@ const XMLPropertyMapEntry aXMLChartPropMap[] = MAP_ENTRY( "StackedBarsConnected", CHART, XML_CONNECT_BARS, XML_TYPE_BOOL ), MAP_ENTRY_ODF12( "GroupBarsPerAxis", CHART, XML_GROUP_BARS_PER_AXIS, XML_TYPE_BOOL ), + MAP_ENTRY_ODF12( "AutomaticPosition", CHART, XML_AUTOMATIC_POSITION, XML_TYPE_BOOL ), + MAP_ENTRY_ODF12( "AutomaticSize", CHART, XML_AUTOMATIC_SIZE, XML_TYPE_BOOL ), MAP_ENTRY_ODF12( "StartingAngle", CHART, XML_ANGLE_OFFSET, XML_TYPE_NUMBER ), MAP_ENTRY_ODF12( "MissingValueTreatment", CHART, XML_TREAT_EMPTY_CELLS, XML_SCH_TYPE_MISSING_VALUE_TREATMENT ), + MAP_ENTRY( "ScaleText", CHART, XML_SCALE_TEXT, XML_TYPE_BOOL ), // spline settings MAP_ENTRY( "SplineOrder", CHART, XML_SPLINE_ORDER, XML_TYPE_NUMBER ), diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index 5644757f7a77..8b18a74a9bc0 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SchXMLPlotAreaContext.cxx,v $ - * $Revision: 1.47 $ + * $Revision: 1.47.38.1 $ * * This file is part of OpenOffice.org. * @@ -406,6 +406,16 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri mrSeriesDefaultsAndStyles.maLinesOnProperty = SchXMLTools::getPropertyFromContext( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Lines")), pPropStyleContext, pStylesCtxt ); + //handle automatic position and size + bool bAutoSize = false; + bool bAutoPosition = false; + SchXMLTools::getPropertyFromContext( + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutomaticSize")), pPropStyleContext, pStylesCtxt ) >>= bAutoSize; + SchXMLTools::getPropertyFromContext( + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutomaticPosition")), pPropStyleContext, pStylesCtxt ) >>= bAutoPosition; + mbHasSize = mbHasSize && !bAutoSize; + mbHasPosition = mbHasPosition && !bAutoPosition; + //correct default starting angle for old 3D pies if( SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0( GetImport().GetModel() ) ) { diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx index 9325939efbb2..13c08bac6e37 100644 --- a/xmloff/source/core/xmltoken.cxx +++ b/xmloff/source/core/xmltoken.cxx @@ -2961,6 +2961,8 @@ namespace xmloff { namespace token { TOKEN( "percentage-data-style-name", XML_PERCENTAGE_DATA_STYLE_NAME ), TOKEN( "value-and-percentage", XML_VALUE_AND_PERCENTAGE ), TOKEN( "group-bars-per-axis", XML_GROUP_BARS_PER_AXIS ), + TOKEN( "auto-position", XML_AUTOMATIC_POSITION ), + TOKEN( "auto-size", XML_AUTOMATIC_SIZE ), TOKEN( "reverse-direction", XML_REVERSE_DIRECTION ), TOKEN( "label-separator", XML_LABEL_SEPARATOR ), TOKEN( "label-position", XML_LABEL_POSITION ), |