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

#include <txtparae.hxx>

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

Classes

struct  Impl
 

Public Types

enum  FieldmarkType {
  NONE,
  TEXT,
  CHECK
}
 

Public Member Functions

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 FindTextStyleAndHyperlink (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool &rbHyperlink, bool &rbHasCharStyle, bool &rbHasAutoStyle, const XMLPropertyState **pAddState=nullptr) const
 
bool addHyperlinkAttributes (const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertyState > &rPropState, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo)
 
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)
 add autostyle for specified family More...
 
void Add (XmlStyleFamily nFamily, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const XMLPropertyState **pAddState=nullptr, bool bDontSeek=false)
 
OUString Find (XmlStyleFamily nFamily, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const OUString &rParent, const XMLPropertyState **pAddState=nullptr) const
 find style name for specified family and parent More...
 
void exportTextStyles (bool bUsed, bool bProg)
 
void exportTextDeclarations ()
 This method exports (text field) declarations etc. More...
 
void exportTextDeclarations (const css::uno::Reference< css::text::XText > &rText)
 export the (text field) declarations for a particular XText More...
 
void exportUsedDeclarations ()
 export all declarations More...
 
void exportTrackedChanges (bool bAutoStyle)
 Export the list of change information (enclosed by <tracked-changes>) (or the necessary automatic styles) More...
 
void exportTrackedChanges (const css::uno::Reference< css::text::XText > &rText, bool bAutoStyle)
 Export the list of change information (enclosed by <tracked-changes>) (or the necessary automatic styles) More...
 
void recordTrackedChangesForXText (const css::uno::Reference< css::text::XText > &rText)
 Record tracked changes for this particular XText (empty reference stop recording) This should be used if tracked changes for e.g. More...
 
void recordTrackedChangesNoXText ()
 Stop recording tracked changes. More...
 
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)
 exclude form controls which are in mute sections. More...
 
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)
 
void exportStyleFamily (const char *pFamily, const OUString &rXMLFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString *pPrefix=nullptr)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static SvXMLExportPropertyMapperCreateShapeExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateCharExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateParaExtPropMapper (SvXMLExport &rExport)
 
static SvXMLExportPropertyMapperCreateParaDefaultExtPropMapper (SvXMLExport &rExport)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Protected Member Functions

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 > *pParentTxtFrame)
 
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)
 export a footnote and styles More...
 
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)
 helper for exportTextFootnote More...
 
void exportTextFootnoteConfiguration ()
 export footnote and endnote configuration elements More...
 
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 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)
 check if current section or current list has changed; calls exortListChange as appropriate More...
 
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)
 overload for exportListAndSectionChange; takes new content rather than new section. More...
 
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)
 export a ruby More...
 
void exportMeta (const css::uno::Reference< css::beans::XPropertySet > &i_xPortion, bool i_bAutoStyles, bool i_isProgress, bool &rPrevCharIsSpace)
 export a text:meta More...
 
- 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 exportStyleContent (const css::uno::Reference< css::style::XStyle > &rStyle)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Protected Attributes

SinglePropertySetInfoCache aCharStyleNamesPropInfoCache
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Static Protected Attributes

static const OUStringLiteral gsFrameStyleName
 

Private Types

enum  FrameType {
  FrameType::Text,
  FrameType::Graphic,
  FrameType::Embedded,
  FrameType::Shape
}
 

Private Member Functions

 XMLTextParagraphExport (XMLTextParagraphExport const &)=delete
 

Private Attributes

std::unique_ptr< Implm_xImpl
 
SvXMLAutoStylePoolPrAutoStylePool
 
rtl::Reference< SvXMLExportPropertyMapperxParaPropMapper
 
rtl::Reference< SvXMLExportPropertyMapperxTextPropMapper
 
rtl::Reference< SvXMLExportPropertyMapperxFramePropMapper
 
rtl::Reference< SvXMLExportPropertyMapperxAutoFramePropMapper
 
rtl::Reference< SvXMLExportPropertyMapperxSectionPropMapper
 
rtl::Reference< SvXMLExportPropertyMapperxRubyPropMapper
 
const ::std::unique_ptr< ::xmloff::BoundFrameSetspBoundFrameSets
 
std::unique_ptr< XMLTextFieldExportpFieldExport
 
std::unique_ptr< std::vector< OUString > > pListElements
 
XMLTextListAutoStylePool maListAutoPool
 
std::unique_ptr< XMLSectionExportpSectionExport
 
std::unique_ptr< XMLIndexMarkExportpIndexMarkExport
 
std::unique_ptr< XMLRedlineExportpRedlineExport
 may be NULL (if no redlines should be exported; e.g. in block mode) More...
 
bool bProgress
 
bool bBlock
 
OUString sOpenRubyText
 
OUString sOpenRubyCharStyle
 
bool bOpenRuby
 
XMLTextListsHelpermpTextListsHelper
 
::std::vector< std::unique_ptr< XMLTextListsHelper > > maTextListsHelperStack
 
bool mbCollected
 

Static Private Attributes

static const OUStringLiteral gsAnchorCharStyleName
 
static const OUStringLiteral gsBeginNotice
 
static const OUStringLiteral gsCategory
 
static const OUStringLiteral gsCharStyleName
 
static const OUStringLiteral gsCharStyleNames
 
static const OUStringLiteral gsEndNotice
 
static const OUStringLiteral gsFootnote
 
static const OUStringLiteral gsFootnoteCounting
 
static const OUStringLiteral gsNumberingType
 
static const OUStringLiteral gsPageDescName
 
static const OUStringLiteral gsPageStyleName
 
static const OUStringLiteral gsParaStyleName
 
static const OUStringLiteral gsPositionEndOfDoc
 
static const OUStringLiteral gsPrefix
 
static const OUStringLiteral gsReferenceId
 
static const OUStringLiteral gsStartAt
 
static const OUStringLiteral gsSuffix
 
static const OUStringLiteral gsTextEndnoteService
 
static const OUStringLiteral gsTextSection
 

Detailed Description

Definition at line 76 of file txtparae.hxx.

Member Enumeration Documentation

Enumerator
NONE 
TEXT 
CHECK 

Definition at line 117 of file txtparae.hxx.

Enumerator
Text 
Graphic 
Embedded 
Shape 

Definition at line 114 of file txtparae.hxx.

Constructor & Destructor Documentation

XMLTextParagraphExport::XMLTextParagraphExport ( SvXMLExport rExp,
SvXMLAutoStylePoolP rASP 
)
XMLTextParagraphExport::~XMLTextParagraphExport ( )
overridevirtual
XMLTextParagraphExport::XMLTextParagraphExport ( XMLTextParagraphExport const &  )
privatedelete

Member Function Documentation

void XMLTextParagraphExport::_collectTextEmbeddedAutoStyles ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet)
protectedvirtual

Definition at line 3254 of file txtparae.cxx.

References SAL_WARN.

Referenced by exportAnyTextFrame().

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

Definition at line 3259 of file txtparae.cxx.

References SAL_WARN.

Referenced by exportAnyTextFrame().

void XMLTextParagraphExport::_exportTextFrame ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo,
bool  bProgress 
)
protected
void XMLTextParagraphExport::_exportTextGraphic ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo 
)
protected
void XMLTextParagraphExport::Add ( XmlStyleFamily  nFamily,
MultiPropertySetHelper rPropSetHelper,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet 
)
void XMLTextParagraphExport::Add ( XmlStyleFamily  nFamily,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const XMLPropertyState **  pAddState = nullptr,
bool  bDontSeek = false 
)
bool XMLTextParagraphExport::addHyperlinkAttributes ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertyState > &  rPropState,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo 
)
XMLShapeExportFlags XMLTextParagraphExport::addTextFrameAttributes ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
bool  bShape,
basegfx::B2DPoint pCenter = nullptr,
OUString *  pMinHeightValue = nullptr,
OUString *  pMinWidthValue = nullptr 
)
protected
void XMLTextParagraphExport::collectTextAutoStyles ( const css::uno::Reference< css::text::XText > &  rText,
bool  bIsProgress = false,
bool  bExportParagraph = true 
)
inline

Definition at line 445 of file txtparae.hxx.

References SchXMLTools::exportText().

void XMLTextParagraphExport::collectTextAutoStyles ( const css::uno::Reference< css::text::XText > &  rText,
const css::uno::Reference< css::text::XTextSection > &  rBaseSection,
bool  bIsProgress 
)
inline

Definition at line 453 of file txtparae.hxx.

References SchXMLTools::exportText().

void XMLTextParagraphExport::collectTextAutoStylesOptimized ( bool  bIsProgress)
SvXMLExportPropertyMapper * XMLTextParagraphExport::CreateCharExtPropMapper ( SvXMLExport rExport)
static

Definition at line 1345 of file txtparae.cxx.

References TEXT.

SvXMLExportPropertyMapper * XMLTextParagraphExport::CreateParaDefaultExtPropMapper ( SvXMLExport rExport)
static

Definition at line 1361 of file txtparae.cxx.

References TEXT_ADDITIONAL_DEFAULTS.

Referenced by XMLShapeExport::ExportGraphicDefaults().

SvXMLExportPropertyMapper * XMLTextParagraphExport::CreateParaExtPropMapper ( SvXMLExport rExport)
static
SvXMLExportPropertyMapper * XMLTextParagraphExport::CreateShapeExtPropMapper ( SvXMLExport rExport)
static

Definition at line 1337 of file txtparae.cxx.

References SHAPE.

void XMLTextParagraphExport::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 
)
protected
void XMLTextParagraphExport::exportCharacterData ( const OUString &  rText,
bool &  rPrevCharWasSpace 
)
void XMLTextParagraphExport::exportContour ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo 
)
protected
void XMLTextParagraphExport::exportEvents ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet)
void XMLTextParagraphExport::exportFrameFrames ( bool  bAutoStyles,
bool  bProgress,
const css::uno::Reference< css::text::XTextFrame > *  pParentTxtFrame 
)
protected
void XMLTextParagraphExport::exportFramesBoundToPage ( bool  bIsProgress)
inline

Definition at line 491 of file txtparae.hxx.

void XMLTextParagraphExport::exportListAndSectionChange ( css::uno::Reference< css::text::XTextSection > &  rOldSection,
const css::uno::Reference< css::text::XTextSection > &  rNewSection,
const XMLTextNumRuleInfo rOldList,
const XMLTextNumRuleInfo rNewList,
bool  bAutoStyles 
)
protected

check if current section or current list has changed; calls exortListChange as appropriate

Referenced by exportTextContentEnumeration().

void XMLTextParagraphExport::exportListAndSectionChange ( css::uno::Reference< css::text::XTextSection > &  rOldSection,
const css::uno::Reference< css::text::XTextContent > &  rNewContent,
const XMLTextNumRuleInfo rOldList,
const XMLTextNumRuleInfo rNewList,
bool  bAutoStyles 
)
protected

overload for exportListAndSectionChange; takes new content rather than new section.

void XMLTextParagraphExport::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 
)
protected
void XMLTextParagraphExport::exportListChange ( const XMLTextNumRuleInfo rPrvInfo,
const XMLTextNumRuleInfo rNextInfo 
)
protected
void XMLTextParagraphExport::exportMeta ( const css::uno::Reference< css::beans::XPropertySet > &  i_xPortion,
bool  i_bAutoStyles,
bool  i_isProgress,
bool &  rPrevCharIsSpace 
)
protected
void XMLTextParagraphExport::exportNumStyles ( bool  bUsed)
protected
void XMLTextParagraphExport::exportPageFrames ( bool  bProgress)
protected
void XMLTextParagraphExport::exportParagraph ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
bool  bProgress,
bool  bExportParagraph,
MultiPropertySetHelper rPropSetHelper,
TextPNS  eExtensionNS 
)
protected
void XMLTextParagraphExport::exportRuby ( const css::uno::Reference< css::beans::XPropertySet > &  rPortionPropSet,
bool  bAutoStyles 
)
protected
void XMLTextParagraphExport::exportShape ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
const css::uno::Reference< css::beans::XPropertySet > *  pRangePropSet = nullptr 
)
inlineprotected
void XMLTextParagraphExport::exportSoftPageBreak ( )
protected
void XMLTextParagraphExport::exportStyleAttributes ( const css::uno::Reference< css::style::XStyle > &  rStyle)
overrideprotectedvirtual
void XMLTextParagraphExport::exportTable ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
bool  bProgress 
)
protectedvirtual

Definition at line 2408 of file txtparae.cxx.

Referenced by collectTextAutoStylesOptimized(), and exportTextContentEnumeration().

void XMLTextParagraphExport::exportText ( const css::uno::Reference< css::text::XText > &  rText,
bool  bAutoStyles,
bool  bProgress,
bool  bExportParagraph,
TextPNS  eExtensionNS = TextPNS::ODF 
)
protected
void XMLTextParagraphExport::exportText ( const css::uno::Reference< css::text::XText > &  rText,
const css::uno::Reference< css::text::XTextSection > &  rBaseSection,
bool  bAutoStyles,
bool  bProgress,
bool  bExportParagraph 
)
protected
void XMLTextParagraphExport::exportText ( const css::uno::Reference< css::text::XText > &  rText,
bool  bIsProgress = false,
bool  bExportParagraph = true,
TextPNS  eExtensionNS = TextPNS::ODF 
)
inline

Definition at line 475 of file txtparae.hxx.

References SchXMLTools::exportText().

void XMLTextParagraphExport::exportText ( const css::uno::Reference< css::text::XText > &  rText,
const css::uno::Reference< css::text::XTextSection > &  rBaseSection,
bool  bIsProgress 
)
inline

Definition at line 483 of file txtparae.hxx.

References SchXMLTools::exportText().

void XMLTextParagraphExport::exportTextAutoStyles ( )
void XMLTextParagraphExport::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 
)
protected
void XMLTextParagraphExport::exportTextDeclarations ( )
void XMLTextParagraphExport::exportTextDeclarations ( const css::uno::Reference< css::text::XText > &  rText)

export the (text field) declarations for a particular XText

void XMLTextParagraphExport::exportTextEmbedded ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
const css::uno::Reference< css::beans::XPropertySet > *  pRangePropSet = nullptr 
)
inlineprotected
void XMLTextParagraphExport::exportTextField ( const css::uno::Reference< css::text::XTextRange > &  rTextRange,
bool  bAutoStyles,
bool  bProgress,
bool *  pPrevCharIsSpace 
)
protected
void XMLTextParagraphExport::exportTextField ( const css::uno::Reference< css::text::XTextField > &  xTextField,
const bool  bAutoStyles,
const bool  bProgress,
const bool  bRecursive,
bool *  pPrevCharIsSpace 
)
protected
void XMLTextParagraphExport::exportTextFootnote ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const OUString &  sString,
bool  bAutoStyles,
bool  bProgress 
)
protected
void XMLTextParagraphExport::exportTextFootnoteConfiguration ( )
protected

export footnote and endnote configuration elements

Definition at line 201 of file txtftne.cxx.

References exportTextFootnoteConfigurationHelper(), and XMLStyleExport::GetExport().

Referenced by exportTextStyles().

void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper ( const css::uno::Reference< css::beans::XPropertySet > &  rFootnoteSupplier,
bool  bIsEndnote 
)
protected
void XMLTextParagraphExport::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 
)
protected
void XMLTextParagraphExport::exportTextFrame ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
bool  bProgress,
bool  bExportContent,
const css::uno::Reference< css::beans::XPropertySet > *  pRangePropSet = nullptr 
)
inlineprotected
void XMLTextParagraphExport::exportTextGraphic ( const css::uno::Reference< css::text::XTextContent > &  rTextContent,
bool  bAutoStyles,
const css::uno::Reference< css::beans::XPropertySet > *  pRangePropSet = nullptr 
)
inlineprotected
void XMLTextParagraphExport::exportTextMark ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet,
const OUString &  rProperty,
const enum::xmloff::token::XMLTokenEnum  pElements[],
bool  bAutoStyles 
)
protected
void XMLTextParagraphExport::exportTextRange ( const css::uno::Reference< css::text::XTextRange > &  rTextRange,
bool  bAutoStyles,
bool &  rPrevCharWasSpace,
FieldmarkType openFieldmarkType 
)
protected
void XMLTextParagraphExport::exportTextRangeEnumeration ( const css::uno::Reference< css::container::XEnumeration > &  rRangeEnum,
bool  bAutoStyles,
bool  bProgress,
bool &  rPrevCharIsSpace 
)
void XMLTextParagraphExport::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 
)
void XMLTextParagraphExport::exportTextStyles ( bool  bUsed,
bool  bProg 
)
void XMLTextParagraphExport::exportTitleAndDescription ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const css::uno::Reference< css::beans::XPropertySetInfo > &  rPropSetInfo 
)
void XMLTextParagraphExport::exportTrackedChanges ( bool  bAutoStyle)

Export the list of change information (enclosed by <tracked-changes>) (or the necessary automatic styles)

Definition at line 3668 of file txtparae.cxx.

References pRedlineExport.

void XMLTextParagraphExport::exportTrackedChanges ( const css::uno::Reference< css::text::XText > &  rText,
bool  bAutoStyle 
)

Export the list of change information (enclosed by <tracked-changes>) (or the necessary automatic styles)

void XMLTextParagraphExport::exportUsedDeclarations ( )

export all declarations

Definition at line 3663 of file txtparae.cxx.

References pFieldExport.

OUString XMLTextParagraphExport::Find ( XmlStyleFamily  nFamily,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
const OUString &  rParent,
const XMLPropertyState **  pAddState = nullptr 
) const

find style name for specified family and parent

Definition at line 759 of file txtparae.cxx.

References lcl_validPropState(), SAL_WARN_IF, TEXT_FRAME, TEXT_PARAGRAPH, TEXT_RUBY, and TEXT_SECTION.

Referenced by _exportTextFrame(), _exportTextGraphic(), exportParagraph(), and exportRuby().

OUString XMLTextParagraphExport::FindTextStyleAndHyperlink ( const css::uno::Reference< css::beans::XPropertySet > &  rPropSet,
bool &  rbHyperlink,
bool &  rbHasCharStyle,
bool &  rbHasAutoStyle,
const XMLPropertyState **  pAddState = nullptr 
) const
const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetAutoFramePropMapper ( ) const
inline

Definition at line 171 of file txtparae.hxx.

SvXMLAutoStylePoolP& XMLTextParagraphExport::GetAutoStylePool ( )
inlineprotected

Definition at line 157 of file txtparae.hxx.

Referenced by exportTextAutoStyles().

const SvXMLAutoStylePoolP& XMLTextParagraphExport::GetAutoStylePool ( ) const
inlineprotected

Definition at line 158 of file txtparae.hxx.

SinglePropertySetInfoCache& XMLTextParagraphExport::GetCharStyleNamesPropInfoCache ( )
inline

Definition at line 522 of file txtparae.hxx.

const XMLTextListAutoStylePool & XMLTextParagraphExport::GetListAutoStylePool ( ) const
inline

Definition at line 533 of file txtparae.hxx.

References maListAutoPool.

Referenced by exportTextContentEnumeration().

const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetParagraphPropertyMapper ( ) const
inline

Definition at line 501 of file txtparae.hxx.

const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetParaPropMapper ( ) const
inline

Definition at line 161 of file txtparae.hxx.

Referenced by exportTextStyles().

const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetRubyPropMapper ( ) const
inline

Definition at line 179 of file txtparae.hxx.

const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetSectionPropMapper ( ) const
inline

Definition at line 175 of file txtparae.hxx.

const rtl::Reference< SvXMLExportPropertyMapper >& XMLTextParagraphExport::GetTextPropMapper ( ) const
inline

Definition at line 166 of file txtparae.hxx.

Referenced by exportTextStyles().

bool XMLTextParagraphExport::IsBlockMode ( ) const
inline

Definition at line 498 of file txtparae.hxx.

Referenced by exportNumStyles(), exportTextStyles(), and XMLTextParagraphExport().

void XMLTextParagraphExport::PopTextListsHelper ( )

Definition at line 3883 of file txtparae.cxx.

References maTextListsHelperStack, and mpTextListsHelper.

Referenced by ~XMLTextParagraphExport().

void XMLTextParagraphExport::PreventExportOfControlsInMuteSections ( const css::uno::Reference< css::container::XIndexAccess > &  rShapes,
const rtl::Reference< xmloff::OFormLayerXMLExport > &  xFormExport 
)

exclude form controls which are in mute sections.

This method is necessary to prevent the form layer export from exporting control models whose controls are not represented in the document. To achieve this, this method iterates over all shapes, checks to see if they are control shapes, and if so, whether they should be exported or not. If not, the form layer export will be notified accordingly.

The reason this method is located here is that it needs to access the XMLSectionExport, which is only available here.

Definition at line 3826 of file txtparae.cxx.

References pBoundFrameSets, pSectionExport, and SAL_WARN_IF.

void XMLTextParagraphExport::PushNewTextListsHelper ( )

Definition at line 3877 of file txtparae.cxx.

References maTextListsHelperStack, and mpTextListsHelper.

Referenced by XMLTextParagraphExport().

void XMLTextParagraphExport::recordTrackedChangesForXText ( const css::uno::Reference< css::text::XText > &  rText)

Record tracked changes for this particular XText (empty reference stop recording) This should be used if tracked changes for e.g.

footers are to be exported separately via the exportTrackedChanges(bool, Reference<XText>) method.

Definition at line 3682 of file txtparae.cxx.

References pRedlineExport.

void XMLTextParagraphExport::recordTrackedChangesNoXText ( )

Stop recording tracked changes.

This is the same as calling recordTrackedChanges(...) with an empty reference.

Definition at line 3689 of file txtparae.cxx.

References pRedlineExport.

void XMLTextParagraphExport::SetBlockMode ( bool  bSet)
inline

Definition at line 497 of file txtparae.hxx.

Member Data Documentation

SinglePropertySetInfoCache XMLTextParagraphExport::aCharStyleNamesPropInfoCache
protected

Definition at line 155 of file txtparae.hxx.

Referenced by exportAnyTextFrame(), exportTextFootnote(), and exportTextRangeSpan().

bool XMLTextParagraphExport::bBlock
private

Definition at line 102 of file txtparae.hxx.

bool XMLTextParagraphExport::bOpenRuby
private

Definition at line 107 of file txtparae.hxx.

Referenced by exportRuby().

bool XMLTextParagraphExport::bProgress
private

Definition at line 100 of file txtparae.hxx.

Referenced by exportStyleAttributes(), and exportTextStyles().

const OUStringLiteral XMLTextParagraphExport::gsAnchorCharStyleName
staticprivate

Definition at line 133 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsBeginNotice
staticprivate

Definition at line 134 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsCategory
staticprivate

Definition at line 135 of file txtparae.hxx.

Referenced by exportStyleAttributes().

const OUStringLiteral XMLTextParagraphExport::gsCharStyleName
staticprivate

Definition at line 136 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsCharStyleNames
staticprivate

Definition at line 137 of file txtparae.hxx.

Referenced by exportAnyTextFrame(), exportTextFootnote(), and exportTextRangeSpan().

const OUStringLiteral XMLTextParagraphExport::gsEndNotice
staticprivate

Definition at line 138 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsFootnote
staticprivate

Definition at line 139 of file txtparae.hxx.

Referenced by exportTextFootnote(), and exportTextRangeEnumeration().

const OUStringLiteral XMLTextParagraphExport::gsFootnoteCounting
staticprivate

Definition at line 140 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsFrameStyleName
staticprotected

Definition at line 154 of file txtparae.hxx.

Referenced by _exportTextFrame(), and _exportTextGraphic().

const OUStringLiteral XMLTextParagraphExport::gsNumberingType
staticprivate

Definition at line 141 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsPageDescName
staticprivate

Definition at line 142 of file txtparae.hxx.

Referenced by exportStyleAttributes().

const OUStringLiteral XMLTextParagraphExport::gsPageStyleName
staticprivate

Definition at line 143 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsParaStyleName
staticprivate

Definition at line 144 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsPositionEndOfDoc
staticprivate

Definition at line 145 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsPrefix
staticprivate

Definition at line 146 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsReferenceId
staticprivate

Definition at line 147 of file txtparae.hxx.

Referenced by exportTextFootnoteHelper().

const OUStringLiteral XMLTextParagraphExport::gsStartAt
staticprivate

Definition at line 148 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsSuffix
staticprivate

Definition at line 149 of file txtparae.hxx.

Referenced by exportTextFootnoteConfigurationHelper().

const OUStringLiteral XMLTextParagraphExport::gsTextEndnoteService
staticprivate

Definition at line 150 of file txtparae.hxx.

Referenced by exportTextFootnote().

const OUStringLiteral XMLTextParagraphExport::gsTextSection
staticprivate

Definition at line 151 of file txtparae.hxx.

Referenced by exportParagraph().

std::unique_ptr<Impl> XMLTextParagraphExport::m_xImpl
private

Definition at line 78 of file txtparae.hxx.

Referenced by exportTextRangeEnumeration().

XMLTextListAutoStylePool XMLTextParagraphExport::maListAutoPool
private
::std::vector< std::unique_ptr<XMLTextListsHelper> > XMLTextParagraphExport::maTextListsHelperStack
private
bool XMLTextParagraphExport::mbCollected
private

Definition at line 112 of file txtparae.hxx.

Referenced by collectTextAutoStylesOptimized().

XMLTextListsHelper* XMLTextParagraphExport::mpTextListsHelper
private

Definition at line 109 of file txtparae.hxx.

Referenced by PopTextListsHelper(), and PushNewTextListsHelper().

const ::std::unique_ptr< ::xmloff::BoundFrameSets > XMLTextParagraphExport::pBoundFrameSets
private
std::unique_ptr<XMLTextFieldExport> XMLTextParagraphExport::pFieldExport
private
std::unique_ptr<XMLIndexMarkExport> XMLTextParagraphExport::pIndexMarkExport
private
std::unique_ptr<std::vector<OUString> > XMLTextParagraphExport::pListElements
private

Definition at line 92 of file txtparae.hxx.

Referenced by ~XMLTextParagraphExport().

std::unique_ptr<XMLRedlineExport> XMLTextParagraphExport::pRedlineExport
private
std::unique_ptr<XMLSectionExport> XMLTextParagraphExport::pSectionExport
private
SvXMLAutoStylePoolP& XMLTextParagraphExport::rAutoStylePool
private

Definition at line 82 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().

OUString XMLTextParagraphExport::sOpenRubyCharStyle
private

Definition at line 106 of file txtparae.hxx.

Referenced by exportRuby().

OUString XMLTextParagraphExport::sOpenRubyText
private

Definition at line 105 of file txtparae.hxx.

Referenced by exportRuby().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xAutoFramePropMapper
private

Definition at line 86 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xFramePropMapper
private

Definition at line 85 of file txtparae.hxx.

Referenced by exportTextStyles(), and XMLTextParagraphExport().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xParaPropMapper
private

Definition at line 83 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xRubyPropMapper
private

Definition at line 88 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xSectionPropMapper
private

Definition at line 87 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().

rtl::Reference< SvXMLExportPropertyMapper > XMLTextParagraphExport::xTextPropMapper
private

Definition at line 84 of file txtparae.hxx.

Referenced by XMLTextParagraphExport().


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