LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwXMLTextParagraphExport Class Reference

#include <xmltexte.hxx>

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

Public Types

typedef ::std::unordered_map< SwFrameFormat const *, ::std::optional< OUString > > FormatMap
 
- Public Types inherited from XMLTextParagraphExport
enum  FieldmarkType
 

Public Member Functions

 SwXMLTextParagraphExport (SwXMLExport &rExp, SvXMLAutoStylePoolP &rAutoStylePool)
 
virtual ~SwXMLTextParagraphExport () override
 
::std::unordered_map< SwTableNode const *, ::std::pair< FormatMap, FormatMap > > const & GetTableFormats () const
 
::std::unordered_map< SwTableNode const *, ::std::pair< FormatMap, FormatMap > > & GetTableFormats ()
 
- Public Member Functions inherited from XMLTextParagraphExport
void exportTextRangeSpan (const css::uno::Reference< css::text::XTextRange > &rTextRange, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, css::uno::Reference< css::beans::XPropertySetInfo > &xPropSetInfo, const bool bIsUICharStyle, const bool bHasAutoStyle, const OUString &sStyle, bool &rPrevCharIsSpace, FieldmarkType &openFieldMark)
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper () const
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetTextPropMapper () const
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetAutoFramePropMapper () const
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetSectionPropMapper () const
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetRubyPropMapper () const
 
OUString FindTextStyle (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool &rbHasCharStyle, bool &rbHasAutoStyle, const XMLPropertyState **pAddState=nullptr) const
 
void exportTextRangeEnumeration (const css::uno::Reference< css::container::XEnumeration > &rRangeEnum, bool bAutoStyles, bool bProgress, bool &rPrevCharIsSpace)
 
 XMLTextParagraphExport (SvXMLExport &rExp, SvXMLAutoStylePoolP &rASP)
 
virtual ~XMLTextParagraphExport () override
 
void Add (XmlStyleFamily nFamily, MultiPropertySetHelper &rPropSetHelper, const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
 
void Add (XmlStyleFamily nFamily, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, o3tl::span< const XMLPropertyState > aAddStates={}, bool bDontSeek=false)
 
OUString Find (XmlStyleFamily nFamily, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const OUString &rParent, const o3tl::span< const XMLPropertyState > aAddStates={}) const
 
void exportTextStyles (bool bUsed, bool bProg)
 
void exportTextDeclarations ()
 
void exportTextDeclarations (const css::uno::Reference< css::text::XText > &rText)
 
void exportUsedDeclarations ()
 
void exportTrackedChanges (bool bAutoStyle)
 
void exportTrackedChanges (const css::uno::Reference< css::text::XText > &rText, bool bAutoStyle)
 
void recordTrackedChangesForXText (const css::uno::Reference< css::text::XText > &rText)
 
void recordTrackedChangesNoXText ()
 
void exportCharacterData (const OUString &rText, bool &rPrevCharWasSpace)
 
void collectTextAutoStyles (const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true)
 
void collectTextAutoStyles (const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bIsProgress)
 
void collectTextAutoStylesOptimized (bool bIsProgress)
 
void exportTextAutoStyles ()
 
void exportEvents (const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
 
void exportTitleAndDescription (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo)
 
void exportText (const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true, TextPNS eExtensionNS=TextPNS::ODF)
 
void exportText (const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bIsProgress)
 
void exportFramesBoundToPage (bool bIsProgress)
 
const XMLTextListAutoStylePoolGetListAutoStylePool () const
 
void SetBlockMode (bool bSet)
 
bool IsBlockMode () const
 
const rtl::Reference< SvXMLExportPropertyMapper > & GetParagraphPropertyMapper () const
 
void PreventExportOfControlsInMuteSections (const css::uno::Reference< css::container::XIndexAccess > &rShapes, const rtl::Reference< xmloff::OFormLayerXMLExport > &xFormExport)
 
SinglePropertySetInfoCacheGetCharStyleNamesPropInfoCache ()
 
void PushNewTextListsHelper ()
 
void PopTextListsHelper ()
 
- Public Member Functions inherited from XMLStyleExport
 XMLStyleExport (SvXMLExport &rExp, SvXMLAutoStylePoolP *pAutoStyleP=nullptr)
 
virtual ~XMLStyleExport () override
 
void exportDefaultStyle (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper)
 
void exportStyleFamily (const OUString &rFamily, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString *pPrefix=nullptr)
 

Protected Member Functions

virtual void _collectTextEmbeddedAutoStyles (const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
 
virtual void _exportTextEmbedded (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo) override
 
virtual void exportTable (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, bool bProgress) override
 
virtual void exportTableAutoStyles () override
 
- Protected Member Functions inherited from XMLTextParagraphExport
SvXMLAutoStylePoolPGetAutoStylePool ()
 
const SvXMLAutoStylePoolPGetAutoStylePool () const
 
XMLShapeExportFlags addTextFrameAttributes (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bShape, basegfx::B2DPoint *pCenter=nullptr, OUString *pMinHeightValue=nullptr, OUString *pMinWidthValue=nullptr)
 
virtual void exportStyleAttributes (const css::uno::Reference< css::style::XStyle > &rStyle) override
 
void exportPageFrames (bool bProgress)
 
void exportFrameFrames (bool bAutoStyles, bool bProgress, const css::uno::Reference< css::text::XTextFrame > &rParentTxtFrame)
 
void exportNumStyles (bool bUsed)
 
void exportText (const css::uno::Reference< css::text::XText > &rText, bool bAutoStyles, bool bProgress, bool bExportParagraph, TextPNS eExtensionNS=TextPNS::ODF)
 
void exportText (const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bAutoStyles, bool bProgress, bool bExportParagraph)
 
void exportTextContentEnumeration (const css::uno::Reference< css::container::XEnumeration > &rContentEnum, bool bAutoStyles, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bProgress, bool bExportParagraph=true, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr, TextPNS eExtensionNS=TextPNS::ODF)
 
void exportParagraph (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, bool bProgress, bool bExportParagraph, MultiPropertySetHelper &rPropSetHelper, TextPNS eExtensionNS)
 
virtual void exportTable (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, bool bProgress)
 
void exportTextField (const css::uno::Reference< css::text::XTextRange > &rTextRange, bool bAutoStyles, bool bProgress, bool *pPrevCharIsSpace)
 
void exportTextField (const css::uno::Reference< css::text::XTextField > &xTextField, const bool bAutoStyles, const bool bProgress, const bool bRecursive, bool *pPrevCharIsSpace)
 
void exportAnyTextFrame (const css::uno::Reference< css::text::XTextContent > &rTextContent, FrameType eTxpe, bool bAutoStyles, bool bProgress, bool bExportContent, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet)
 
void _exportTextFrame (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo, bool bProgress)
 
void exportTextFrame (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, bool bProgress, bool bExportContent, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
 
void exportShape (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
 
void exportContour (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo)
 
void _exportTextGraphic (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo)
 
void exportTextGraphic (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
 
virtual void _collectTextEmbeddedAutoStyles (const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
 
virtual void _exportTextEmbedded (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo)
 
void exportTextEmbedded (const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
 
void exportTextFootnote (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const OUString &sString, bool bAutoStyles, bool bProgress)
 
void exportTextFootnoteHelper (const css::uno::Reference< css::text::XFootnote > &rPropSet, const css::uno::Reference< css::text::XText > &rText, const OUString &sString, bool bAutoStyles, bool bIsEndnote, bool bProgress)
 
void exportTextFootnoteConfiguration ()
 
void exportTextFootnoteConfigurationHelper (const css::uno::Reference< css::beans::XPropertySet > &rFootnoteSupplier, bool bIsEndnote)
 
void exportTextMark (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const OUString &rProperty, const enum ::xmloff::token::XMLTokenEnum pElements[], bool bAutoStyles)
 
void exportSoftPageBreak ()
 
void exportTextLineBreak (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 
void exportTextRange (const css::uno::Reference< css::text::XTextRange > &rTextRange, bool bAutoStyles, bool &rPrevCharWasSpace, FieldmarkType &openFieldmarkType)
 
void exportListChange (const XMLTextNumRuleInfo &rPrvInfo, const XMLTextNumRuleInfo &rNextInfo)
 
void exportListAndSectionChange (css::uno::Reference< css::text::XTextSection > &rOldSection, const css::uno::Reference< css::text::XTextSection > &rNewSection, const XMLTextNumRuleInfo &rOldList, const XMLTextNumRuleInfo &rNewList, bool bAutoStyles)
 
void exportListAndSectionChange (css::uno::Reference< css::text::XTextSection > &rOldSection, const css::uno::Reference< css::text::XTextContent > &rNewContent, const XMLTextNumRuleInfo &rOldList, const XMLTextNumRuleInfo &rNewList, bool bAutoStyles)
 
void exportListAndSectionChange (css::uno::Reference< css::text::XTextSection > &rOldSection, MultiPropertySetHelper &rPropSetHelper, sal_Int16 nTextSectionId, const css::uno::Reference< css::text::XTextContent > &rNewContent, const XMLTextNumRuleInfo &rOldList, const XMLTextNumRuleInfo &rNewList, bool bAutoStyles)
 
void exportRuby (const css::uno::Reference< css::beans::XPropertySet > &rPortionPropSet, bool bAutoStyles)
 
void exportMeta (const css::uno::Reference< css::beans::XPropertySet > &i_xPortion, bool i_bAutoStyles, bool i_isProgress, bool &rPrevCharIsSpace)
 
void ExportContentControl (const css::uno::Reference< css::beans::XPropertySet > &xPortion, bool bAutoStyles, bool isProgress, bool &rPrevCharIsSpace)
 
bool isAutoStylesCollected () const
 
virtual void exportTableAutoStyles ()
 
- Protected Member Functions inherited from XMLStyleExport
SvXMLExportGetExport ()
 
const SvXMLExportGetExport () const
 
bool exportStyle (const css::uno::Reference< css::style::XStyle > &rStyle, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper, const css::uno::Reference< css::container::XNameAccess > &xStyles, const OUString *pPrefix)
 
virtual void exportStyleAttributes (const css::uno::Reference< css::style::XStyle > &rStyle)
 
virtual void exportStyleContent (const css::uno::Reference< css::style::XStyle > &rStyle)
 

Private Member Functions

void CollectTableLinesAutoStyles (const SwTableLines &rLines, SwFrameFormat &rFormat, bool bProgress)
 

Static Private Member Functions

static SwNoTextNodeGetNoTextNode (const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
 

Private Attributes

const SvGlobalName m_aAppletClassId
 
const SvGlobalName m_aPluginClassId
 
const SvGlobalName m_aIFrameClassId
 
std::vector< const SwTableNode * > maTableNodes
 
::std::unordered_map< SwTableNode const *, ::std::pair< FormatMap, FormatMap > > m_TableFormats
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLTextParagraphExport
static SvXMLExportPropertyMapperCreateShapeExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateCharExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateParaExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateParaDefaultExtPropMapper (SvXMLExport &rExport)
 
- Public Attributes inherited from XMLTextParagraphExport
 NONE
 
 TEXT
 
 CHECK
 
- Protected Attributes inherited from XMLTextParagraphExport
SinglePropertySetInfoCache m_aCharStyleNamesPropInfoCache
 
- Static Protected Attributes inherited from XMLTextParagraphExport
static constexpr OUStringLiteral gsFrameStyleName
 

Detailed Description

Definition at line 38 of file xmltexte.hxx.

Member Typedef Documentation

◆ FormatMap

typedef ::std::unordered_map<SwFrameFormat const*, ::std::optional<OUString> > SwXMLTextParagraphExport::FormatMap

Definition at line 47 of file xmltexte.hxx.

Constructor & Destructor Documentation

◆ SwXMLTextParagraphExport()

SwXMLTextParagraphExport::SwXMLTextParagraphExport ( SwXMLExport rExp,
SvXMLAutoStylePoolP rAutoStylePool 
)

Definition at line 81 of file xmltexte.cxx.

References SO3_APPLET_CLASSID, SO3_IFRAME_CLASSID, and SO3_PLUGIN_CLASSID.

◆ ~SwXMLTextParagraphExport()

SwXMLTextParagraphExport::~SwXMLTextParagraphExport ( )
overridevirtual

Definition at line 91 of file xmltexte.cxx.

Member Function Documentation

◆ _collectTextEmbeddedAutoStyles()

void SwXMLTextParagraphExport::_collectTextEmbeddedAutoStyles ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet)
overrideprotectedvirtual

◆ _exportTextEmbedded()

void SwXMLTextParagraphExport::_exportTextEmbedded ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo 
)
overrideprotectedvirtual

Reimplemented from XMLTextParagraphExport.

Definition at line 213 of file xmltexte.cxx.

References aBuffer, SvXMLExport::AddAttribute(), SvXMLExport::AddEmbeddedObject(), SvXMLExport::AddEmbeddedObjectAsBase64(), XMLTextParagraphExport::addTextFrameAttributes(), Any, aStr, XMLTextParagraphExport::exportContour(), SvXMLExport::ExportEmbeddedOwnObject(), XMLTextParagraphExport::exportEvents(), XMLTextParagraphExport::exportTitleAndDescription(), XMLTextParagraphExport::Find(), XMLTextParagraphExport::GetAutoFramePropMapper(), SwOLENode::GetChartTableName(), SwOLEObj::GetCurrentPersistName(), XMLStyleExport::GetExport(), SvXMLExport::getExportFlags(), GetNoTextNode(), SwOLEObj::GetObject(), svt::EmbeddedObjectRef::GetObject(), SwNode::GetOLENode(), SwOLENode::GetOLEObj(), SwApplet_Impl::GetOptionType(), gsEmbeddedObjectProtocol(), XMLTextParagraphExport::gsFrameStyleName, i, svt::EmbeddedObjectRef::is(), SotExchange::IsInternal(), lcl_addAspect(), lcl_addFrameProperties(), lcl_addOutplaceProperties(), lcl_addURL(), m_aAppletClassId, m_aIFrameClassId, m_aPluginClassId, nType, nType2, PARAM, SIZE, TAG, svt::EmbeddedObjectRef::TryRunningState(), XML__UNKNOWN_, XML_APPLET, XML_APPLET_NAME, XML_CODE, XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE, XML_FALSE, XML_FLOATING_FRAME, XML_FRAME, XML_FRAME_NAME, XML_IMAGE, XML_MAY_SCRIPT, XML_MIME_TYPE, XML_NAME, XML_NAMESPACE_DRAW, XML_NOTIFY_ON_UPDATE_OF_RANGES, XML_OBJECT, XML_OBJECT_OLE, XML_PARAM, XML_PLUGIN, XML_STYLE_NAME, XML_TRUE, and XML_VALUE.

◆ CollectTableLinesAutoStyles()

void SwXMLTextParagraphExport::CollectTableLinesAutoStyles ( const SwTableLines rLines,
SwFrameFormat rFormat,
bool  bProgress 
)
private

◆ exportTable()

void SwXMLTextParagraphExport::exportTable ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
bool  bProgress 
)
overrideprotectedvirtual

◆ exportTableAutoStyles()

void SwXMLTextParagraphExport::exportTableAutoStyles ( )
overrideprotectedvirtual

Reimplemented from XMLTextParagraphExport.

Definition at line 1186 of file xmltble.cxx.

References XMLStyleExport::GetExport(), and maTableNodes.

◆ GetNoTextNode()

SwNoTextNode * SwXMLTextParagraphExport::GetNoTextNode ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet)
staticprivate

◆ GetTableFormats() [1/2]

::std::unordered_map< SwTableNode const *, ::std::pair< FormatMap, FormatMap > > & SwXMLTextParagraphExport::GetTableFormats ( )
inline

Definition at line 79 of file xmltexte.hxx.

References m_TableFormats.

◆ GetTableFormats() [2/2]

::std::unordered_map< SwTableNode const *, ::std::pair< FormatMap, FormatMap > > const & SwXMLTextParagraphExport::GetTableFormats ( ) const
inline

Definition at line 77 of file xmltexte.hxx.

References m_TableFormats.

Member Data Documentation

◆ m_aAppletClassId

const SvGlobalName SwXMLTextParagraphExport::m_aAppletClassId
private

Definition at line 40 of file xmltexte.hxx.

Referenced by _exportTextEmbedded().

◆ m_aIFrameClassId

const SvGlobalName SwXMLTextParagraphExport::m_aIFrameClassId
private

Definition at line 42 of file xmltexte.hxx.

Referenced by _collectTextEmbeddedAutoStyles(), and _exportTextEmbedded().

◆ m_aPluginClassId

const SvGlobalName SwXMLTextParagraphExport::m_aPluginClassId
private

Definition at line 41 of file xmltexte.hxx.

Referenced by _exportTextEmbedded().

◆ m_TableFormats

::std::unordered_map<SwTableNode const*, ::std::pair<FormatMap, FormatMap> > SwXMLTextParagraphExport::m_TableFormats
private

Definition at line 49 of file xmltexte.hxx.

Referenced by exportTable(), and GetTableFormats().

◆ maTableNodes

std::vector<const SwTableNode*> SwXMLTextParagraphExport::maTableNodes
private

Definition at line 45 of file xmltexte.hxx.

Referenced by exportTable(), and exportTableAutoStyles().


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