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 > &, sal_uInt16 nPrefix, const OUString &rLocalName, std::vector< css::beans::PropertyValue > &rCustomShapeGeometry)
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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 38 of file ximpcustomshape.hxx.

Constructor & Destructor Documentation

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

Definition at line 55 of file ximpcustomshape.cxx.

Member Function Documentation

SvXMLImportContextRef XMLEnhancedCustomShapeContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overridevirtual

Create a children element context.

By default, the import's CreateContext method is called to create a new default context.

Reimplemented from SvXMLImportContext.

Definition at line 1301 of file ximpcustomshape.cxx.

References 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(), SvXMLImportContext::GetImport(), SvXMLNamespaceMap::GetKeyByAttrName(), SvXMLImport::GetNamespaceMap(), maEquationNames, maEquations, maHandles, nLength, and XMLImageStyle::rValue.

void XMLEnhancedCustomShapeContext::EndElement ( )
overridevirtual
void XMLEnhancedCustomShapeContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overridevirtual

StartElement is called after a context has been constructed and before an elements context is parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

Definition at line 862 of file ximpcustomshape.cxx.

References 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_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_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_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(), SvXMLNamespaceMap::GetKeyByAttrName(), SvXMLImport::GetNamespaceMap(), GetNextParameter(), GetPosition3D(), SvXMLImport::GetShapeImport(), GetSizeSequence(), GetString(), sax::Converter::GetUnitFromString(), SdXMLImExViewBox::GetWidth(), SdXMLImExViewBox::GetX(), SdXMLImExViewBox::GetY(), i, xmloff::token::IsXMLToken(), maExtrusion, maPath, maTextPath, mrCustomShapeGeometry, mrUnitConverter, mrxShape, nIndex, nLength, XMLImageStyle::rValue, 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

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

Definition at line 49 of file ximpcustomshape.hxx.

Referenced by CreateChildContext(), and EndElement().

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

Definition at line 48 of file ximpcustomshape.hxx.

Referenced by CreateChildContext(), and EndElement().

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

Definition at line 44 of file ximpcustomshape.hxx.

Referenced by EndElement(), and StartElement().

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

Definition at line 47 of file ximpcustomshape.hxx.

Referenced by CreateChildContext(), and EndElement().

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

Definition at line 45 of file ximpcustomshape.hxx.

Referenced by EndElement(), and StartElement().

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

Definition at line 46 of file ximpcustomshape.hxx.

Referenced by EndElement(), and StartElement().

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

Definition at line 42 of file ximpcustomshape.hxx.

Referenced by EndElement(), and StartElement().

SvXMLUnitConverter& XMLEnhancedCustomShapeContext::mrUnitConverter
private

Definition at line 40 of file ximpcustomshape.hxx.

Referenced by StartElement().

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

Definition at line 41 of file ximpcustomshape.hxx.

Referenced by StartElement().


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