LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
XMLEnhancedCustomShapeContext Class Reference

#include <ximpcustomshape.hxx>

Inheritance diagram for XMLEnhancedCustomShapeContext:
[legend]
Collaboration diagram for XMLEnhancedCustomShapeContext:
[legend]

Public Member Functions

 XMLEnhancedCustomShapeContext (SvXMLImport &rImport, css::uno::Reference< css::drawing::XShape > &, std::vector< css::beans::PropertyValue > &rCustomShapeGeometry)
 
virtual void SAL_CALL startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual void SAL_CALL endFastElement (sal_Int32 nElement) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
 
- Public Member Functions inherited from SvXMLImportContext
 SvXMLImportContext (SvXMLImport &rImport)
 A contexts constructor does anything that is required if an element starts. More...
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void SAL_CALL startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (sal_Int32 Element) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 This method is called for all characters that are contained in the current element. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () final override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () final override
 

Private Attributes

SvXMLUnitConvertermrUnitConverter
 
css::uno::Reference< css::drawing::XShape > & mrxShape
 
std::vector< css::beans::PropertyValue > & mrCustomShapeGeometry
 
std::vector< css::beans::PropertyValue > maExtrusion
 
std::vector< css::beans::PropertyValue > maPath
 
std::vector< css::beans::PropertyValue > maTextPath
 
std::vector< css::beans::PropertyValuesmaHandles
 
std::vector< OUString > maEquations
 
std::vector< OUString > maEquationNames
 

Additional Inherited Members

- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 37 of file ximpcustomshape.hxx.

Constructor & Destructor Documentation

◆ XMLEnhancedCustomShapeContext()

XMLEnhancedCustomShapeContext::XMLEnhancedCustomShapeContext ( SvXMLImport rImport,
css::uno::Reference< css::drawing::XShape > &  rxShape,
std::vector< css::beans::PropertyValue > &  rCustomShapeGeometry 
)

Definition at line 58 of file ximpcustomshape.cxx.

Member Function Documentation

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > XMLEnhancedCustomShapeContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual

Reimplemented from SvXMLImportContext.

Definition at line 1342 of file ximpcustomshape.cxx.

References sax_fastparser::castToFastAttributeList(), comphelper::containerToSequence(), xmloff::EnhancedCustomShapeToken::EAS_equation, xmloff::EnhancedCustomShapeToken::EAS_formula, xmloff::EnhancedCustomShapeToken::EAS_handle, xmloff::EnhancedCustomShapeToken::EAS_handle_mirror_horizontal, xmloff::EnhancedCustomShapeToken::EAS_handle_mirror_vertical, xmloff::EnhancedCustomShapeToken::EAS_handle_polar, xmloff::EnhancedCustomShapeToken::EAS_handle_position, xmloff::EnhancedCustomShapeToken::EAS_handle_radius_range_maximum, xmloff::EnhancedCustomShapeToken::EAS_handle_radius_range_minimum, xmloff::EnhancedCustomShapeToken::EAS_handle_range_x_maximum, xmloff::EnhancedCustomShapeToken::EAS_handle_range_x_minimum, xmloff::EnhancedCustomShapeToken::EAS_handle_range_y_maximum, xmloff::EnhancedCustomShapeToken::EAS_handle_range_y_minimum, xmloff::EnhancedCustomShapeToken::EAS_handle_switched, xmloff::EnhancedCustomShapeToken::EAS_MirroredX, xmloff::EnhancedCustomShapeToken::EAS_MirroredY, xmloff::EnhancedCustomShapeToken::EAS_name, xmloff::EnhancedCustomShapeToken::EAS_Polar, xmloff::EnhancedCustomShapeToken::EAS_Position, xmloff::EnhancedCustomShapeToken::EAS_RadiusRangeMaximum, xmloff::EnhancedCustomShapeToken::EAS_RadiusRangeMinimum, xmloff::EnhancedCustomShapeToken::EAS_RangeXMaximum, xmloff::EnhancedCustomShapeToken::EAS_RangeXMinimum, xmloff::EnhancedCustomShapeToken::EAS_RangeYMaximum, xmloff::EnhancedCustomShapeToken::EAS_RangeYMinimum, xmloff::EnhancedCustomShapeToken::EAS_Switched, xmloff::EnhancedCustomShapeToken::EASGet(), GetBool(), GetEnhancedParameter(), GetEnhancedParameterPair(), maEquationNames, maEquations, and maHandles.

◆ endFastElement()

void XMLEnhancedCustomShapeContext::endFastElement ( sal_Int32  Element)
overridevirtual

◆ startFastElement()

void XMLEnhancedCustomShapeContext::startFastElement ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overridevirtual

Reimplemented from SvXMLImportContext.

Definition at line 882 of file ximpcustomshape.cxx.

References aXML_GluePointEnumMap, sax_fastparser::castToFastAttributeList(), sax::Converter::convertNumber(), xmloff::EnhancedCustomShapeToken::EAS_Brightness, xmloff::EnhancedCustomShapeToken::EAS_Color, xmloff::EnhancedCustomShapeToken::EAS_concentric_gradient_fill_allowed, xmloff::EnhancedCustomShapeToken::EAS_ConcentricGradientFillAllowed, xmloff::EnhancedCustomShapeToken::EAS_Depth, xmloff::EnhancedCustomShapeToken::EAS_Diffusion, xmloff::EnhancedCustomShapeToken::EAS_enhanced_path, xmloff::EnhancedCustomShapeToken::EAS_extrusion, xmloff::EnhancedCustomShapeToken::EAS_Extrusion, xmloff::EnhancedCustomShapeToken::EAS_extrusion_allowed, xmloff::EnhancedCustomShapeToken::EAS_extrusion_brightness, xmloff::EnhancedCustomShapeToken::EAS_extrusion_color, xmloff::EnhancedCustomShapeToken::EAS_extrusion_depth, xmloff::EnhancedCustomShapeToken::EAS_extrusion_diffusion, xmloff::EnhancedCustomShapeToken::EAS_extrusion_first_light_direction, xmloff::EnhancedCustomShapeToken::EAS_extrusion_first_light_harsh, xmloff::EnhancedCustomShapeToken::EAS_extrusion_first_light_level, xmloff::EnhancedCustomShapeToken::EAS_extrusion_light_face, xmloff::EnhancedCustomShapeToken::EAS_extrusion_metal, xmloff::EnhancedCustomShapeToken::EAS_extrusion_metal_type, xmloff::EnhancedCustomShapeToken::EAS_extrusion_number_of_line_segments, xmloff::EnhancedCustomShapeToken::EAS_extrusion_origin, xmloff::EnhancedCustomShapeToken::EAS_extrusion_rotation_angle, xmloff::EnhancedCustomShapeToken::EAS_extrusion_rotation_center, xmloff::EnhancedCustomShapeToken::EAS_extrusion_second_light_direction, xmloff::EnhancedCustomShapeToken::EAS_extrusion_second_light_harsh, xmloff::EnhancedCustomShapeToken::EAS_extrusion_second_light_level, xmloff::EnhancedCustomShapeToken::EAS_extrusion_shininess, xmloff::EnhancedCustomShapeToken::EAS_extrusion_skew, xmloff::EnhancedCustomShapeToken::EAS_extrusion_specularity, xmloff::EnhancedCustomShapeToken::EAS_extrusion_specularity_loext, xmloff::EnhancedCustomShapeToken::EAS_extrusion_viewpoint, xmloff::EnhancedCustomShapeToken::EAS_ExtrusionAllowed, xmloff::EnhancedCustomShapeToken::EAS_FirstLightDirection, xmloff::EnhancedCustomShapeToken::EAS_FirstLightHarsh, xmloff::EnhancedCustomShapeToken::EAS_FirstLightLevel, xmloff::EnhancedCustomShapeToken::EAS_glue_point_leaving_directions, xmloff::EnhancedCustomShapeToken::EAS_glue_point_type, xmloff::EnhancedCustomShapeToken::EAS_glue_points, xmloff::EnhancedCustomShapeToken::EAS_GluePointLeavingDirections, xmloff::EnhancedCustomShapeToken::EAS_GluePoints, xmloff::EnhancedCustomShapeToken::EAS_GluePointType, xmloff::EnhancedCustomShapeToken::EAS_LightFace, xmloff::EnhancedCustomShapeToken::EAS_Metal, xmloff::EnhancedCustomShapeToken::EAS_MetalType, xmloff::EnhancedCustomShapeToken::EAS_mirror_horizontal, xmloff::EnhancedCustomShapeToken::EAS_mirror_vertical, xmloff::EnhancedCustomShapeToken::EAS_MirroredX, xmloff::EnhancedCustomShapeToken::EAS_MirroredY, xmloff::EnhancedCustomShapeToken::EAS_modifiers, xmloff::EnhancedCustomShapeToken::EAS_NumberOfLineSegments, xmloff::EnhancedCustomShapeToken::EAS_Origin, xmloff::EnhancedCustomShapeToken::EAS_path_stretchpoint_x, xmloff::EnhancedCustomShapeToken::EAS_path_stretchpoint_y, xmloff::EnhancedCustomShapeToken::EAS_projection, xmloff::EnhancedCustomShapeToken::EAS_ProjectionMode, xmloff::EnhancedCustomShapeToken::EAS_RotateAngle, xmloff::EnhancedCustomShapeToken::EAS_RotationCenter, xmloff::EnhancedCustomShapeToken::EAS_SameLetterHeights, xmloff::EnhancedCustomShapeToken::EAS_ScaleX, xmloff::EnhancedCustomShapeToken::EAS_SecondLightDirection, xmloff::EnhancedCustomShapeToken::EAS_SecondLightHarsh, xmloff::EnhancedCustomShapeToken::EAS_SecondLightLevel, xmloff::EnhancedCustomShapeToken::EAS_shade_mode, xmloff::EnhancedCustomShapeToken::EAS_ShadeMode, xmloff::EnhancedCustomShapeToken::EAS_Shininess, xmloff::EnhancedCustomShapeToken::EAS_Skew, xmloff::EnhancedCustomShapeToken::EAS_Specularity, xmloff::EnhancedCustomShapeToken::EAS_StretchX, xmloff::EnhancedCustomShapeToken::EAS_StretchY, xmloff::EnhancedCustomShapeToken::EAS_sub_view_size, xmloff::EnhancedCustomShapeToken::EAS_SubViewSize, xmloff::EnhancedCustomShapeToken::EAS_text_areas, xmloff::EnhancedCustomShapeToken::EAS_text_path, xmloff::EnhancedCustomShapeToken::EAS_text_path_allowed, xmloff::EnhancedCustomShapeToken::EAS_text_path_mode, xmloff::EnhancedCustomShapeToken::EAS_text_path_same_letter_heights, xmloff::EnhancedCustomShapeToken::EAS_text_path_scale, xmloff::EnhancedCustomShapeToken::EAS_text_rotate_angle, xmloff::EnhancedCustomShapeToken::EAS_TextFrames, xmloff::EnhancedCustomShapeToken::EAS_TextPath, xmloff::EnhancedCustomShapeToken::EAS_TextPathAllowed, xmloff::EnhancedCustomShapeToken::EAS_TextPathMode, xmloff::EnhancedCustomShapeToken::EAS_TextRotateAngle, xmloff::EnhancedCustomShapeToken::EAS_type, xmloff::EnhancedCustomShapeToken::EAS_Type, xmloff::EnhancedCustomShapeToken::EAS_viewBox, xmloff::EnhancedCustomShapeToken::EAS_ViewBox, xmloff::EnhancedCustomShapeToken::EAS_ViewPoint, xmloff::EnhancedCustomShapeToken::EASGet(), GetAdjustmentValues(), GetB3DVector(), GetBool(), sax::Converter::GetConversionFactor(), GetDouble(), GetDoublePercentage(), GetDoubleSequence(), GetEnhancedParameterPair(), GetEnhancedParameterPairSequence(), GetEnhancedPath(), GetEnhancedRectangleSequence(), GetEnum(), SdXMLImExViewBox::GetHeight(), SvXMLImportContext::GetImport(), GetInt32(), GetNextParameter(), GetPosition3D(), GetSizeSequence(), GetString(), sax::Converter::GetUnitFromString(), SdXMLImExViewBox::GetWidth(), SdXMLImExViewBox::GetX(), SdXMLImExViewBox::GetY(), i, xmloff::token::IsXMLToken(), maExtrusion, maPath, maTextPath, mrCustomShapeGeometry, mrUnitConverter, mrxShape, nIndex, sType, xmloff::token::XML_DRAFT, xmloff::token::XML_GOURAUD, xmloff::token::XML_PARALLEL, xmloff::token::XML_PATH, xmloff::token::XML_PHONG, and xmloff::token::XML_SHAPE.

Member Data Documentation

◆ maEquationNames

std::vector< OUString > XMLEnhancedCustomShapeContext::maEquationNames
private

Definition at line 48 of file ximpcustomshape.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maEquations

std::vector< OUString > XMLEnhancedCustomShapeContext::maEquations
private

Definition at line 47 of file ximpcustomshape.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maExtrusion

std::vector< css::beans::PropertyValue > XMLEnhancedCustomShapeContext::maExtrusion
private

Definition at line 43 of file ximpcustomshape.hxx.

Referenced by endFastElement(), and startFastElement().

◆ maHandles

std::vector< css::beans::PropertyValues > XMLEnhancedCustomShapeContext::maHandles
private

Definition at line 46 of file ximpcustomshape.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maPath

std::vector< css::beans::PropertyValue > XMLEnhancedCustomShapeContext::maPath
private

Definition at line 44 of file ximpcustomshape.hxx.

Referenced by endFastElement(), and startFastElement().

◆ maTextPath

std::vector< css::beans::PropertyValue > XMLEnhancedCustomShapeContext::maTextPath
private

Definition at line 45 of file ximpcustomshape.hxx.

Referenced by endFastElement(), and startFastElement().

◆ mrCustomShapeGeometry

std::vector< css::beans::PropertyValue >& XMLEnhancedCustomShapeContext::mrCustomShapeGeometry
private

Definition at line 41 of file ximpcustomshape.hxx.

Referenced by endFastElement(), and startFastElement().

◆ mrUnitConverter

SvXMLUnitConverter& XMLEnhancedCustomShapeContext::mrUnitConverter
private

Definition at line 39 of file ximpcustomshape.hxx.

Referenced by startFastElement().

◆ mrxShape

css::uno::Reference< css::drawing::XShape >& XMLEnhancedCustomShapeContext::mrxShape
private

Definition at line 40 of file ximpcustomshape.hxx.

Referenced by startFastElement().


The documentation for this class was generated from the following files: