LibreOffice Module xmloff (master) 1
Macros | Variables
PropertyMaps.cxx File Reference
#include "PropertyMap.hxx"
#include <sax/tools/converter.hxx>
#include "SchXMLTools.hxx"
#include <XMLChartPropertySetMapper.hxx>
#include "XMLErrorIndicatorPropertyHdl.hxx"
#include "XMLErrorBarStylePropertyHdl.hxx"
#include "XMLTextOrientationHdl.hxx"
#include "XMLSymbolTypePropertyHdl.hxx"
#include "XMLAxisPositionPropertyHdl.hxx"
#include <propimp0.hxx>
#include <xmloff/EnumPropertyHdl.hxx>
#include <comphelper/attributelist.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/shapeimport.hxx>
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/prhdlfac.hxx>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/chart/ChartAxisMarks.hpp>
#include <com/sun/star/chart/ChartDataCaption.hpp>
#include <com/sun/star/chart2/MovingAverageType.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <rtl/ustrbuf.hxx>
#include <xmlprop.hxx>
Include dependency graph for PropertyMaps.cxx:

Go to the source code of this file.

Macros

#define SCH_XML_SETFLAG(status, flag)   (status)|= (flag)
 
#define SCH_XML_UNSETFLAG(status, flag)   (status) = ((status) | (flag)) - (flag)
 
#define MAP_FULL(ApiName, NameSpace, XMLTokenName, XMLType, ContextId, EarliestODFVersionForExport)   { ApiName, XML_NAMESPACE_##NameSpace, xmloff::token::XMLTokenName, XMLType|XML_TYPE_PROP_CHART, ContextId, EarliestODFVersionForExport, false }
 
#define MAP_ENTRY(a, ns, nm, t)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_010, false }
 
#define MAP_ENTRY_ODF12(a, ns, nm, t)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_012, false }
 
#define MAP_ENTRY_ODF13(a, ns, nm, t)   { a, ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_013, false }
 
#define MAP_ENTRY_ODF_EXT(a, ns, nm, t)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }
 
#define MAP_ENTRY_ODF_EXT_IMPORT(a, ns, nm, t)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }
 
#define MAP_CONTEXT(a, ns, nm, t, c)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, c, SvtSaveOptions::ODFSVER_010, false }
 
#define MAP_SPECIAL(a, ns, nm, t, c)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_010, false }
 
#define MAP_SPECIAL_ODF12(a, ns, nm, t, c)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_012, false }
 
#define MAP_SPECIAL_ODF13(a, ns, nm, t, c)   { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_013, false }
 
#define MAP_ENTRY_END   { nullptr }
 

Variables

const XMLPropertyMapEntry aXMLChartPropMap []
 
const SvXMLEnumMapEntry< css::chart::ChartAxisLabelPosition > aXMLChartAxisLabelPositionEnumMap []
 
const SvXMLEnumMapEntry< css::chart::ChartAxisMarkPosition > aXMLChartAxisMarkPositionEnumMap []
 
const SvXMLEnumMapEntry< css::chart::ChartAxisArrangeOrderType > aXMLChartAxisArrangementEnumMap []
 
const SvXMLEnumMapEntry< sal_Int32 > aXMLChartErrorBarStyleEnumMap []
 
const SvXMLEnumMapEntry< sal_Int32 > aXMLChartSolidTypeEnumMap []
 
const SvXMLEnumMapEntry< css::chart::ChartDataRowSource > aXMLChartDataRowSourceTypeEnumMap []
 
const SvXMLEnumMapEntry< sal_Int32 > g_XMLChartInterpolationTypeEnumMap_ODF12 []
 
const SvXMLEnumMapEntry< sal_Int32 > g_XMLChartInterpolationTypeEnumMap []
 
const SvXMLEnumMapEntry< sal_Int32 > aXMLChartDataLabelPlacementEnumMap []
 
const SvXMLEnumMapEntry< sal_Int32 > aXMLChartMissingValueTreatmentEnumMap []
 

Macro Definition Documentation

◆ MAP_CONTEXT

#define MAP_CONTEXT (   a,
  ns,
  nm,
  t,
 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, c, SvtSaveOptions::ODFSVER_010, false }

Definition at line 69 of file PropertyMaps.cxx.

◆ MAP_ENTRY

#define MAP_ENTRY (   a,
  ns,
  nm,
  t 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_010, false }

Definition at line 64 of file PropertyMaps.cxx.

◆ MAP_ENTRY_END

#define MAP_ENTRY_END   { nullptr }

Definition at line 73 of file PropertyMaps.cxx.

◆ MAP_ENTRY_ODF12

#define MAP_ENTRY_ODF12 (   a,
  ns,
  nm,
  t 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_012, false }

Definition at line 65 of file PropertyMaps.cxx.

◆ MAP_ENTRY_ODF13

#define MAP_ENTRY_ODF13 (   a,
  ns,
  nm,
  t 
)    { a, ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_013, false }

Definition at line 66 of file PropertyMaps.cxx.

◆ MAP_ENTRY_ODF_EXT

#define MAP_ENTRY_ODF_EXT (   a,
  ns,
  nm,
  t 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }

Definition at line 67 of file PropertyMaps.cxx.

◆ MAP_ENTRY_ODF_EXT_IMPORT

#define MAP_ENTRY_ODF_EXT_IMPORT (   a,
  ns,
  nm,
  t 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }

Definition at line 68 of file PropertyMaps.cxx.

◆ MAP_FULL

#define MAP_FULL (   ApiName,
  NameSpace,
  XMLTokenName,
  XMLType,
  ContextId,
  EarliestODFVersionForExport 
)    { ApiName, XML_NAMESPACE_##NameSpace, xmloff::token::XMLTokenName, XMLType|XML_TYPE_PROP_CHART, ContextId, EarliestODFVersionForExport, false }

Definition at line 63 of file PropertyMaps.cxx.

◆ MAP_SPECIAL

#define MAP_SPECIAL (   a,
  ns,
  nm,
  t,
 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_010, false }

Definition at line 70 of file PropertyMaps.cxx.

◆ MAP_SPECIAL_ODF12

#define MAP_SPECIAL_ODF12 (   a,
  ns,
  nm,
  t,
 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_012, false }

Definition at line 71 of file PropertyMaps.cxx.

◆ MAP_SPECIAL_ODF13

#define MAP_SPECIAL_ODF13 (   a,
  ns,
  nm,
  t,
 
)    { a, XML_NAMESPACE_##ns, xmloff::token::nm, t|XML_TYPE_PROP_CHART | MID_FLAG_SPECIAL_ITEM, c, SvtSaveOptions::ODFSVER_013, false }

Definition at line 72 of file PropertyMaps.cxx.

◆ SCH_XML_SETFLAG

#define SCH_XML_SETFLAG (   status,
  flag 
)    (status)|= (flag)

Definition at line 55 of file PropertyMaps.cxx.

◆ SCH_XML_UNSETFLAG

#define SCH_XML_UNSETFLAG (   status,
  flag 
)    (status) = ((status) | (flag)) - (flag)

Definition at line 56 of file PropertyMaps.cxx.

Variable Documentation

◆ aXMLChartAxisArrangementEnumMap

const SvXMLEnumMapEntry<css::chart::ChartAxisArrangeOrderType> aXMLChartAxisArrangementEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_SIDE_BY_SIDE, css::chart::ChartAxisArrangeOrderType_SIDE_BY_SIDE },
{ ::xmloff::token::XML_STAGGER_EVEN, css::chart::ChartAxisArrangeOrderType_STAGGER_EVEN },
{ ::xmloff::token::XML_STAGGER_ODD, css::chart::ChartAxisArrangeOrderType_STAGGER_ODD },
{ ::xmloff::token::XML_TOKEN_INVALID, css::chart::ChartAxisArrangeOrderType(0) }
}

Definition at line 269 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartAxisLabelPositionEnumMap

const SvXMLEnumMapEntry<css::chart::ChartAxisLabelPosition> aXMLChartAxisLabelPositionEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_NEAR_AXIS, css::chart::ChartAxisLabelPosition_NEAR_AXIS },
{ ::xmloff::token::XML_NEAR_AXIS_OTHER_SIDE, css::chart::ChartAxisLabelPosition_NEAR_AXIS_OTHER_SIDE },
{ ::xmloff::token::XML_OUTSIDE_START, css::chart::ChartAxisLabelPosition_OUTSIDE_START },
{ ::xmloff::token::XML_OUTSIDE_END, css::chart::ChartAxisLabelPosition_OUTSIDE_END },
{ ::xmloff::token::XML_OUTSIDE_MINIMUM, css::chart::ChartAxisLabelPosition_OUTSIDE_START },
{ ::xmloff::token::XML_OUTSIDE_MAXIMUM, css::chart::ChartAxisLabelPosition_OUTSIDE_END },
{ ::xmloff::token::XML_TOKEN_INVALID, css::chart::ChartAxisLabelPosition(0) }
}
@ XML_NEAR_AXIS_OTHER_SIDE
Definition: xmltoken.hxx:3328

Definition at line 250 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartAxisMarkPositionEnumMap

const SvXMLEnumMapEntry<css::chart::ChartAxisMarkPosition> aXMLChartAxisMarkPositionEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_AT_LABELS, css::chart::ChartAxisMarkPosition_AT_LABELS },
{ ::xmloff::token::XML_AT_AXIS, css::chart::ChartAxisMarkPosition_AT_AXIS },
{ ::xmloff::token::XML_AT_LABELS_AND_AXIS, css::chart::ChartAxisMarkPosition_AT_LABELS_AND_AXIS },
{ ::xmloff::token::XML_TOKEN_INVALID, css::chart::ChartAxisMarkPosition(0) }
}
@ XML_AT_LABELS_AND_AXIS
Definition: xmltoken.hxx:3334

Definition at line 261 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartDataLabelPlacementEnumMap

const SvXMLEnumMapEntry<sal_Int32> aXMLChartDataLabelPlacementEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_AVOID_OVERLAP, css::chart::DataLabelPlacement::AVOID_OVERLAP },
{ ::xmloff::token::XML_CENTER, css::chart::DataLabelPlacement::CENTER },
{ ::xmloff::token::XML_TOP, css::chart::DataLabelPlacement::TOP },
{ ::xmloff::token::XML_TOP_LEFT, css::chart::DataLabelPlacement::TOP_LEFT },
{ ::xmloff::token::XML_LEFT, css::chart::DataLabelPlacement::LEFT },
{ ::xmloff::token::XML_BOTTOM_LEFT, css::chart::DataLabelPlacement::BOTTOM_LEFT },
{ ::xmloff::token::XML_BOTTOM, css::chart::DataLabelPlacement::BOTTOM },
{ ::xmloff::token::XML_BOTTOM_RIGHT, css::chart::DataLabelPlacement::BOTTOM_RIGHT },
{ ::xmloff::token::XML_RIGHT, css::chart::DataLabelPlacement::RIGHT },
{ ::xmloff::token::XML_TOP_RIGHT, css::chart::DataLabelPlacement::TOP_RIGHT },
{ ::xmloff::token::XML_INSIDE, css::chart::DataLabelPlacement::INSIDE },
{ ::xmloff::token::XML_OUTSIDE, css::chart::DataLabelPlacement::OUTSIDE },
{ ::xmloff::token::XML_NEAR_ORIGIN, css::chart::DataLabelPlacement::NEAR_ORIGIN },
}

Definition at line 336 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartDataRowSourceTypeEnumMap

const SvXMLEnumMapEntry<css::chart::ChartDataRowSource> aXMLChartDataRowSourceTypeEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_COLUMNS, css::chart::ChartDataRowSource_COLUMNS },
{ ::xmloff::token::XML_ROWS, css::chart::ChartDataRowSource_ROWS },
{ ::xmloff::token::XML_TOKEN_INVALID, css::chart::ChartDataRowSource(0) }
}

Definition at line 299 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartErrorBarStyleEnumMap

const SvXMLEnumMapEntry<sal_Int32> aXMLChartErrorBarStyleEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_NONE, css::chart::ErrorBarStyle::NONE },
{ ::xmloff::token::XML_VARIANCE, css::chart::ErrorBarStyle::VARIANCE },
{ ::xmloff::token::XML_STANDARD_DEVIATION, css::chart::ErrorBarStyle::STANDARD_DEVIATION },
{ ::xmloff::token::XML_CONSTANT, css::chart::ErrorBarStyle::ABSOLUTE },
{ ::xmloff::token::XML_PERCENTAGE, css::chart::ErrorBarStyle::RELATIVE },
{ ::xmloff::token::XML_ERROR_MARGIN, css::chart::ErrorBarStyle::ERROR_MARGIN },
{ ::xmloff::token::XML_STANDARD_ERROR, css::chart::ErrorBarStyle::STANDARD_ERROR },
{ ::xmloff::token::XML_CELL_RANGE, css::chart::ErrorBarStyle::FROM_DATA },
}
@ XML_STANDARD_DEVIATION
Definition: xmltoken.hxx:1826

Definition at line 277 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartMissingValueTreatmentEnumMap

const SvXMLEnumMapEntry<sal_Int32> aXMLChartMissingValueTreatmentEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_LEAVE_GAP, css::chart::MissingValueTreatment::LEAVE_GAP },
{ ::xmloff::token::XML_USE_ZERO, css::chart::MissingValueTreatment::USE_ZERO },
{ ::xmloff::token::XML_IGNORE, css::chart::MissingValueTreatment::CONTINUE },
}

Definition at line 354 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ aXMLChartPropMap

const XMLPropertyMapEntry aXMLChartPropMap[]

Definition at line 79 of file PropertyMaps.cxx.

◆ aXMLChartSolidTypeEnumMap

const SvXMLEnumMapEntry<sal_Int32> aXMLChartSolidTypeEnumMap[]
Initial value:
=
{
{ ::xmloff::token::XML_CUBOID, css::chart::ChartSolidType::RECTANGULAR_SOLID },
{ ::xmloff::token::XML_CYLINDER, css::chart::ChartSolidType::CYLINDER },
{ ::xmloff::token::XML_CONE, css::chart::ChartSolidType::CONE },
{ ::xmloff::token::XML_PYRAMID, css::chart::ChartSolidType::PYRAMID },
}

Definition at line 290 of file PropertyMaps.cxx.

Referenced by XMLChartPropHdlFactory::GetPropertyHandler().

◆ g_XMLChartInterpolationTypeEnumMap

const SvXMLEnumMapEntry<sal_Int32> g_XMLChartInterpolationTypeEnumMap[]

◆ g_XMLChartInterpolationTypeEnumMap_ODF12

const SvXMLEnumMapEntry<sal_Int32> g_XMLChartInterpolationTypeEnumMap_ODF12[]