LibreOffice Module xmloff (master) 1
Classes | Namespaces | Functions | Variables
txtparae.cxx File Reference
#include <sal/config.h>
#include <o3tl/any.hxx>
#include <xmloff/unointerfacetouniqueidentifiermapper.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/types.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/container/XIndexReplace.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XTextSectionsSupplier.hpp>
#include <com/sun/star/text/XTextTablesSupplier.hpp>
#include <com/sun/star/text/XNumberingRulesSupplier.hpp>
#include <com/sun/star/text/XChapterNumberingSupplier.hpp>
#include <com/sun/star/text/XTextTable.hpp>
#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/text/XTextFrame.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/text/SizeType.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/text/XTextFramesSupplier.hpp>
#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
#include <com/sun/star/document/XEventsSupplier.hpp>
#include <com/sun/star/document/XRedlinesSupplier.hpp>
#include <com/sun/star/text/XFormField.hpp>
#include <com/sun/star/text/XTextSection.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/style/XAutoStylesSupplier.hpp>
#include <com/sun/star/style/XAutoStyleFamily.hpp>
#include <com/sun/star/text/XTextFieldsSupplier.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <sax/tools/converter.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmlaustp.hxx>
#include <xmloff/families.hxx>
#include "txtexppr.hxx"
#include <xmloff/xmluconv.hxx>
#include "XMLAnchorTypePropHdl.hxx"
#include <xexptran.hxx>
#include <xmloff/ProgressBarHelper.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmlexp.hxx>
#include <txtflde.hxx>
#include <xmloff/txtprmap.hxx>
#include <XMLImageMapExport.hxx>
#include "XMLTextNumRuleInfo.hxx"
#include <xmloff/XMLTextListAutoStylePool.hxx>
#include <xmloff/txtparae.hxx>
#include "XMLSectionExport.hxx"
#include "XMLIndexMarkExport.hxx"
#include <xmloff/XMLEventExport.hxx>
#include "XMLRedlineExport.hxx"
#include <MultiPropertySetHelper.hxx>
#include <xmloff/formlayerexport.hxx>
#include "XMLTextCharStyleNamesElementExport.hxx"
#include <xmloff/odffields.hxx>
#include <xmloff/maptype.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/document/XStorageBasedDocument.hpp>
#include <txtlists.hxx>
#include <com/sun/star/rdf/XMetadatable.hpp>
#include <list>
#include <unordered_map>
#include <memory>
#include <vector>
#include <algorithm>
#include <iterator>
#include <officecfg/Office/Common.hxx>
#include <o3tl/safeint.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/sequenceashashmap.hxx>
Include dependency graph for txtparae.cxx:

Go to the source code of this file.

Classes

class  xmloff::BoundFrameSets
 
struct  XMLTextParagraphExport::Impl
 
struct  XMLTextParagraphExport::DocumentListNodes
 
struct  XMLTextParagraphExport::DocumentListNodes::NodeData
 

Namespaces

namespace  xmloff
 

Functions

constexpr OUStringLiteral gsTitle (u"Title")
 
constexpr OUStringLiteral gsDescription (u"Description")
 
constexpr OUStringLiteral gsAnchorPageNo (u"AnchorPageNo")
 
constexpr OUStringLiteral gsAnchorType (u"AnchorType")
 
constexpr OUStringLiteral gsBookmark (u"Bookmark")
 
constexpr OUStringLiteral gsChainNextName (u"ChainNextName")
 
constexpr OUStringLiteral gsContourPolyPolygon (u"ContourPolyPolygon")
 
constexpr OUStringLiteral gsDocumentIndexMark (u"DocumentIndexMark")
 
constexpr OUStringLiteral gsFrame (u"Frame")
 
constexpr OUStringLiteral gsGraphicFilter (u"GraphicFilter")
 
constexpr OUStringLiteral gsGraphicRotation (u"GraphicRotation")
 
constexpr OUStringLiteral gsHeight (u"Height")
 
constexpr OUStringLiteral gsHoriOrient (u"HoriOrient")
 
constexpr OUStringLiteral gsHoriOrientPosition (u"HoriOrientPosition")
 
constexpr OUStringLiteral gsHyperLinkName (u"HyperLinkName")
 
constexpr OUStringLiteral gsHyperLinkTarget (u"HyperLinkTarget")
 
constexpr OUStringLiteral gsHyperLinkURL (u"HyperLinkURL")
 
constexpr OUStringLiteral gsIsAutomaticContour (u"IsAutomaticContour")
 
constexpr OUStringLiteral gsIsCollapsed (u"IsCollapsed")
 
constexpr OUStringLiteral gsIsPixelContour (u"IsPixelContour")
 
constexpr OUStringLiteral gsIsStart (u"IsStart")
 
constexpr OUStringLiteral gsIsSyncHeightToWidth (u"IsSyncHeightToWidth")
 
constexpr OUStringLiteral gsIsSyncWidthToHeight (u"IsSyncWidthToHeight")
 
constexpr OUStringLiteral gsNumberingRules (u"NumberingRules")
 
constexpr OUStringLiteral gsParaConditionalStyleName (u"ParaConditionalStyleName")
 
constexpr OUStringLiteral gsParagraphService (u"com.sun.star.text.Paragraph")
 
constexpr OUStringLiteral gsRedline (u"Redline")
 
constexpr OUStringLiteral gsReferenceMark (u"ReferenceMark")
 
constexpr OUStringLiteral gsRelativeHeight (u"RelativeHeight")
 
constexpr OUStringLiteral gsRelativeWidth (u"RelativeWidth")
 
constexpr OUStringLiteral gsRuby (u"Ruby")
 
constexpr OUStringLiteral gsRubyCharStyleName (u"RubyCharStyleName")
 
constexpr OUStringLiteral gsRubyText (u"RubyText")
 
constexpr OUStringLiteral gsServerMap (u"ServerMap")
 
constexpr OUStringLiteral gsShapeService (u"com.sun.star.drawing.Shape")
 
constexpr OUStringLiteral gsSizeType (u"SizeType")
 
constexpr OUStringLiteral gsSoftPageBreak (u"SoftPageBreak")
 
constexpr OUStringLiteral gsTableService (u"com.sun.star.text.TextTable")
 
constexpr OUStringLiteral gsText (u"Text")
 
constexpr OUStringLiteral gsTextContentService (u"com.sun.star.text.TextContent")
 
constexpr OUStringLiteral gsTextEmbeddedService (u"com.sun.star.text.TextEmbeddedObject")
 
constexpr OUStringLiteral gsTextField (u"TextField")
 
constexpr OUStringLiteral gsTextFieldService (u"com.sun.star.text.TextField")
 
constexpr OUStringLiteral gsTextFrameService (u"com.sun.star.text.TextFrame")
 
constexpr OUStringLiteral gsTextGraphicService (u"com.sun.star.text.TextGraphicObject")
 
constexpr OUStringLiteral gsTextPortionType (u"TextPortionType")
 
constexpr OUStringLiteral gsUnvisitedCharStyleName (u"UnvisitedCharStyleName")
 
constexpr OUStringLiteral gsVertOrient (u"VertOrient")
 
constexpr OUStringLiteral gsVertOrientPosition (u"VertOrientPosition")
 
constexpr OUStringLiteral gsVisitedCharStyleName (u"VisitedCharStyleName")
 
constexpr OUStringLiteral gsWidth (u"Width")
 
constexpr OUStringLiteral gsWidthType (u"WidthType")
 
constexpr OUStringLiteral gsTextFieldStart (u"TextFieldStart")
 
constexpr OUStringLiteral gsTextFieldSep (u"TextFieldSeparator")
 
constexpr OUStringLiteral gsTextFieldEnd (u"TextFieldEnd")
 
constexpr OUStringLiteral gsTextFieldStartEnd (u"TextFieldStartEnd")
 
static bool lcl_validPropState (const XMLPropertyState &rState)
 
static bool lcl_txtpara_isBoundAsChar (const Reference< XPropertySet > &rPropSet, const Reference< XPropertySetInfo > &rPropSetInfo)
 

Variables

static bool txtparae_bContainsIllegalCharacters = false
 
static const char * aParagraphPropertyNamesAuto []
 
static const char * aParagraphPropertyNames []
 
enum XMLTokenEnum lcl_XmlReferenceElements []
 
enum XMLTokenEnum lcl_XmlBookmarkElements []
 

Function Documentation

◆ gsAnchorPageNo()

constexpr OUStringLiteral gsAnchorPageNo ( u"AnchorPageNo"  )
constexpr

◆ gsAnchorType()

constexpr OUStringLiteral gsAnchorType ( u"AnchorType"  )
constexpr

◆ gsBookmark()

constexpr OUStringLiteral gsBookmark ( u"Bookmark"  )
constexpr

◆ gsChainNextName()

constexpr OUStringLiteral gsChainNextName ( u"ChainNextName"  )
constexpr

◆ gsContourPolyPolygon()

constexpr OUStringLiteral gsContourPolyPolygon ( u"ContourPolyPolygon"  )
constexpr

◆ gsDescription()

constexpr OUStringLiteral gsDescription ( u"Description"  )
constexpr

◆ gsDocumentIndexMark()

constexpr OUStringLiteral gsDocumentIndexMark ( u"DocumentIndexMark"  )
constexpr

◆ gsFrame()

constexpr OUStringLiteral gsFrame ( u"Frame"  )
constexpr

◆ gsGraphicFilter()

constexpr OUStringLiteral gsGraphicFilter ( u"GraphicFilter"  )
constexpr

◆ gsGraphicRotation()

constexpr OUStringLiteral gsGraphicRotation ( u"GraphicRotation"  )
constexpr

◆ gsHeight()

constexpr OUStringLiteral gsHeight ( u"Height"  )
constexpr

◆ gsHoriOrient()

constexpr OUStringLiteral gsHoriOrient ( u"HoriOrient"  )
constexpr

◆ gsHoriOrientPosition()

constexpr OUStringLiteral gsHoriOrientPosition ( u"HoriOrientPosition"  )
constexpr

◆ gsHyperLinkName()

constexpr OUStringLiteral gsHyperLinkName ( u"HyperLinkName"  )
constexpr

◆ gsHyperLinkTarget()

constexpr OUStringLiteral gsHyperLinkTarget ( u"HyperLinkTarget"  )
constexpr

◆ gsHyperLinkURL()

constexpr OUStringLiteral gsHyperLinkURL ( u"HyperLinkURL"  )
constexpr

◆ gsIsAutomaticContour()

constexpr OUStringLiteral gsIsAutomaticContour ( u"IsAutomaticContour"  )
constexpr

◆ gsIsCollapsed()

constexpr OUStringLiteral gsIsCollapsed ( u"IsCollapsed"  )
constexpr

◆ gsIsPixelContour()

constexpr OUStringLiteral gsIsPixelContour ( u"IsPixelContour"  )
constexpr

◆ gsIsStart()

constexpr OUStringLiteral gsIsStart ( u"IsStart"  )
constexpr

◆ gsIsSyncHeightToWidth()

constexpr OUStringLiteral gsIsSyncHeightToWidth ( u"IsSyncHeightToWidth"  )
constexpr

◆ gsIsSyncWidthToHeight()

constexpr OUStringLiteral gsIsSyncWidthToHeight ( u"IsSyncWidthToHeight"  )
constexpr

◆ gsNumberingRules()

constexpr OUStringLiteral gsNumberingRules ( u"NumberingRules"  )
constexpr

◆ gsParaConditionalStyleName()

constexpr OUStringLiteral gsParaConditionalStyleName ( u"ParaConditionalStyleName"  )
constexpr

◆ gsParagraphService()

constexpr OUStringLiteral gsParagraphService ( u"com.sun.star.text.Paragraph"  )
constexpr

◆ gsRedline()

constexpr OUStringLiteral gsRedline ( u"Redline"  )
constexpr

◆ gsReferenceMark()

constexpr OUStringLiteral gsReferenceMark ( u"ReferenceMark"  )
constexpr

◆ gsRelativeHeight()

constexpr OUStringLiteral gsRelativeHeight ( u"RelativeHeight"  )
constexpr

◆ gsRelativeWidth()

constexpr OUStringLiteral gsRelativeWidth ( u"RelativeWidth"  )
constexpr

◆ gsRuby()

constexpr OUStringLiteral gsRuby ( u"Ruby"  )
constexpr

◆ gsRubyCharStyleName()

constexpr OUStringLiteral gsRubyCharStyleName ( u"RubyCharStyleName"  )
constexpr

◆ gsRubyText()

constexpr OUStringLiteral gsRubyText ( u"RubyText"  )
constexpr

◆ gsServerMap()

constexpr OUStringLiteral gsServerMap ( u"ServerMap"  )
constexpr

◆ gsShapeService()

constexpr OUStringLiteral gsShapeService ( u"com.sun.star.drawing.Shape"  )
constexpr

◆ gsSizeType()

constexpr OUStringLiteral gsSizeType ( u"SizeType"  )
constexpr

◆ gsSoftPageBreak()

constexpr OUStringLiteral gsSoftPageBreak ( u"SoftPageBreak"  )
constexpr

◆ gsTableService()

constexpr OUStringLiteral gsTableService ( u"com.sun.star.text.TextTable"  )
constexpr

◆ gsText()

constexpr OUStringLiteral gsText ( u"Text"  )
constexpr

◆ gsTextContentService()

constexpr OUStringLiteral gsTextContentService ( u"com.sun.star.text.TextContent"  )
constexpr

◆ gsTextEmbeddedService()

constexpr OUStringLiteral gsTextEmbeddedService ( u"com.sun.star.text.TextEmbeddedObject"  )
constexpr

◆ gsTextField()

constexpr OUStringLiteral gsTextField ( u"TextField"  )
constexpr

◆ gsTextFieldEnd()

constexpr OUStringLiteral gsTextFieldEnd ( u"TextFieldEnd"  )
constexpr

◆ gsTextFieldSep()

constexpr OUStringLiteral gsTextFieldSep ( u"TextFieldSeparator"  )
constexpr

◆ gsTextFieldService()

constexpr OUStringLiteral gsTextFieldService ( u"com.sun.star.text.TextField"  )
constexpr

◆ gsTextFieldStart()

constexpr OUStringLiteral gsTextFieldStart ( u"TextFieldStart"  )
constexpr

◆ gsTextFieldStartEnd()

constexpr OUStringLiteral gsTextFieldStartEnd ( u"TextFieldStartEnd"  )
constexpr

◆ gsTextFrameService()

constexpr OUStringLiteral gsTextFrameService ( u"com.sun.star.text.TextFrame"  )
constexpr

◆ gsTextGraphicService()

constexpr OUStringLiteral gsTextGraphicService ( u"com.sun.star.text.TextGraphicObject"  )
constexpr

◆ gsTextPortionType()

constexpr OUStringLiteral gsTextPortionType ( u"TextPortionType"  )
constexpr

◆ gsTitle()

constexpr OUStringLiteral gsTitle ( u"Title"  )
constexpr

◆ gsUnvisitedCharStyleName()

constexpr OUStringLiteral gsUnvisitedCharStyleName ( u"UnvisitedCharStyleName"  )
constexpr

◆ gsVertOrient()

constexpr OUStringLiteral gsVertOrient ( u"VertOrient"  )
constexpr

◆ gsVertOrientPosition()

constexpr OUStringLiteral gsVertOrientPosition ( u"VertOrientPosition"  )
constexpr

◆ gsVisitedCharStyleName()

constexpr OUStringLiteral gsVisitedCharStyleName ( u"VisitedCharStyleName"  )
constexpr

◆ gsWidth()

constexpr OUStringLiteral gsWidth ( u"Width"  )
constexpr

◆ gsWidthType()

constexpr OUStringLiteral gsWidthType ( u"WidthType"  )
constexpr

◆ lcl_txtpara_isBoundAsChar()

static bool lcl_txtpara_isBoundAsChar ( const Reference< XPropertySet > &  rPropSet,
const Reference< XPropertySetInfo > &  rPropSetInfo 
)
static

Definition at line 2858 of file txtparae.cxx.

Referenced by XMLTextParagraphExport::exportAnyTextFrame().

◆ lcl_validPropState()

static bool lcl_validPropState ( const XMLPropertyState rState)
static

Definition at line 791 of file txtparae.cxx.

References XMLPropertyState::mnIndex.

Referenced by XMLTextParagraphExport::Find().

Variable Documentation

◆ aParagraphPropertyNames

const char* aParagraphPropertyNames[]
static
Initial value:
=
{
"NumberingIsNumber",
"NumberingStyleName",
"OutlineLevel",
"ParaConditionalStyleName",
"ParaStyleName",
"TextSection",
"OutlineContentVisible",
nullptr
}

Definition at line 494 of file txtparae.cxx.

Referenced by XMLTextParagraphExport::exportTextContentEnumeration().

◆ aParagraphPropertyNamesAuto

const char* aParagraphPropertyNamesAuto[]
static
Initial value:
=
{
"NumberingRules",
"ParaConditionalStyleName",
"ParaStyleName",
nullptr
}

Definition at line 475 of file txtparae.cxx.

Referenced by XMLTextParagraphExport::exportTextContentEnumeration().

◆ lcl_XmlBookmarkElements

enum XMLTokenEnum lcl_XmlBookmarkElements[]

◆ lcl_XmlReferenceElements

enum XMLTokenEnum lcl_XmlReferenceElements[]

◆ txtparae_bContainsIllegalCharacters

bool txtparae_bContainsIllegalCharacters = false
static