LibreOffice Module xmloff (master)  1
Classes | Namespaces | Enumerations | 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/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 dependency graph for txtparae.cxx:

Go to the source code of this file.

Classes

class  xmloff::BoundFrameSets
 
struct  XMLTextParagraphExport::Impl
 

Namespaces

 xmloff
 

Enumerations

enum  eParagraphPropertyNamesEnumAuto
 
enum  eParagraphPropertyNamesEnum
 

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 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 []
 

Enumeration Type Documentation

Definition at line 362 of file txtparae.cxx.

Definition at line 339 of file txtparae.cxx.

Function Documentation

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 gsDescription ( u"Description"  )
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 gsTextFieldEnd ( u"TextFieldEnd"  )
constexpr OUStringLiteral gsTextFieldService ( u"com.sun.star.text.TextField"  )
constexpr OUStringLiteral gsTextFieldStart ( u"TextFieldStart"  )
constexpr OUStringLiteral gsTextFieldStartEnd ( u"TextFieldStartEnd"  )
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 gsTitle ( u"Title"  )
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"  )
static bool lcl_txtpara_isBoundAsChar ( const Reference< XPropertySet > &  rPropSet,
const Reference< XPropertySetInfo > &  rPropSetInfo 
)
static

Definition at line 2526 of file txtparae.cxx.

Referenced by XMLTextParagraphExport::exportAnyTextFrame().

static bool lcl_validPropState ( const XMLPropertyState rState)
static

Definition at line 651 of file txtparae.cxx.

References XMLPropertyState::mnIndex.

Referenced by XMLTextParagraphExport::Find().

Variable Documentation

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

Definition at line 348 of file txtparae.cxx.

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

Definition at line 329 of file txtparae.cxx.

enum XMLTokenEnum lcl_XmlBookmarkElements[]
enum XMLTokenEnum lcl_XmlReferenceElements[]
bool txtparae_bContainsIllegalCharacters = false
static

Definition at line 305 of file txtparae.cxx.