LibreOffice Module sc (master) 1
|
Helper class for usage of property sets. More...
#include <xlchart.hxx>
Public Member Functions | |
XclChPropSetHelper () | |
void | ReadLineProperties (XclChLineFormat &rLineFmt, XclChObjectTable &rDashTable, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) |
Reads all line properties from the passed property set. More... | |
bool | ReadAreaProperties (XclChAreaFormat &rAreaFmt, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) |
Reads solid area properties from the passed property set. More... | |
void | ReadEscherProperties (XclChEscherFormat &rEscherFmt, XclChPicFormat &rPicFmt, XclChObjectTable &rGradientTable, XclChObjectTable &rHatchTable, XclChObjectTable &rBitmapTable, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) |
Reads gradient or bitmap area properties from the passed property set. More... | |
void | WriteLineProperties (ScfPropertySet &rPropSet, XclChObjectTable &rDashTable, const XclChLineFormat &rLineFmt, XclChPropertyMode ePropMode) |
Writes all line properties to the passed property set. More... | |
void | WriteAreaProperties (ScfPropertySet &rPropSet, const XclChAreaFormat &rAreaFmt, XclChPropertyMode ePropMode) |
Writes solid area properties to the passed property set. More... | |
void | WriteEscherProperties (ScfPropertySet &rPropSet, XclChObjectTable &rGradientTable, XclChObjectTable &rBitmapTable, const XclChEscherFormat &rEscherFmt, const XclChPicFormat *pPicFmt, sal_uInt32 nDffFillType, XclChPropertyMode ePropMode) |
Writes gradient or bitmap area properties to the passed property set. More... | |
Static Public Member Functions | |
static void | ReadMarkerProperties (XclChMarkerFormat &rMarkerFmt, const ScfPropertySet &rPropSet, sal_uInt16 nFormatIdx) |
Reads all marker properties from the passed property set. More... | |
static sal_uInt16 | ReadRotationProperties (const ScfPropertySet &rPropSet, bool bSupportsStacked) |
Reads rotation properties from the passed property set. More... | |
static void | WriteMarkerProperties (ScfPropertySet &rPropSet, const XclChMarkerFormat &rMarkerFmt) |
Writes all marker properties to the passed property set. More... | |
static void | WriteRotationProperties (ScfPropertySet &rPropSet, sal_uInt16 nRotation, bool bSupportsStacked) |
Writes rotation properties to the passed property set. More... | |
Private Member Functions | |
ScfPropSetHelper & | GetLineHelper (XclChPropertyMode ePropMode) |
Returns a line property set helper according to the passed property mode. More... | |
ScfPropSetHelper & | GetAreaHelper (XclChPropertyMode ePropMode) |
Returns an area property set helper according to the passed property mode. More... | |
ScfPropSetHelper & | GetGradientHelper (XclChPropertyMode ePropMode) |
Returns a gradient property set helper according to the passed property mode. More... | |
ScfPropSetHelper & | GetHatchHelper (XclChPropertyMode ePropMode) |
Returns a hatch property set helper according to the passed property mode. More... | |
Private Attributes | |
ScfPropSetHelper | maLineHlpCommon |
ScfPropSetHelper | maLineHlpLinear |
Properties for lines in common objects. More... | |
ScfPropSetHelper | maLineHlpFilled |
Properties for lines in linear series. More... | |
ScfPropSetHelper | maAreaHlpCommon |
Properties for lines in filled series. More... | |
ScfPropSetHelper | maAreaHlpFilled |
Properties for areas in common objects. More... | |
ScfPropSetHelper | maGradHlpCommon |
Properties for areas in filled series. More... | |
ScfPropSetHelper | maGradHlpFilled |
Properties for gradients in common objects. More... | |
ScfPropSetHelper | maHatchHlpCommon |
Properties for gradients in filled series. More... | |
ScfPropSetHelper | maHatchHlpFilled |
Properties for hatches in common objects. More... | |
ScfPropSetHelper | maBitmapHlp |
Properties for hatches in filled series. More... | |
Helper class for usage of property sets.
Definition at line 1311 of file xlchart.hxx.
|
explicit |
Definition at line 639 of file xlchart.cxx.
|
private |
Returns an area property set helper according to the passed property mode.
Definition at line 1123 of file xlchart.cxx.
References EXC_CHPROPMODE_COMMON, EXC_CHPROPMODE_FILLEDSERIES, maAreaHlpCommon, and maAreaHlpFilled.
Referenced by ReadAreaProperties(), ReadEscherProperties(), WriteAreaProperties(), and WriteEscherProperties().
|
private |
Returns a gradient property set helper according to the passed property mode.
Definition at line 1134 of file xlchart.cxx.
References EXC_CHPROPMODE_COMMON, EXC_CHPROPMODE_FILLEDSERIES, maGradHlpCommon, and maGradHlpFilled.
Referenced by ReadEscherProperties(), and WriteEscherProperties().
|
private |
Returns a hatch property set helper according to the passed property mode.
Definition at line 1145 of file xlchart.cxx.
References EXC_CHPROPMODE_COMMON, EXC_CHPROPMODE_FILLEDSERIES, maHatchHlpCommon, and maHatchHlpFilled.
Referenced by ReadEscherProperties().
|
private |
Returns a line property set helper according to the passed property mode.
Definition at line 1111 of file xlchart.cxx.
References EXC_CHPROPMODE_COMMON, EXC_CHPROPMODE_FILLEDSERIES, EXC_CHPROPMODE_LINEARSERIES, maLineHlpCommon, maLineHlpFilled, and maLineHlpLinear.
Referenced by ReadLineProperties(), and WriteLineProperties().
bool XclChPropSetHelper::ReadAreaProperties | ( | XclChAreaFormat & | rAreaFmt, |
const ScfPropertySet & | rPropSet, | ||
XclChPropertyMode | ePropMode | ||
) |
Reads solid area properties from the passed property set.
Definition at line 728 of file xlchart.cxx.
References EXC_CHAREAFORMAT_AUTO, EXC_PATT_NONE, EXC_PATT_SOLID, GetAreaHelper(), XclChAreaFormat::maPattColor, XclChAreaFormat::mnFlags, XclChAreaFormat::mnPattern, ScfPropSetHelper::ReadFromPropertySet(), and set_flag().
Referenced by XclExpChRoot::ConvertAreaFormat().
void XclChPropSetHelper::ReadEscherProperties | ( | XclChEscherFormat & | rEscherFmt, |
XclChPicFormat & | rPicFmt, | ||
XclChObjectTable & | rGradientTable, | ||
XclChObjectTable & | rHatchTable, | ||
XclChObjectTable & | rBitmapTable, | ||
const ScfPropertySet & | rPropSet, | ||
XclChPropertyMode | ePropMode | ||
) |
Reads gradient or bitmap area properties from the passed property set.
Definition at line 749 of file xlchart.cxx.
References ESCHER_FillSolid, ESCHER_Prop_fillBackColor, ESCHER_Prop_fillBackOpacity, ESCHER_Prop_fillColor, ESCHER_Prop_fillOpacity, ESCHER_Prop_fillType, ESCHER_Prop_fNoFillHitTest, EXC_CHPICFORMAT_STACK, EXC_CHPICFORMAT_STRETCH, GetAreaHelper(), Color::GetBlue(), GetGradientHelper(), Color::GetGreen(), GetHatchHelper(), XclChObjectTable::GetObject(), Color::GetRed(), insert_value(), maBitmapHlp, XclChPicFormat::mnBmpMode, XclChEscherFormat::mxEscherSet, and ScfPropSetHelper::ReadFromPropertySet().
Referenced by XclExpChRoot::ConvertEscherFormat().
void XclChPropSetHelper::ReadLineProperties | ( | XclChLineFormat & | rLineFmt, |
XclChObjectTable & | rDashTable, | ||
const ScfPropertySet & | rPropSet, | ||
XclChPropertyMode | ePropMode | ||
) |
Reads all line properties from the passed property set.
Definition at line 655 of file xlchart.cxx.
References EXC_CHLINEFORMAT_AUTO, EXC_CHLINEFORMAT_DARKTRANS, EXC_CHLINEFORMAT_DASH, EXC_CHLINEFORMAT_DASHDOT, EXC_CHLINEFORMAT_DASHDOTDOT, EXC_CHLINEFORMAT_DOT, EXC_CHLINEFORMAT_DOUBLE, EXC_CHLINEFORMAT_HAIR, EXC_CHLINEFORMAT_LIGHTTRANS, EXC_CHLINEFORMAT_MEDTRANS, EXC_CHLINEFORMAT_NONE, EXC_CHLINEFORMAT_SINGLE, EXC_CHLINEFORMAT_SOLID, EXC_CHLINEFORMAT_TRIPLE, GetLineHelper(), XclChObjectTable::GetObject(), XclChLineFormat::maColor, XclChLineFormat::mnFlags, XclChLineFormat::mnPattern, XclChLineFormat::mnWeight, ScfPropSetHelper::ReadFromPropertySet(), and set_flag().
Referenced by XclExpChRoot::ConvertLineFormat().
|
static |
Reads all marker properties from the passed property set.
Definition at line 843 of file xlchart.cxx.
References ColorTransparency, EXC_CHMARKERFORMAT_AUTO, EXC_CHMARKERFORMAT_CIRCLE, EXC_CHMARKERFORMAT_CROSS, EXC_CHMARKERFORMAT_DIAMOND, EXC_CHMARKERFORMAT_DOWJ, EXC_CHMARKERFORMAT_NOFILL, EXC_CHMARKERFORMAT_NOSYMBOL, EXC_CHMARKERFORMAT_PLUS, EXC_CHMARKERFORMAT_SQUARE, EXC_CHMARKERFORMAT_STAR, EXC_CHMARKERFORMAT_STDDEV, EXC_CHMARKERFORMAT_TRIANGLE, EXC_CHPROP_SYMBOL, XclChartHelper::GetAutoMarkerType(), ScfPropertySet::GetProperty(), XclTools::GetTwipsFromHmm(), XclChartHelper::HasMarkerFillColor(), XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, XclChMarkerFormat::mnFlags, XclChMarkerFormat::mnMarkerSize, XclChMarkerFormat::mnMarkerType, and set_flag().
Referenced by XclExpChMarkerFormat::Convert().
|
static |
Reads rotation properties from the passed property set.
Definition at line 895 of file xlchart.cxx.
References EXC_CHPROP_STACKCHARACTERS, EXC_CHPROP_TEXTROTATION, EXC_ROT_STACKED, ScfPropertySet::GetBoolProperty(), ScfPropertySet::GetProperty(), and XclTools::GetXclRotation().
Referenced by XclExpChFontBase::ConvertRotationBase().
void XclChPropSetHelper::WriteAreaProperties | ( | ScfPropertySet & | rPropSet, |
const XclChAreaFormat & | rAreaFmt, | ||
XclChPropertyMode | ePropMode | ||
) |
Writes solid area properties to the passed property set.
Definition at line 973 of file xlchart.cxx.
References EXC_PATT_NONE, GetAreaHelper(), XclTools::GetPatternColor(), ScfPropSetHelper::InitializeWrite(), XclChAreaFormat::maBackColor, XclChAreaFormat::maPattColor, XclChAreaFormat::mnPattern, and ScfPropSetHelper::WriteToPropertySet().
Referenced by XclImpChRoot::ConvertAreaFormat().
void XclChPropSetHelper::WriteEscherProperties | ( | ScfPropertySet & | rPropSet, |
XclChObjectTable & | rGradientTable, | ||
XclChObjectTable & | rBitmapTable, | ||
const XclChEscherFormat & | rEscherFmt, | ||
const XclChPicFormat * | pPicFmt, | ||
sal_uInt32 | nDffFillType, | ||
XclChPropertyMode | ePropMode | ||
) |
Writes gradient or bitmap area properties to the passed property set.
Definition at line 993 of file xlchart.cxx.
References EXC_CHPICFORMAT_STRETCH, GetAreaHelper(), GetGradientHelper(), ScfPropSetHelper::InitializeWrite(), XclChObjectTable::InsertObject(), maBitmapHlp, MID_BITMAP, MID_FILLGRADIENT, XclChPicFormat::mnBmpMode, mso_fillPicture, XclChEscherFormat::mxItemSet, ScfPropSetHelper::WriteToPropertySet(), XATTR_FILLBITMAP(), XATTR_FILLCOLOR(), XATTR_FILLGRADIENT(), XATTR_FILLSTYLE(), and XATTR_FILLTRANSPARENCE().
Referenced by XclImpChRoot::ConvertEscherFormat().
void XclChPropSetHelper::WriteLineProperties | ( | ScfPropertySet & | rPropSet, |
XclChObjectTable & | rDashTable, | ||
const XclChLineFormat & | rLineFmt, | ||
XclChPropertyMode | ePropMode | ||
) |
Writes all line properties to the passed property set.
Definition at line 907 of file xlchart.cxx.
References EXC_CHLINEFORMAT_DARKTRANS, EXC_CHLINEFORMAT_DASH, EXC_CHLINEFORMAT_DASHDOT, EXC_CHLINEFORMAT_DASHDOTDOT, EXC_CHLINEFORMAT_DOT, EXC_CHLINEFORMAT_DOUBLE, EXC_CHLINEFORMAT_LIGHTTRANS, EXC_CHLINEFORMAT_MEDTRANS, EXC_CHLINEFORMAT_SINGLE, EXC_CHLINEFORMAT_SOLID, EXC_CHLINEFORMAT_TRIPLE, GetLineHelper(), ScfPropSetHelper::InitializeWrite(), XclChObjectTable::InsertObject(), XclChLineFormat::maColor, XclChLineFormat::mnPattern, XclChLineFormat::mnWeight, and ScfPropSetHelper::WriteToPropertySet().
Referenced by XclImpChRoot::ConvertLineFormat().
|
static |
Writes all marker properties to the passed property set.
Definition at line 1062 of file xlchart.cxx.
References EXC_CHMARKERFORMAT_CIRCLE, EXC_CHMARKERFORMAT_CROSS, EXC_CHMARKERFORMAT_DIAMOND, EXC_CHMARKERFORMAT_DOWJ, EXC_CHMARKERFORMAT_NOLINE, EXC_CHMARKERFORMAT_NOSYMBOL, EXC_CHMARKERFORMAT_PLUS, EXC_CHMARKERFORMAT_SQUARE, EXC_CHMARKERFORMAT_STAR, EXC_CHMARKERFORMAT_STDDEV, EXC_CHMARKERFORMAT_TRIANGLE, EXC_CHPROP_SYMBOL, get_flag(), XclTools::GetHmmFromTwips(), XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, XclChMarkerFormat::mnFlags, XclChMarkerFormat::mnMarkerSize, XclChMarkerFormat::mnMarkerType, and ScfPropertySet::SetProperty().
Referenced by XclImpChMarkerFormat::Convert().
|
static |
Writes rotation properties to the passed property set.
Definition at line 1096 of file xlchart.cxx.
References EXC_CHART_AUTOROTATION, EXC_CHPROP_STACKCHARACTERS, EXC_CHPROP_TEXTROTATION, EXC_ROT_STACKED, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), XclTools::GetScRotation(), and ScfPropertySet::SetProperty().
Referenced by XclImpChFontBase::ConvertRotationBase().
|
private |
Properties for lines in filled series.
Definition at line 1391 of file xlchart.hxx.
Referenced by GetAreaHelper().
|
private |
Properties for areas in common objects.
Definition at line 1392 of file xlchart.hxx.
Referenced by GetAreaHelper().
|
private |
Properties for hatches in filled series.
Definition at line 1397 of file xlchart.hxx.
Referenced by ReadEscherProperties(), and WriteEscherProperties().
|
private |
Properties for areas in filled series.
Definition at line 1393 of file xlchart.hxx.
Referenced by GetGradientHelper().
|
private |
Properties for gradients in common objects.
Definition at line 1394 of file xlchart.hxx.
Referenced by GetGradientHelper().
|
private |
Properties for gradients in filled series.
Definition at line 1395 of file xlchart.hxx.
Referenced by GetHatchHelper().
|
private |
Properties for hatches in common objects.
Definition at line 1396 of file xlchart.hxx.
Referenced by GetHatchHelper().
|
private |
Definition at line 1388 of file xlchart.hxx.
Referenced by GetLineHelper().
|
private |
Properties for lines in linear series.
Definition at line 1390 of file xlchart.hxx.
Referenced by GetLineHelper().
|
private |
Properties for lines in common objects.
Definition at line 1389 of file xlchart.hxx.
Referenced by GetLineHelper().