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

Import an annotation field (<text:annotation>) More...

#include <txtfldi.hxx>

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

Public Member Functions

 XMLAnnotationImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nToken, sal_uInt16 nPrfx, const OUString &sLocalName)
 
- Public Member Functions inherited from XMLTextFieldImportContext
 XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pService, sal_uInt16 nPrfx, const OUString &rLocalName)
 whether this field is valid ? More...
 
virtual void Characters (const OUString &sContent) override
 element name w/o prefix More...
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 parses attributes and calls ProcessAttribute 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 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 Member Functions

virtual void ProcessAttribute (sal_uInt16 nAttrToken, const OUString &sAttrValue) override
 process attributes More...
 
virtual void PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
 set properties More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
virtual void EndElement () override
 create XTextField and insert into document; calls PrepareTextField More...
 

Private Attributes

OUStringBuffer aAuthorBuffer
 
OUStringBuffer aInitialsBuffer
 
OUString aName
 
OUStringBuffer aTextBuffer
 
OUStringBuffer aDateBuffer
 
OUString aResolved
 
css::uno::Reference< css::beans::XPropertySetmxField
 
css::uno::Reference< css::text::XTextCursor > mxCursor
 
css::uno::Reference< css::text::XTextCursor > mxOldCursor
 
sal_uInt16 m_nToken
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLTextFieldImportContext
static XMLTextFieldImportContextCreateTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrefix, const OUString &rName, sal_uInt16 nToken)
 create the appropriate field context from (for use in paragraph import) More...
 
- Protected Member Functions inherited from XMLTextFieldImportContext
XMLTextImportHelperGetImportHelper ()
 get helper More...
 
const OUString & GetServiceName () const
 
void SetServiceName (const OUString &sStr)
 
OUString const & GetContent ()
 
bool CreateField (css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
 create field from ServiceName More...
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 
- Static Protected Member Functions inherited from XMLTextFieldImportContext
static void ForceUpdate (const css::uno::Reference< css::beans::XPropertySet > &rPropertySet)
 force an update of the field's value call update on optional XUpdatable interface; (disable Fixed property) More...
 
- Protected Attributes inherited from XMLTextFieldImportContext
OUString sServicePrefix
 the import helper More...
 
bool bValid
 

Detailed Description

Import an annotation field (<text:annotation>)

Definition at line 1097 of file txtfldi.hxx.

Constructor & Destructor Documentation

XMLAnnotationImportContext::XMLAnnotationImportContext ( SvXMLImport rImport,
XMLTextImportHelper rHlp,
sal_uInt16  nToken,
sal_uInt16  nPrfx,
const OUString &  sLocalName 
)

Member Function Documentation

SvXMLImportContextRef XMLAnnotationImportContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overrideprivatevirtual
void XMLAnnotationImportContext::EndElement ( )
overrideprivatevirtual
void XMLAnnotationImportContext::PrepareField ( const css::uno::Reference< css::beans::XPropertySet > &  xPropertySet)
overrideprivatevirtual
void XMLAnnotationImportContext::ProcessAttribute ( sal_uInt16  nAttrToken,
const OUString &  sAttrValue 
)
overrideprivatevirtual

process attributes

Implements XMLTextFieldImportContext.

Definition at line 3283 of file txtfldi.cxx.

References aName, aResolved, XMLImageStyle::rValue, XML_TOK_TEXT_NAME, and XML_TOK_TEXT_RESOLVED.

Member Data Documentation

OUStringBuffer XMLAnnotationImportContext::aAuthorBuffer
private

Definition at line 1099 of file txtfldi.hxx.

Referenced by CreateChildContext(), and PrepareField().

OUStringBuffer XMLAnnotationImportContext::aDateBuffer
private

Definition at line 1103 of file txtfldi.hxx.

Referenced by CreateChildContext(), and PrepareField().

OUStringBuffer XMLAnnotationImportContext::aInitialsBuffer
private

Definition at line 1100 of file txtfldi.hxx.

Referenced by CreateChildContext(), and PrepareField().

OUString XMLAnnotationImportContext::aName
private

Definition at line 1101 of file txtfldi.hxx.

Referenced by EndElement(), PrepareField(), and ProcessAttribute().

OUString XMLAnnotationImportContext::aResolved
private

Definition at line 1104 of file txtfldi.hxx.

Referenced by PrepareField(), and ProcessAttribute().

OUStringBuffer XMLAnnotationImportContext::aTextBuffer
private

Definition at line 1102 of file txtfldi.hxx.

Referenced by CreateChildContext(), and PrepareField().

sal_uInt16 XMLAnnotationImportContext::m_nToken
private

Definition at line 1110 of file txtfldi.hxx.

Referenced by EndElement().

css::uno::Reference< css::text::XTextCursor > XMLAnnotationImportContext::mxCursor
private

Definition at line 1107 of file txtfldi.hxx.

Referenced by CreateChildContext(), and EndElement().

css::uno::Reference< css::beans::XPropertySet > XMLAnnotationImportContext::mxField
private

Definition at line 1106 of file txtfldi.hxx.

Referenced by CreateChildContext(), and EndElement().

css::uno::Reference< css::text::XTextCursor > XMLAnnotationImportContext::mxOldCursor
private

Definition at line 1108 of file txtfldi.hxx.

Referenced by CreateChildContext(), and EndElement().


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