LibreOffice Module xmloff (master)
1
|
Import an annotation field (<text:annotation>) More...
#include <txtfldi.hxx>
Public Member Functions | |
XMLAnnotationImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement) | |
![]() | |
XMLTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pService) | |
whether this field is valid ? More... | |
virtual void SAL_CALL | characters (const OUString &sContent) override |
name of SO API service More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
parses attributes and calls ProcessAttribute More... | |
![]() | |
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 | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) 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 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_Int32 nAttrToken, std::string_view sAttrValue) override |
process attributes More... | |
virtual void | PrepareField (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override |
set properties 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 |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) 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::XPropertySet > | mxField |
css::uno::Reference< css::text::XTextCursor > | mxCursor |
css::uno::Reference< css::text::XTextCursor > | mxOldCursor |
sal_Int32 | mnElement |
Additional Inherited Members | |
![]() | |
static XMLTextFieldImportContext * | CreateTextFieldImportContext (SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement) |
create the appropriate field context from (for use in paragraph import) More... | |
![]() | |
XMLTextImportHelper & | GetImportHelper () |
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... | |
![]() | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
![]() | |
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... | |
![]() | |
OUString | sServicePrefix |
the import helper More... | |
bool | bValid |
Import an annotation field (<text:annotation>)
Definition at line 960 of file txtfldi.hxx.
XMLAnnotationImportContext::XMLAnnotationImportContext | ( | SvXMLImport & | rImport, |
XMLTextImportHelper & | rHlp, | ||
sal_Int32 | nElement | ||
) |
Definition at line 3123 of file txtfldi.cxx.
References XMLTextFieldImportContext::bValid, SvXMLImportContext::GetImport(), and SvXMLImport::GetTextImport().
|
overrideprivatevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 3150 of file txtfldi.cxx.
References aAuthorBuffer, aDateBuffer, aInitialsBuffer, Any, aTextBuffer, XMLTextFieldImportContext::CreateField(), Exception, SvXMLImportContext::GetImport(), XMLTextFieldImportContext::GetServiceName(), SvXMLImport::GetTextImport(), META, mxCursor, mxField, mxOldCursor, XMLTextFieldImportContext::sServicePrefix, TEXT, xmloff::token::XML_CREATOR, xmloff::token::XML_CREATOR_INITIALS, xmloff::token::XML_DATE, XML_ELEMENT, and xmloff::token::XML_SENDER_INITIALS.
|
overrideprivatevirtual |
create XTextField and insert into document; calls PrepareTextField
Reimplemented from XMLTextFieldImportContext.
Definition at line 3197 of file txtfldi.cxx.
References aName, XMLTextFieldImportContext::bValid, XMLTextFieldImportContext::CreateField(), DBG_ASSERT, XMLTextFieldImportContext::GetContent(), SvXMLImportContext::GetImport(), XMLTextFieldImportContext::GetImportHelper(), XMLTextFieldImportContext::GetServiceName(), XMLTextImportHelper::GetText(), SvXMLImport::GetTextImport(), XMLTextImportHelper::InsertString(), XMLTextImportHelper::InsertTextContent(), mnElement, mxCursor, mxField, mxOldCursor, OFFICE, PrepareField(), sAPI_name, XMLTextFieldImportContext::sServicePrefix, xmloff::token::XML_ANNOTATION_END, and XML_ELEMENT.
|
overrideprivatevirtual |
set properties
Implements XMLTextFieldImportContext.
Definition at line 3282 of file txtfldi.cxx.
References aAuthorBuffer, aDateBuffer, aInitialsBuffer, aName, aResolved, aTextBuffer, sax::Converter::convertBool(), makeAny(), sax::Converter::parseDateTime(), sAPI_author, sAPI_content, sAPI_date_time_value, sAPI_name, and void().
Referenced by endFastElement().
|
overrideprivatevirtual |
process attributes
Implements XMLTextFieldImportContext.
Definition at line 3138 of file txtfldi.cxx.
References aName, aResolved, OFFICE, XML_ELEMENT, xmloff::token::XML_NAME, xmloff::token::XML_RESOLVED, and XMLOFF_WARN_UNKNOWN_ATTR.
|
private |
Definition at line 962 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 966 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 963 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 964 of file txtfldi.hxx.
Referenced by endFastElement(), PrepareField(), and ProcessAttribute().
|
private |
Definition at line 967 of file txtfldi.hxx.
Referenced by PrepareField(), and ProcessAttribute().
|
private |
Definition at line 965 of file txtfldi.hxx.
Referenced by createFastChildContext(), and PrepareField().
|
private |
Definition at line 973 of file txtfldi.hxx.
Referenced by endFastElement().
|
private |
Definition at line 970 of file txtfldi.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 969 of file txtfldi.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 971 of file txtfldi.hxx.
Referenced by createFastChildContext(), and endFastElement().