LibreOffice Module xmloff (master)  1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
xmloff::OFormLayerXMLImport_Impl Class Reference

#include <layerimport.hxx>

Inheritance diagram for xmloff::OFormLayerXMLImport_Impl:
[legend]
Collaboration diagram for xmloff::OFormLayerXMLImport_Impl:
[legend]

Public Member Functions

void registerControlId (const css::uno::Reference< css::beans::XPropertySet > &_rxControl, const OUString &_rId)
 
void registerControlReferences (const css::uno::Reference< css::beans::XPropertySet > &_rxControl, const OUString &_rReferringControls)
 
OAttribute2PropertygetAttributeMap ()
 
SvXMLImportgetGlobalContext ()
 
const SvXMLStyleContextgetStyleElement (const OUString &_rStyleName) const
 
void enterEventContext ()
 
void leaveEventContext ()
 
void applyControlNumberStyle (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rControlNumberStyleName)
 
void registerCellValueBinding (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rCellAddress)
 
void registerCellRangeListSource (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rCellRangeAddress)
 
void registerXFormsValueBinding (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rBindingID)
 
void registerXFormsListBinding (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rBindingID)
 
void registerXFormsSubmission (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rSubmissionID)
 
 ~OFormLayerXMLImport_Impl () override
 
- Public Member Functions inherited from xmloff::ODefaultEventAttacherManager
virtual void registerEvents (const css::uno::Reference< css::beans::XPropertySet > &_rxElement, const css::uno::Sequence< css::script::ScriptEventDescriptor > &_rEvents) override
 

Private Types

typedef std::map< OUString, css::uno::Reference< css::beans::XPropertySet > > MapString2PropertySet
 
typedef std::map< css::uno::Reference< css::drawing::XDrawPage >, MapString2PropertySetMapDrawPage2Map
 
typedef ::std::pair< css::uno::Reference< css::beans::XPropertySet >, OUString > ModelStringPair
 

Private Member Functions

 OFormLayerXMLImport_Impl (SvXMLImport &_rImporter)
 
void startPage (const css::uno::Reference< css::drawing::XDrawPage > &_rxDrawPage)
 start importing the forms of the given page More...
 
void endPage ()
 end importing the forms of the current page More...
 
SvXMLImportContextcreateContext (const sal_uInt16 _nPrefix, const OUString &_rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &_rxAttribs)
 create an <type>SvXMLImportContext</type> instance which is able to import the <form:form> element. More...
 
css::uno::Reference< css::beans::XPropertySetlookupControlId (const OUString &_rControlId)
 get the control with the given id More...
 
void setAutoStyleContext (SvXMLStylesContext *_pNewContext)
 announces the auto-style context to the form importer More...
 
void documentDone ()
 to be called when the document has been completely imported More...
 

Static Private Member Functions

static SvXMLImportContextcreateOfficeFormsContext (SvXMLImport &_rImport, sal_uInt16 _nPrefix, const OUString &_rLocalName)
 creates an import context for the office:forms element More...
 

Private Attributes

SvXMLImportm_rImporter
 
OAttribute2Property m_aAttributeMetaData
 
css::uno::Reference< css::form::XFormsSupplier2 > m_xCurrentPageFormsSupp
 the supplier for the forms of the currently imported page More...
 
rtl::Reference< SvXMLStylesContextm_xAutoStyles
 
MapDrawPage2Map m_aControlIds
 
MapDrawPage2Map::iterator m_aCurrentPageIds
 
::std::vector< ModelStringPairm_aControlReferences
 
::std::vector< ModelStringPairm_aCellValueBindings
 
::std::vector< ModelStringPairm_aCellRangeListSources
 
::std::vector< ModelStringPairm_aXFormsValueBindings
 
::std::vector< ModelStringPairm_aXFormsListBindings
 
::std::vector< ModelStringPairm_aXFormsSubmissions
 

Friends

class OFormLayerXMLImport
 

Additional Inherited Members

- Protected Member Functions inherited from xmloff::ODefaultEventAttacherManager
void setEvents (const css::uno::Reference< css::container::XIndexAccess > &_rxContainer)
 
virtual ~ODefaultEventAttacherManager ()
 
- Protected Member Functions inherited from xmloff::IEventAttacherManager
 ~IEventAttacherManager ()
 

Detailed Description

Definition at line 48 of file layerimport.hxx.

Member Typedef Documentation

typedef std::map<css::uno::Reference<css::drawing::XDrawPage>, MapString2PropertySet> xmloff::OFormLayerXMLImport_Impl::MapDrawPage2Map
private

Definition at line 62 of file layerimport.hxx.

Definition at line 61 of file layerimport.hxx.

typedef ::std::pair< css::uno::Reference< css::beans::XPropertySet >, OUString > xmloff::OFormLayerXMLImport_Impl::ModelStringPair
private

Definition at line 68 of file layerimport.hxx.

Constructor & Destructor Documentation

xmloff::OFormLayerXMLImport_Impl::~OFormLayerXMLImport_Impl ( )
override

Definition at line 217 of file layerimport.cxx.

xmloff::OFormLayerXMLImport_Impl::OFormLayerXMLImport_Impl ( SvXMLImport _rImporter)
explicitprivate

Definition at line 63 of file layerimport.cxx.

References xmloff::aCheckStateMap, xmloff::aCommandTypeMap, xmloff::OAttribute2Property::addBooleanProperty(), xmloff::OAttribute2Property::addEnumProperty(), xmloff::OAttribute2Property::addInt16Property(), xmloff::OAttribute2Property::addInt32Property(), xmloff::OAttribute2Property::addStringProperty(), xmloff::aFormButtonTypeMap, xmloff::aListSourceTypeMap, xmloff::aNavigationTypeMap, xmloff::aOrientationMap, xmloff::aSubmitEncodingMap, xmloff::aSubmitMethodMap, xmloff::aTabulatorCycleMap, AutoCompletion, xmloff::aVisualEffectMap, BoundColumn, ButtonType, ConvertEmpty, CurrentSelected, CurrentState, DataField, DefaultButton, Disabled, Dropdown, xmloff::faAction, xmloff::faAllowDeletes, xmloff::faAllowInserts, xmloff::faAllowUpdates, xmloff::faApplyFilter, xmloff::faCommand, xmloff::faCommandType, xmloff::faDatasource, xmloff::faEnctype, xmloff::faEscapeProcessing, xmloff::faFilter, xmloff::faIgnoreResult, xmloff::faMethod, xmloff::faName, xmloff::faNavigationMode, xmloff::faOrder, xmloff::faTabbingCycle, FocusOnClick, xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getDatabaseAttributeName(), xmloff::OAttributeMetaData::getFormAttributeName(), xmloff::OAttributeMetaData::getSpecialAttributeName(), GroupName, InputRequired, IsTristate, Label, ListSource_TYPE, m_aAttributeMetaData, m_aControlIds, m_aCurrentPageIds, MaxLength, MultiLine, Multiple, Name, Orientation, PageStepSize, Printable, PROPERTY_ALLOWDELETES, PROPERTY_ALLOWINSERTS, PROPERTY_ALLOWUPDATES, PROPERTY_APPLYFILTER, PROPERTY_AUTOCOMPLETE, PROPERTY_BLOCK_INCREMENT, PROPERTY_BOUNDCOLUMN, PROPERTY_BUTTONTYPE, PROPERTY_COMMAND, PROPERTY_COMMAND_TYPE, PROPERTY_CYCLE, PROPERTY_DATAFIELD, PROPERTY_DATASOURCENAME, PROPERTY_DEFAULT_STATE, PROPERTY_DEFAULTBUTTON, PROPERTY_DROPDOWN, PROPERTY_EMPTY_IS_NULL, PROPERTY_ENABLED, PROPERTY_ESCAPEPROCESSING, PROPERTY_FILTER, PROPERTY_FOCUS_ON_CLICK, PROPERTY_GROUP_NAME, PROPERTY_IGNORERESULT, PROPERTY_INPUT_REQUIRED, PROPERTY_LABEL, PROPERTY_LINECOUNT, PROPERTY_LISTSOURCETYPE, PROPERTY_MAXTEXTLENGTH, PROPERTY_MULTILINE, PROPERTY_MULTISELECTION, PROPERTY_NAME, PROPERTY_NAVIGATION, PROPERTY_ORDER, PROPERTY_ORIENTATION, PROPERTY_PRINTABLE, PROPERTY_READONLY, PROPERTY_STATE, PROPERTY_STRICTFORMAT, PROPERTY_SUBMIT_ENCODING, PROPERTY_SUBMIT_METHOD, PROPERTY_TABINDEX, PROPERTY_TABSTOP, PROPERTY_TARGETFRAME, PROPERTY_TARGETURL, PROPERTY_TITLE, PROPERTY_TOGGLE, PROPERTY_TRISTATE, PROPERTY_VISUAL_EFFECT, ReadOnly, Selected, Size, State, TabIndex, TabStop, TargetFrame, TargetLocation, Title, Toggle, Validation, and VisualEffect.

Member Function Documentation

void xmloff::OFormLayerXMLImport_Impl::applyControlNumberStyle ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rControlNumberStyleName 
)
SvXMLImportContext * xmloff::OFormLayerXMLImport_Impl::createContext ( const sal_uInt16  _nPrefix,
const OUString &  _rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  _rxAttribs 
)
private

create an <type>SvXMLImportContext</type> instance which is able to import the <form:form> element.

Definition at line 451 of file layerimport.cxx.

References createXFormsModelContext(), xmloff::token::IsXMLToken(), m_rImporter, m_xCurrentPageFormsSupp, xmloff::token::XML_MODEL, and XML_NAMESPACE_XFORMS.

SvXMLImportContext * xmloff::OFormLayerXMLImport_Impl::createOfficeFormsContext ( SvXMLImport _rImport,
sal_uInt16  _nPrefix,
const OUString &  _rLocalName 
)
staticprivate

creates an import context for the office:forms element

Definition at line 443 of file layerimport.cxx.

Referenced by xmloff::OFormLayerXMLImport::createOfficeFormsContext().

void xmloff::OFormLayerXMLImport_Impl::documentDone ( )
private

to be called when the document has been completely imported

For some documents (currently: only some spreadsheet documents) it's necessary do to a post processing, since not all information from the file can be processed if the document is not completed, yet.

Definition at line 469 of file layerimport.cxx.

References aHelper, bindXFormsListBinding(), bindXFormsSubmission(), bindXFormsValueBinding(), CONTENT, Exception, getGlobalContext(), SvXMLImport::getImportFlags(), SvXMLImport::GetModel(), xmloff::FormCellBindingHelper::isCellBindingAllowed(), xmloff::FormCellBindingHelper::isListCellRangeAllowed(), m_aCellRangeListSources, m_aCellValueBindings, m_aXFormsListBindings, m_aXFormsSubmissions, m_aXFormsValueBindings, and TOOLS_WARN_EXCEPTION.

void xmloff::OFormLayerXMLImport_Impl::endPage ( )
private
void xmloff::OFormLayerXMLImport_Impl::enterEventContext ( )
OAttribute2Property& xmloff::OFormLayerXMLImport_Impl::getAttributeMap ( )
inline
SvXMLImport& xmloff::OFormLayerXMLImport_Impl::getGlobalContext ( )
inline
const SvXMLStyleContext * xmloff::OFormLayerXMLImport_Impl::getStyleElement ( const OUString &  _rStyleName) const
void xmloff::OFormLayerXMLImport_Impl::leaveEventContext ( )
Reference< XPropertySet > xmloff::OFormLayerXMLImport_Impl::lookupControlId ( const OUString &  _rControlId)
private

get the control with the given id

Definition at line 428 of file layerimport.cxx.

References m_aControlIds, and m_aCurrentPageIds.

Referenced by endPage().

void xmloff::OFormLayerXMLImport_Impl::registerCellRangeListSource ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rCellRangeAddress 
)

Definition at line 312 of file layerimport.cxx.

References m_aCellRangeListSources.

Referenced by xmloff::OListAndComboImport::EndElement().

void xmloff::OFormLayerXMLImport_Impl::registerCellValueBinding ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rCellAddress 
)

Definition at line 275 of file layerimport.cxx.

References m_aCellValueBindings.

Referenced by xmloff::OControlImport::doRegisterCellValueBinding().

void xmloff::OFormLayerXMLImport_Impl::registerControlId ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControl,
const OUString &  _rId 
)

Definition at line 343 of file layerimport.cxx.

References m_aControlIds, and m_aCurrentPageIds.

Referenced by xmloff::OControlImport::EndElement().

void xmloff::OFormLayerXMLImport_Impl::registerControlReferences ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControl,
const OUString &  _rReferringControls 
)

Definition at line 352 of file layerimport.cxx.

References m_aControlReferences.

Referenced by xmloff::OReferredControlImport::StartElement().

void xmloff::OFormLayerXMLImport_Impl::registerXFormsListBinding ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rBindingID 
)
void xmloff::OFormLayerXMLImport_Impl::registerXFormsSubmission ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rSubmissionID 
)

Definition at line 302 of file layerimport.cxx.

References m_aXFormsSubmissions.

Referenced by xmloff::OControlImport::doRegisterXFormsSubmission().

void xmloff::OFormLayerXMLImport_Impl::registerXFormsValueBinding ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const OUString &  _rBindingID 
)
void xmloff::OFormLayerXMLImport_Impl::setAutoStyleContext ( SvXMLStylesContext _pNewContext)
private

announces the auto-style context to the form importer

Definition at line 220 of file layerimport.cxx.

References m_xAutoStyles.

void xmloff::OFormLayerXMLImport_Impl::startPage ( const css::uno::Reference< css::drawing::XDrawPage > &  _rxDrawPage)
private

start importing the forms of the given page

Definition at line 359 of file layerimport.cxx.

References m_aControlIds, m_aCurrentPageIds, and m_xCurrentPageFormsSupp.

Friends And Related Function Documentation

friend class OFormLayerXMLImport
friend

Definition at line 51 of file layerimport.hxx.

Member Data Documentation

OAttribute2Property xmloff::OFormLayerXMLImport_Impl::m_aAttributeMetaData
private

Definition at line 54 of file layerimport.hxx.

Referenced by getAttributeMap(), and OFormLayerXMLImport_Impl().

::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aCellRangeListSources
private

Definition at line 74 of file layerimport.hxx.

Referenced by documentDone(), and registerCellRangeListSource().

::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aCellValueBindings
private

Definition at line 72 of file layerimport.hxx.

Referenced by documentDone(), and registerCellValueBinding().

MapDrawPage2Map xmloff::OFormLayerXMLImport_Impl::m_aControlIds
private
::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aControlReferences
private

Definition at line 70 of file layerimport.hxx.

Referenced by endPage(), and registerControlReferences().

MapDrawPage2Map::iterator xmloff::OFormLayerXMLImport_Impl::m_aCurrentPageIds
private
::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aXFormsListBindings
private

Definition at line 80 of file layerimport.hxx.

Referenced by documentDone(), and registerXFormsListBinding().

::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aXFormsSubmissions
private

Definition at line 83 of file layerimport.hxx.

Referenced by documentDone(), and registerXFormsSubmission().

::std::vector< ModelStringPair > xmloff::OFormLayerXMLImport_Impl::m_aXFormsValueBindings
private

Definition at line 77 of file layerimport.hxx.

Referenced by documentDone(), and registerXFormsValueBinding().

SvXMLImport& xmloff::OFormLayerXMLImport_Impl::m_rImporter
private
rtl::Reference<SvXMLStylesContext> xmloff::OFormLayerXMLImport_Impl::m_xAutoStyles
private

Definition at line 59 of file layerimport.hxx.

Referenced by applyControlNumberStyle(), getStyleElement(), and setAutoStyleContext().

css::uno::Reference< css::form::XFormsSupplier2 > xmloff::OFormLayerXMLImport_Impl::m_xCurrentPageFormsSupp
private

the supplier for the forms of the currently imported page

Definition at line 58 of file layerimport.hxx.

Referenced by createContext(), endPage(), and startPage().


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