LibreOffice Module oox (master) 1
|
Class for exporting the custom shapes to OOXML preset ones, if possible. More...
#include <DMLPresetShapeExport.hxx>
Classes | |
struct | AdjustmentPointValueBase |
Public Member Functions | |
DMLPresetShapeExporter ()=delete | |
~DMLPresetShapeExporter () | |
DMLPresetShapeExporter (DrawingML *pDMLExporter, css::uno::Reference< css::drawing::XShape > xShape) | |
bool | WriteShape () |
Private Types | |
typedef AdjustmentPointValueBase | RadiusAdjustmentValue |
typedef AdjustmentPointValueBase | AngleAdjustmentValue |
typedef AdjustmentPointValueBase | XAdjustmentValue |
typedef AdjustmentPointValueBase | YAdjustmentValue |
Private Member Functions | |
bool | HasHandleValue () const |
bool | IsXFlipped () const |
bool | IsYFlipped () const |
const OUString & | GetShapeType () const |
const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > & | GetHandleValues () const |
const css::uno::Sequence< css::drawing::EnhancedCustomShapeAdjustmentValue > & | GetAdjustmentValues () const |
css::uno::Any | GetHandleValueOfModificationPoint (sal_Int32 nPoint, std::u16string_view sType) |
RadiusAdjustmentValue | GetAdjustmentPointRadiusValue (sal_Int32 nPoint) |
AngleAdjustmentValue | GetAdjustmentPointAngleValue (sal_Int32 nPoint) |
XAdjustmentValue | GetAdjustmentPointXValue (sal_Int32 nPoint) |
YAdjustmentValue | GetAdjustmentPointYValue (sal_Int32 nPoint) |
bool | WriteAV (const OUString &sValName, const OUString &sVal) |
bool | StartAVListWriting () |
bool | EndAVListWriting () |
bool | WriteShapeWithAVlist () |
Static Private Member Functions | |
static css::uno::Any | FindHandleValue (css::uno::Sequence< css::beans::PropertyValue > aValues, std::u16string_view sKey) |
Private Attributes | |
css::uno::Reference< css::drawing::XShape > | m_xShape |
DrawingML * | m_pDMLexporter |
OUString | m_sPresetShapeType |
bool | m_bHasHandleValues |
std::pair< bool, bool > | m_bIsFlipped |
css::uno::Sequence< css::drawing::EnhancedCustomShapeAdjustmentValue > | m_AdjustmentValues |
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > | m_HandleValues |
Class for exporting the custom shapes to OOXML preset ones, if possible.
This functionality needed for keeping the information for the office programs about the shape type, and geometry data. Before these shapes were exported with custom geometry, and they kept their geometry but has no information about the shape itself. This lead to lost textbox size/position/padding for example.
Definition at line 49 of file DMLPresetShapeExport.hxx.
|
private |
Definition at line 95 of file DMLPresetShapeExport.hxx.
|
private |
Definition at line 94 of file DMLPresetShapeExport.hxx.
Definition at line 96 of file DMLPresetShapeExport.hxx.
Definition at line 97 of file DMLPresetShapeExport.hxx.
|
delete |
oox::drawingml::DMLPresetShapeExporter::~DMLPresetShapeExporter | ( | ) |
Definition at line 92 of file DMLPresetShapeExport.cxx.
oox::drawingml::DMLPresetShapeExporter::DMLPresetShapeExporter | ( | DrawingML * | pDMLExporter, |
css::uno::Reference< css::drawing::XShape > | xShape | ||
) |
Definition at line 32 of file DMLPresetShapeExport.cxx.
References namespaces::i, m_AdjustmentValues, m_bHasHandleValues, m_bIsFlipped, m_HandleValues, m_sPresetShapeType, m_xShape, and Name.
|
private |
Definition at line 267 of file DMLPresetShapeExport.cxx.
References oox::drawingml::DrawingML::GetFS(), and m_pDMLexporter.
Referenced by WriteShapeWithAVlist().
|
staticprivate |
|
private |
Definition at line 154 of file DMLPresetShapeExport.cxx.
References GetAdjustmentValues(), GetHandleValueOfModificationPoint(), oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nCurrVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMaxVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMinVal, u, and Value.
Referenced by WriteShapeWithAVlist().
|
private |
Definition at line 131 of file DMLPresetShapeExport.cxx.
References GetAdjustmentValues(), GetHandleValueOfModificationPoint(), oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nCurrVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMaxVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMinVal, u, and Value.
Referenced by WriteShapeWithAVlist().
|
private |
Definition at line 173 of file DMLPresetShapeExport.cxx.
References GetAdjustmentValues(), GetHandleValueOfModificationPoint(), oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nCurrVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMaxVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMinVal, u, and Value.
Referenced by WriteShapeWithAVlist().
|
private |
Definition at line 196 of file DMLPresetShapeExport.cxx.
References GetAdjustmentValues(), GetHandleValueOfModificationPoint(), oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nCurrVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMaxVal, oox::drawingml::DMLPresetShapeExporter::AdjustmentPointValueBase::nMinVal, u, and Value.
Referenced by WriteShapeWithAVlist().
|
private |
Definition at line 107 of file DMLPresetShapeExport.cxx.
References m_AdjustmentValues.
Referenced by GetAdjustmentPointAngleValue(), GetAdjustmentPointRadiusValue(), GetAdjustmentPointXValue(), and GetAdjustmentPointYValue().
|
private |
Definition at line 112 of file DMLPresetShapeExport.cxx.
References GetHandleValues(), getLength(), namespaces::i, and sType.
Referenced by GetAdjustmentPointAngleValue(), GetAdjustmentPointRadiusValue(), GetAdjustmentPointXValue(), and GetAdjustmentPointYValue().
|
private |
Definition at line 101 of file DMLPresetShapeExport.cxx.
References m_HandleValues.
Referenced by GetHandleValueOfModificationPoint().
|
private |
Definition at line 98 of file DMLPresetShapeExport.cxx.
References m_sPresetShapeType.
Referenced by StartAVListWriting(), WriteShape(), and WriteShapeWithAVlist().
|
private |
Definition at line 96 of file DMLPresetShapeExport.cxx.
References m_bHasHandleValues.
|
inlineprivate |
Definition at line 103 of file DMLPresetShapeExport.hxx.
References m_bIsFlipped.
Referenced by WriteShape(), and WriteShapeWithAVlist().
|
inlineprivate |
Definition at line 104 of file DMLPresetShapeExport.hxx.
References m_bIsFlipped.
Referenced by WriteShape(), and WriteShapeWithAVlist().
|
private |
Definition at line 253 of file DMLPresetShapeExport.cxx.
References oox::drawingml::DrawingML::GetFS(), msfilter::util::GetOOXMLPresetGeometry(), GetShapeType(), and m_pDMLexporter.
Referenced by WriteShapeWithAVlist().
|
private |
Definition at line 240 of file DMLPresetShapeExport.cxx.
References oox::drawingml::DrawingML::GetFS(), and m_pDMLexporter.
Referenced by WriteShapeWithAVlist().
bool oox::drawingml::DMLPresetShapeExporter::WriteShape | ( | ) |
Definition at line 218 of file DMLPresetShapeExport.cxx.
References msfilter::util::GetOOXMLPresetGeometry(), GetShapeType(), IsXFlipped(), IsYFlipped(), m_bHasHandleValues, m_pDMLexporter, m_xShape, oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteShapeWithAVlist().
Referenced by oox::drawingml::ShapeExport::WriteCustomShape().
|
private |
Definition at line 281 of file DMLPresetShapeExport.cxx.
References EndAVListWriting(), GetAdjustmentPointAngleValue(), GetAdjustmentPointRadiusValue(), GetAdjustmentPointXValue(), GetAdjustmentPointYValue(), msfilter::util::GetOOXMLPresetGeometry(), GetShapeType(), IsXFlipped(), IsYFlipped(), m_pDMLexporter, m_xShape, StartAVListWriting(), u, WriteAV(), and oox::drawingml::DrawingML::WriteShapeTransformation().
Referenced by WriteShape().
|
private |
Definition at line 66 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), and GetAdjustmentValues().
|
private |
Definition at line 59 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), HasHandleValue(), and WriteShape().
|
private |
Definition at line 61 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), IsXFlipped(), and IsYFlipped().
|
private |
Definition at line 69 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), and GetHandleValues().
|
private |
Definition at line 55 of file DMLPresetShapeExport.hxx.
Referenced by EndAVListWriting(), StartAVListWriting(), WriteAV(), WriteShape(), and WriteShapeWithAVlist().
|
private |
Definition at line 57 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), and GetShapeType().
|
private |
Definition at line 53 of file DMLPresetShapeExport.hxx.
Referenced by DMLPresetShapeExporter(), WriteShape(), and WriteShapeWithAVlist().