LibreOffice Module xmloff (master) 1
|
Used for hyperlinks attached to objects (drawing objects, text boxes, Writer frames) More...
#include <XMLTextFrameHyperlinkContext.hxx>
Public Member Functions | |
XMLTextFrameHyperlinkContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::text::TextContentAnchorType eDefaultAnchorType) | |
virtual | ~XMLTextFrameHyperlinkContext () override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
css::text::TextContentAnchorType | GetAnchorType () const |
css::uno::Reference< css::text::XTextContent > | GetTextContent () const |
css::uno::Reference< css::drawing::XShape > | GetShape () const |
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 | |
OUString | sHRef |
OUString | sName |
OUString | sTargetFrameName |
css::text::TextContentAnchorType | eDefaultAnchorType |
SvXMLImportContextRef | xFrameContext |
bool | bMap |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Used for hyperlinks attached to objects (drawing objects, text boxes, Writer frames)
Definition at line 33 of file XMLTextFrameHyperlinkContext.hxx.
XMLTextFrameHyperlinkContext::XMLTextFrameHyperlinkContext | ( | SvXMLImport & | rImport, |
sal_Int32 | nElement, | ||
const css::uno::Reference< css::xml::sax::XFastAttributeList > & | xAttrList, | ||
css::text::TextContentAnchorType | eDefaultAnchorType | ||
) |
Definition at line 43 of file XMLTextFrameHyperlinkContext.cxx.
References bMap, sax_fastparser::castToFastAttributeList(), sax::Converter::convertBool(), SvXMLImportContext::GetImport(), xmloff::token::IsXMLToken(), OFFICE, sHRef, sName, sTargetFrameName, XML_ELEMENT, xmloff::token::XML_HREF, xmloff::token::XML_NAME, xmloff::token::XML_NEW, xmloff::token::XML_REPLACE, xmloff::token::XML_SERVER_MAP, xmloff::token::XML_SHOW, xmloff::token::XML_TARGET_FRAME_NAME, and XMLOFF_WARN_UNKNOWN.
|
overridevirtual |
Definition at line 93 of file XMLTextFrameHyperlinkContext.cxx.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 97 of file XMLTextFrameHyperlinkContext.cxx.
References bMap, XMLShapeImportHelper::CreateGroupChildContext(), DRAW, eDefaultAnchorType, SvXMLImportContext::GetImport(), XMLTextFrameContext::SetHyperlink(), SvXMLShapeContext::setHyperlink(), sHRef, sName, sTargetFrameName, xFrameContext, xmloff::token::XML_CAPTION, xmloff::token::XML_CIRCLE, xmloff::token::XML_CONNECTOR, xmloff::token::XML_CONTROL, xmloff::token::XML_CUSTOM_SHAPE, XML_ELEMENT, xmloff::token::XML_ELLIPSE, xmloff::token::XML_FRAME, xmloff::token::XML_G, xmloff::token::XML_LINE, xmloff::token::XML_MEASURE, xmloff::token::XML_PAGE_THUMBNAIL, xmloff::token::XML_PATH, xmloff::token::XML_POLYGON, xmloff::token::XML_POLYLINE, xmloff::token::XML_RECT, xmloff::token::XML_SCENE, and XMLOFF_WARN_UNKNOWN_ELEMENT.
TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType | ( | ) | const |
Definition at line 146 of file XMLTextFrameHyperlinkContext.cxx.
References eDefaultAnchorType, XMLTextFrameContext::GetAnchorType(), and xFrameContext.
Reference< drawing::XShape > XMLTextFrameHyperlinkContext::GetShape | ( | ) | const |
Definition at line 171 of file XMLTextFrameHyperlinkContext.cxx.
References XMLTextFrameContext::GetShape(), and xFrameContext.
Reference< XTextContent > XMLTextFrameHyperlinkContext::GetTextContent | ( | ) | const |
Definition at line 158 of file XMLTextFrameHyperlinkContext.cxx.
References XMLTextFrameContext::GetTextContent(), and xFrameContext.
|
private |
Definition at line 40 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), and XMLTextFrameHyperlinkContext().
|
private |
Definition at line 38 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), and GetAnchorType().
|
private |
Definition at line 35 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), and XMLTextFrameHyperlinkContext().
|
private |
Definition at line 36 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), and XMLTextFrameHyperlinkContext().
|
private |
Definition at line 37 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), and XMLTextFrameHyperlinkContext().
|
private |
Definition at line 39 of file XMLTextFrameHyperlinkContext.hxx.
Referenced by createFastChildContext(), GetAnchorType(), GetShape(), and GetTextContent().