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

The class that does all the actual RTF export-related work. More...

#include <rtfexport.hxx>

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

Public Member Functions

AttributeOutputBaseAttrOutput () const override
 Access to the attribute output class. More...
 
MSWordSectionsSections () const override
 Access to the sections/headers/footres. More...
 
RtfSdrExportSdrExporter () const
 Access to the Rtf Sdr exporter. More...
 
bool FieldsQuoted () const override
 Determines if the import filter already quoted fields or not. More...
 
bool AddSectionBreaksForTOX () const override
 Determines the Section Breaks are to be added for TOX Section. More...
 
bool PreferPageBreakBefore () const override
 If saving page break is preferred as a paragraph attribute (yes) or as a special character (no). More...
 
bool CollapseScriptsforWordOk (sal_uInt16 nScript, sal_uInt16 nWhich) override
 Guess the script (asian/western). More...
 
void AppendBookmarks (const SwTextNode &rNode, sal_Int32 nCurrentPos, sal_Int32 nLen, const SwRedlineData *pSwRedlineData=nullptr) override
 
void AppendBookmark (const OUString &rName) override
 
void AppendAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen) override
 
void ExportGrfBullet (const SwTextNode &rNd) override
 
void WriteCR (ww8::WW8TableNodeInfoInner::Pointer_t) override
 
void WriteChar (sal_Unicode c) override
 
void WriteNumbering () override
 Write the numbering table. More...
 
void WriteRevTab ()
 Write the revision table. More...
 
void WriteHeadersFooters (sal_uInt8 nHeadFootFlags, const SwFrameFormat &rFormat, const SwFrameFormat &rLeftHeaderFormat, const SwFrameFormat &rLeftFooterFormat, const SwFrameFormat &rFirstPageFormat, sal_uInt8 nBreakCode, bool bEvenAndOddHeaders) override
 Output the actual headers and footers. More...
 
void OutputField (const SwField *pField, ww::eField eFieldType, const OUString &rFieldCmd, FieldFlags nMode=FieldFlags::All) override
 Write the field. More...
 
void WriteFormData (const ::sw::mark::IFieldmark &rFieldmark) override
 Write the data of the form field. More...
 
void WriteHyperlinkData (const ::sw::mark::IFieldmark &rFieldmark) override
 
void DoComboBox (const OUString &rName, const OUString &rHelp, const OUString &ToolTip, const OUString &rSelected, const css::uno::Sequence< OUString > &rListItems) override
 
void DoFormText (const SwInputField *pField) override
 
sal_uInt64 ReplaceCr (sal_uInt8 nChar) override
 
ExportFormat GetExportFormat () const override
 
 RtfExport (RtfExportFilter *pFilter, SwDoc &rDocument, std::shared_ptr< SwUnoCursor > &pCurrentPam, SwPaM &rOriginalPam, Writer *pWriter, bool bOutOutlineOnly=false)
 Pass the pDocument, pCurrentPam and pOriginalPam to the base class. More...
 
 RtfExport (const RtfExport &)=delete
 
RtfExportoperator= (const RtfExport &)=delete
 
 ~RtfExport () override
 Destructor. More...
 
rtl_TextEncoding GetDefaultEncoding () const
 
void SetCurrentEncoding (rtl_TextEncoding eCurrentEncoding)
 
rtl_TextEncoding GetCurrentEncoding () const
 
void SetRTFFlySyntax (bool bRTFFlySyntax)
 
bool GetRTFFlySyntax () const
 
SwNodeOffset GetCurrentNodeIndex () const
 
SvStreamStrm ()
 
void setStream ()
 From now on, let Strm() return a memory stream, not a real one. More...
 
OString getStream ()
 Get the contents of the memory stream as a string. More...
 
void resetStream ()
 Return back to the real stream. More...
 
void OutUnicode (std::string_view pToken, std::u16string_view rContent, bool bUpr=false)
 
void OutDateTime (std::string_view pStr, const css::util::DateTime &rDT)
 
void OutPageDescription (const SwPageDesc &rPgDsc, bool bCheckForFirstPage)
 
sal_uInt16 GetColor (const Color &rColor) const
 
void InsColor (const Color &rCol)
 
void InsColorLine (const SvxBoxItem &rBox)
 
void OutColorTable ()
 
sal_uInt16 GetRedline (const OUString &rAuthor)
 
const OUString * GetRedline (sal_uInt16 nId)
 
void InsStyle (sal_uInt16 nId, const OString &rStyle)
 
OString * GetStyle (sal_uInt16 nId)
 
const SfxItemSetGetFirstPageItemSet () const
 
- Public Member Functions inherited from MSWordExportBase
ErrCode ExportDocument (bool bWriteAll)
 The main function to export the document. More...
 
void WriteText ()
 Iterate through the nodes and call the appropriate OutputNode() on them. More...
 
bool IsInTable () const
 Return whether currently exported node is in table. More...
 
void WriteSpecialText (SwNodeOffset nStart, SwNodeOffset nEnd, sal_uInt8 nTTyp)
 Set the pCurPam appropriately and call WriteText(). More...
 
void ExportPoolItemsToCHP (ww8::PoolItems &rItems, sal_uInt16 nScript, const SvxFontItem *pFont, bool bWriteCombChars=false)
 Export the pool items to attributes (through an attribute output class). More...
 
sal_uInt16 GetNumberingId (const SwNumRule &rNumRule)
 Return the numeric id of the numbering rule. More...
 
sal_uInt16 GetId (const SwTextFormatColl &rColl) const
 Return the numeric id of the style. More...
 
sal_uInt16 GetId (const SwCharFormat *pFormat) const
 Return the numeric id of the style. More...
 
sal_uInt16 GetId (const SwTOXType &rTOXType)
 
sal_uInt16 GetId (const SvxFontItem &rFont)
 Return the numeric id of the font (and add it to the font list if needed) More...
 
void GetId (const wwFont &rFont)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
const SfxPoolItemGetItem (sal_uInt16 nWhich) const
 
template<class T >
const T & GetItem (TypedWhichId< T > nWhich) const
 
bool HasRefToAttr (const OUString &rName)
 Find the reference. More...
 
bool HasRefToFootOrEndnote (const bool isEndNote, const sal_uInt16 nSeqNo)
 
void OutputItemSet (const SfxItemSet &rSet, bool bPapFormat, bool bChpFormat, sal_uInt16 nScript, bool bExportParentItemSet)
 Use OutputItem() on an item set according to the parameters. More...
 
SvxFrameDirection GetDefaultFrameDirection () const
 
SvxFrameDirection TrueFrameDirection (const SwFrameFormat &rFlyFormat) const
 Right to left? More...
 
SvxFrameDirection GetCurrentPageDirection () const
 Right to left? More...
 
sal_uInt16 DuplicateNumRule (const SwNumRule *pRule, sal_uInt8 nLevel, sal_uInt16 nVal)
 In case of numbering restart. More...
 
SwNumRuleDuplicateNumRuleImpl (const SwNumRule *pRule)
 
sal_uInt16 DuplicateAbsNum (OUString const &rListId, SwNumRule const &rAbstractRule)
 check if a new abstractNum is needed for this list More...
 
sal_uInt16 OverrideNumRule (SwNumRule const &rExistingRule, OUString const &rListId, SwNumRule const &rAbstractRule)
 Create a overriding numbering definition (if it does not yet exist) More...
 
void AddListLevelOverride (sal_uInt16 nListId, sal_uInt16 nLevelNum, sal_uInt16 nStartAt)
 Store list level overrides (restart of list) More...
 
virtual AttributeOutputBaseAttrOutput () const =0
 Access to the attribute output class. More...
 
virtual MSWordSectionsSections () const =0
 Access to the sections/headers/footres. More...
 
virtual bool FieldsQuoted () const =0
 Determines if the import filter already quoted fields or not. More...
 
virtual bool AddSectionBreaksForTOX () const =0
 Determines the Section Breaks are to be added for TOX Section. More...
 
virtual bool ignoreAttributeForStyleDefaults (sal_uInt16) const
 Used to filter out attributes that can be e.g. written to .doc but not to .docx. More...
 
virtual bool PreferPageBreakBefore () const =0
 If saving page break is preferred as a paragraph attribute (yes) or as a special character (no). More...
 
virtual bool CollapseScriptsforWordOk (sal_uInt16 nScript, sal_uInt16 nWhich)=0
 Guess the script (asian/western). More...
 
virtual void AppendBookmarks (const SwTextNode &rNd, sal_Int32 nCurrentPos, sal_Int32 nLen, const SwRedlineData *pSwRedline=nullptr)=0
 
virtual void AppendBookmark (const OUString &rName)=0
 
virtual void AppendAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen)=0
 
virtual void AppendSmartTags (SwTextNode &)
 
virtual void ExportGrfBullet (const SwTextNode &rNd)=0
 
virtual void WriteCR (ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner=ww8::WW8TableNodeInfoInner::Pointer_t())=0
 
virtual void WriteChar (sal_Unicode c)=0
 
void OutputFormat (const SwFormat &rFormat, bool bPapFormat, bool bChpFormat, bool bFlyFormat=false)
 Output attributes. More...
 
const SfxItemSetGetCurItemSet () const
 Getter for pISet. More...
 
void SetCurItemSet (const SfxItemSet *pS)
 Setter for pISet. More...
 
virtual void SaveData (SwNodeOffset nStt, SwNodeOffset nEnd)
 Remember some of the members so that we can recurse in WriteText(). More...
 
virtual void RestoreData ()
 Restore what was saved in SaveData(). More...
 
bool OutputFollowPageDesc (const SfxItemSet *pSet, const SwTextNode *pNd)
 The return value indicates, if a follow page desc is written. More...
 
void WriteHeaderFooterText (const SwFormat &rFormat, bool bHeader)
 Write header/footer text. More...
 
void OutputSectionBreaks (const SfxItemSet *pSet, const SwNode &rNd, bool isCellOpen=false)
 Start new section. More...
 
void SectionProperties (const WW8_SepInfo &rSectionInfo, WW8_PdAttrDesc *pA=nullptr)
 Write section properties. More...
 
virtual void WriteNumbering ()=0
 Output the numbering table. More...
 
void NumberingDefinitions ()
 Write static data of SwNumRule - LSTF. More...
 
void AbstractNumberingDefinitions ()
 Write all Levels for all SwNumRules - LVLF. More...
 
void NumberingLevel (SwNumRule const &rRule, sal_uInt8 nLvl)
 Write one numbering level. More...
 
void SubstituteBullet (OUString &rNumStr, rtl_TextEncoding &rChrSet, OUString &rFontName) const
 
virtual void SetupSectionPositions (WW8_PdAttrDesc *)
 Setup the pA's info. More...
 
void SetHdFtPageRoot (const SwTextNode *pNd)
 Top node of host page when in header/footer. More...
 
const SwTextNodeGetHdFtPageRoot () const
 Top node of host page when in header/footer. More...
 
virtual void WriteHeadersFooters (sal_uInt8 nHeadFootFlags, const SwFrameFormat &rFormat, const SwFrameFormat &rLeftHeaderFormat, const SwFrameFormat &rLeftFooterFormat, const SwFrameFormat &rFirstPageFormat, sal_uInt8 nBreakCode, bool bEvenAndOddHeaders)=0
 Output the actual headers and footers. More...
 
virtual void OutputField (const SwField *pField, ww::eField eFieldType, const OUString &rFieldCmd, FieldFlags nMode=FieldFlags::All)=0
 Write the field. More...
 
virtual void WriteFormData (const ::sw::mark::IFieldmark &rFieldmark)=0
 Write the data of the form field. More...
 
virtual void WriteHyperlinkData (const ::sw::mark::IFieldmark &rFieldmark)=0
 
virtual void DoComboBox (const OUString &rName, const OUString &rHelp, const OUString &ToolTip, const OUString &rSelected, const css::uno::Sequence< OUString > &rListItems)=0
 
virtual void DoFormText (const SwInputField *pField)=0
 
bool GetNumberFormat (const SwField &rField, OUString &rStr)
 
virtual sal_uInt64 ReplaceCr (sal_uInt8 nChar)=0
 
const SfxPoolItemHasItem (sal_uInt16 nWhich) const
 
template<class T >
const T * HasItem (TypedWhichId< T > nWhich) const
 
int GetGrfIndex (const SvxBrushItem &rBrush)
 Returns the index of a picture bullet, used in numberings. More...
 
tools::Long GetParaTabStopOffset () const
 
virtual ExportFormat GetExportFormat () const =0
 
 MSWordExportBase (SwDoc &rDocument, std::shared_ptr< SwUnoCursor > &pCurrentPam, SwPaM *pOriginalPam)
 
virtual ~MSWordExportBase ()
 

Protected Member Functions

ErrCode ExportDocument_Impl () override
 Format-dependent part of the actual export. More...
 
void SectionBreaksAndFrames (const SwTextNode &) override
 
void PrepareNewPageDesc (const SfxItemSet *pSet, const SwNode &rNd, const SwFormatPageDesc *pNewPgDescFormat, const SwPageDesc *pNewPgDesc, bool bExtraPageBreak=false) override
 Get ready for a new section. More...
 
bool DisallowInheritingOutlineNumbering (const SwFormat &rFormat) override
 Return value indicates if an inherited outline numbering is suppressed. More...
 
void OutputTextNode (SwTextNode &rNode) override
 Output SwTextNode is depending on outline export mode. More...
 
void OutputEndNode (const SwEndNode &rEndNode) override
 Output SwEndNode. More...
 
void OutputGrfNode (const SwGrfNode &rGrfNode) override
 Output SwGrfNode. More...
 
void OutputOLENode (const SwOLENode &rOLENode) override
 Output SwOLENode. More...
 
void OutputLinkedOLE (const OUString &rLink) override
 
void AppendSection (const SwPageDesc *pPageDesc, const SwSectionFormat *pFormat, sal_uLong nLnNum) override
 
- Protected Member Functions inherited from MSWordExportBase
virtual ErrCode ExportDocument_Impl ()=0
 Format-dependent part of the actual export. More...
 
sal_Int32 GetNextPos (SwWW8AttrIter const *pAttrIter, const SwTextNode &rNode, sal_Int32 nCurrentPos)
 Get the next position in the text node to output. More...
 
void UpdatePosition (SwWW8AttrIter *pAttrIter, sal_Int32 nCurrentPos)
 Update the information for GetNextPos(). More...
 
virtual void OutputTextNode (SwTextNode &)
 Output SwTextNode. More...
 
void GatherChapterFields ()
 Setup the chapter fields (maChapterFieldLocs). More...
 
void AddLinkTarget (std::u16string_view rURL)
 
void CollectOutlineBookmarks (const SwDoc &rDoc)
 
bool SetCurrentPageDescFromNode (const SwNode &rNd)
 
bool ContentContainsChapterField (const SwFormatContent &rContent) const
 
bool FormatHdFtContainsChapterField (const SwFrameFormat &rFormat) const
 
virtual void SectionBreaksAndFrames (const SwTextNode &rNode)=0
 
virtual void PrepareNewPageDesc (const SfxItemSet *pSet, const SwNode &rNd, const SwFormatPageDesc *pNewPgDescFormat, const SwPageDesc *pNewPgDesc, bool bExtraPageBreak=false)=0
 
virtual bool DisallowInheritingOutlineNumbering (const SwFormat &rFormat)=0
 Return value indicates if an inherited outline numbering is suppressed. More...
 
void OutputStartNode (const SwStartNode &)
 Output SwStartNode. More...
 
virtual void OutputEndNode (const SwEndNode &)
 Output SwEndNode. More...
 
virtual void OutputGrfNode (const SwGrfNode &)=0
 Output SwGrfNode. More...
 
virtual void OutputOLENode (const SwOLENode &)=0
 Output SwOLENode. More...
 
virtual void OutputLinkedOLE (const OUString &)=0
 
void OutputSectionNode (const SwSectionNode &)
 Output SwSectionNode. More...
 
virtual void AppendSection (const SwPageDesc *pPageDesc, const SwSectionFormat *pFormat, sal_uLong nLnNum)=0
 
void OutputContentNode (SwContentNode &)
 Call the right (virtual) function according to the type of the item. More...
 
bool NearestBookmark (sal_Int32 &rNearest, const sal_Int32 nCurrentPos, bool bNextPositionOnly)
 Find the nearest bookmark from the current position. More...
 
void GetSortedBookmarks (const SwTextNode &rNd, sal_Int32 nCurrentPos, sal_Int32 nLen)
 
bool GetBookmarks (const SwTextNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, IMarkVector &rArr)
 
void NearestAnnotationMark (sal_Int32 &rNearest, const sal_Int32 nCurrentPos, bool bNextPositionOnly)
 Find the nearest annotation mark from the current position. More...
 
void GetSortedAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen)
 
bool GetAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nStt, sal_Int32 nEnd, IMarkVector &rArr)
 
const NfKeywordTableGetNfKeywordTable ()
 
void SetCurPam (SwNodeOffset nStt, SwNodeOffset nEnd)
 
std::unique_ptr< SvxBrushItemgetBackground ()
 Get background color of the document, if there is one. More...
 
int CollectGrfsOfBullets ()
 Populates m_vecBulletPic with all the bullet graphics used by numberings. More...
 
void BulletDefinitions ()
 Write the numbering picture bullets. More...
 
bool NeedSectionBreak (const SwNode &rNd) const
 
bool NeedTextNodeSplit (const SwTextNode &rNd, SwSoftPageBreakList &pList) const
 

Private Member Functions

void WriteFonts ()
 
void WriteStyles ()
 
void WriteFootnoteSettings ()
 
void WriteMainText ()
 
void WriteInfo ()
 
void WriteUserPropType (int nType)
 Writes a single user property type. More...
 
void WriteUserPropValue (std::u16string_view rValue)
 Writes a single user property value. More...
 
void WriteUserProps ()
 Writes the userprops group: user defined document properties. More...
 
void WriteDocVars ()
 Writes document variables. More...
 
void WritePageDescTable ()
 Writes the writer-specific \pgdsctbl group. More...
 
void BuildNumbering ()
 This is necessary to have the numbering table ready before the main text is being processed. More...
 
void WriteHeaderFooter (const SfxPoolItem &rItem, bool bHeader)
 
void WriteHeaderFooter (const SwFrameFormat &rFormat, bool bHeader, const char *pStr, bool bTitlepg=false)
 

Private Attributes

RtfExportFilterm_pFilter
 Pointer to the filter that owns us. More...
 
Writerm_pWriter
 
std::unique_ptr< RtfAttributeOutputm_pAttrOutput
 Attribute output for document. More...
 
std::unique_ptr< MSWordSectionsm_pSections
 Sections/headers/footers. More...
 
std::unique_ptr< RtfSdrExportm_pSdrExport
 
bool m_bOutOutlineOnly
 
rtl_TextEncoding m_eDefaultEncoding
 
rtl_TextEncoding m_eCurrentEncoding
 
bool m_bRTFFlySyntax
 This is used by OutputFlyFrame_Impl() to control the written syntax. More...
 
SwNodeOffset m_nCurrentNodeIndex
 Index of the current SwTextNode, if any. More...
 
RtfColorTable m_aColTable
 
std::map< sal_uInt16, OString > m_aStyTable
 
std::map< OUString, sal_uInt16 > m_aRedlineTable
 
std::unique_ptr< SvMemoryStreamm_pStream
 If set, then Strm() returns this stream, instead of m_pWriter's stream. More...
 
const SfxItemSetm_pFirstPageItemSet = nullptr
 Item set of the first page during export of a follow page format. More...
 

Additional Inherited Members

- Public Types inherited from MSWordExportBase
enum  ExportFormat {
  DOC = 0 ,
  RTF = 1 ,
  DOCX = 2
}
 
typedef std::vector< ::sw::mark::IMark * > IMarkVector
 Used to split the runs according to the bookmarks start and ends. More...
 
- Static Public Member Functions inherited from MSWordExportBase
static OUString GetBookmarkName (sal_uInt16 nTyp, const OUString *pName, sal_uInt16 nSeqNo)
 Find the bookmark name. More...
 
static const SwSectionFormatGetSectionFormat (const SwNode &rNd)
 Format of the section. More...
 
static sal_uLong GetSectionLineNo (const SfxItemSet *pSet, const SwNode &rNd)
 Line number of the section start. More...
 
static bool NoPageBreakSection (const SfxItemSet *pSet)
 
static void CorrectTabStopInSet (SfxItemSet &rSet, sal_Int32 nAbsLeft)
 
- Public Attributes inherited from MSWordExportBase
wwFontHelper m_aFontHelper
 
std::vector< SwNodeOffsetm_aChapterFieldLocs
 
OUString m_aMainStg
 
std::vector< const SwTOXType * > m_aTOXArr
 
const SfxItemSetm_pISet
 
const SwFrameFormatm_pFirstPageFormat = nullptr
 
std::unique_ptr< WW8_WrPctm_pPiece
 
std::unique_ptr< SwNumRuleTablem_pUsedNumTable
 
std::map< size_t, std::pair< size_t, size_t > > m_OverridingNums
 overriding numdef index -> (existing numdef index, abstractnumdef index) More...
 
std::map< OUString, size_t > m_Lists
 list-id -> abstractnumdef index More...
 
std::map< size_t, std::map< size_t, size_t > > m_ListLevelOverrides
 Map of maps for list levels overrides listid -> level number -> restart value. More...
 
const SwTextNodem_pTopNodeOfHdFtPage
 Top node of host page when in hd/ft. More...
 
std::stack< sal_Int32 > m_aCurrentCharPropStarts
 To remember the position in a run. More...
 
std::unique_ptr< WW8_WrtBookmarksm_pBkmks
 
std::unique_ptr< WW8_WrtRedlineAuthorm_pRedlAuthors
 
std::shared_ptr< NfKeywordTablem_pKeyMap
 
std::optional< SvxMSExportOLEObjectsm_oOLEExp
 
std::unique_ptr< SwMSConvertControlsm_pOCXExp
 
WW8OleMap m_aOleMap
 
ww8::WW8TableInfo::Pointer_t m_pTableInfo
 
sal_uInt16 m_nCharFormatStart
 
sal_uInt16 m_nFormatCollStart
 
sal_uInt16 m_nStyleBeforeFly
 style number of the node More...
 
sal_uInt16 m_nLastFormatId
 Style of last TextNode in normal range. More...
 
sal_uInt16 m_nUniqueList
 current number for creating unique list names More...
 
unsigned int m_nHdFtIndex
 
RedlineFlags m_nOrigRedlineFlags
 Remember the original redline mode. More...
 
bool m_bOrigShowChanges
 Remember the original Show Changes mode. More...
 
std::vector< aBookmarkPairm_aImplicitBookmarks
 
std::unordered_map< OUString, OUString > m_TOXMarkBookmarksByURL
 
std::unordered_map< SwTOXMark const *, OUString > m_TOXMarkBookmarksByTOXMark
 
ww8::Frames m_aFrames
 
const SwPageDescm_pCurrentPageDesc
 
const SwPageDescm_pPreviousSectionPageDesc
 
bool m_bFirstTOCNodeWithSection
 
std::unique_ptr< WW8_WrPlcPnm_pPapPlc
 
std::unique_ptr< WW8_WrPlcPnm_pChpPlc
 
MSWordAttrIterm_pChpIter
 
std::unique_ptr< MSWordStylesm_pStyles
 
std::unique_ptr< WW8_WrPlcAnnotationsm_pAtn
 
std::unique_ptr< WW8_WrtFactoidsm_pFactoids
 
std::unique_ptr< WW8_WrPlcTextBoxesm_pTextBxs
 
std::unique_ptr< WW8_WrPlcTextBoxesm_pHFTextBxs
 
std::map< OUString, LinkedTextboxInfom_aLinkedTextboxesHelper
 
bool m_bLinkedTextboxesHelperInitialized = false
 
sal_Int32 m_nLinkedTextboxesChainId =0
 
const ww8::Framem_pParentFrame
 
Pointm_pFlyOffset
 
RndStdIds m_eNewAnchorType
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldMain
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldHdFt
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldFootnote
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldEdn
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldAtn
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldTextBxs
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldHFTextBxs
 
std::unique_ptr< WW8_WrMagicTablem_pMagicTable
 
std::unique_ptr< SwWW8WrGrfm_pGrf
 
const SwAttrSetm_pStyAttr
 
const sw::BroadcastingModify * m_pOutFormatNode
 
const SwFormatm_pCurrentStyle
 
std::unique_ptr< MainTextPlcDrawObjm_pSdrObjs
 
std::unique_ptr< HdFtPlcDrawObjm_pHFSdrObjs
 
SwEscherExm_pEscher
 
sal_uInt8 m_nTextTyp
 
bool m_bStyDef: 1
 
bool m_bBreakBefore: 1
 
bool m_bOutKF: 1
 
bool m_bOutFlyFrameAttrs: 1
 
bool m_bOutPageDescs: 1
 PageDescs (section properties) are being written. More...
 
bool m_bOutFirstPage: 1
 
bool m_bOutTable: 1
 
bool m_bOutGrf: 1
 
bool m_bInWriteEscher: 1
 
bool m_bStartTOX: 1
 
bool m_bInWriteTOX: 1
 
bool m_bFootnoteAtTextEnd: 1
 
bool m_bEndAtTextEnd: 1
 
bool m_bHasHdr: 1
 
bool m_bHasFtr: 1
 
bool m_bSubstituteBullets: 1
 
bool m_bTabInTOC: 1
 
bool m_bHideTabLeaderAndPageNumbers: 1
 
bool m_bExportModeRTF
 
bool m_bFontSizeWritten
 Is font size written already as part of the current character properties? More...
 
bool m_bAddFootnoteTab
 
SwDocm_rDoc
 
SwNodeOffset m_nCurStart
 
SwNodeOffset m_nCurEnd
 
std::shared_ptr< SwUnoCursor > & m_pCurPam
 
SwPaMm_pOrigPam
 
std::stack< MSWordSaveDatam_aSaveData
 Stack to remember the nesting (see MSWordSaveData for more) More...
 
IMarkVector m_rSortedBookmarksStart
 
IMarkVector m_rSortedBookmarksEnd
 
IMarkVector m_rSortedAnnotationMarksStart
 
IMarkVector m_rSortedAnnotationMarksEnd
 
- Static Protected Member Functions inherited from MSWordExportBase
static void UpdateTocSectionNodeProperties (const SwSectionNode &rSectionNode)
 
- Protected Attributes inherited from MSWordExportBase
std::vector< const Graphic * > m_vecBulletPic
 Vector to record all the graphics of bullets. More...
 

Detailed Description

The class that does all the actual RTF export-related work.

Definition at line 36 of file rtfexport.hxx.

Constructor & Destructor Documentation

◆ RtfExport() [1/2]

RtfExport::RtfExport ( RtfExportFilter pFilter,
SwDoc rDocument,
std::shared_ptr< SwUnoCursor > &  pCurrentPam,
SwPaM rOriginalPam,
Writer pWriter,
bool  bOutOutlineOnly = false 
)

◆ RtfExport() [2/2]

RtfExport::RtfExport ( const RtfExport )
delete

◆ ~RtfExport()

RtfExport::~RtfExport ( )
overridedefault

Destructor.

Member Function Documentation

◆ AddSectionBreaksForTOX()

bool RtfExport::AddSectionBreaksForTOX ( ) const
inlineoverridevirtual

Determines the Section Breaks are to be added for TOX Section.

Implements MSWordExportBase.

Definition at line 63 of file rtfexport.hxx.

◆ AppendAnnotationMarks()

void RtfExport::AppendAnnotationMarks ( const SwWW8AttrIter rAttrs,
sal_Int32  nCurrentPos,
sal_Int32  nLen 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 153 of file rtfexport.cxx.

References MSWordExportBase::GetAnnotationMarks(), and m_pAttrOutput.

◆ AppendBookmark()

void RtfExport::AppendBookmark ( const OUString &  rName)
overridevirtual

Implements MSWordExportBase.

Definition at line 145 of file rtfexport.cxx.

References m_pAttrOutput.

◆ AppendBookmarks()

void RtfExport::AppendBookmarks ( const SwTextNode rNode,
sal_Int32  nCurrentPos,
sal_Int32  nLen,
const SwRedlineData pSwRedlineData = nullptr 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 120 of file rtfexport.cxx.

References MSWordExportBase::GetBookmarks(), and m_pAttrOutput.

◆ AppendSection()

void RtfExport::AppendSection ( const SwPageDesc pPageDesc,
const SwSectionFormat pFormat,
sal_uLong  nLnNum 
)
overrideprotectedvirtual

◆ AttrOutput()

AttributeOutputBase & RtfExport::AttrOutput ( ) const
overridevirtual

Access to the attribute output class.

Implements MSWordExportBase.

Definition at line 80 of file rtfexport.cxx.

References m_pAttrOutput.

Referenced by AppendSection(), ExportDocument_Impl(), OutPageDescription(), OutputEndNode(), and PrepareNewPageDesc().

◆ BuildNumbering()

void RtfExport::BuildNumbering ( )
private

This is necessary to have the numbering table ready before the main text is being processed.

Definition at line 206 of file rtfexport.cxx.

References MSWordExportBase::GetNumberingId(), SwDoc::GetNumRuleTable(), SwDoc::GetOutlineNumRule(), IsExportNumRule(), SwDoc::IsUsed(), MSWordExportBase::m_rDoc, n, and SwVectorModifyBase< Value >::size().

Referenced by ExportDocument_Impl().

◆ CollapseScriptsforWordOk()

bool RtfExport::CollapseScriptsforWordOk ( sal_uInt16  nScript,
sal_uInt16  nWhich 
)
overridevirtual

◆ DisallowInheritingOutlineNumbering()

bool RtfExport::DisallowInheritingOutlineNumbering ( const SwFormat rFormat)
overrideprotectedvirtual

Return value indicates if an inherited outline numbering is suppressed.

Implements MSWordExportBase.

Definition at line 1086 of file rtfexport.cxx.

References SwFormat::DerivedFrom(), SwFormat::GetItemState(), OOO_STRING_SVTOOLS_RTF_LEVEL, RES_PARATR_NUMRULE(), Strm(), SvStream::WriteInt32(), and SvStream::WriteOString().

◆ DoComboBox()

void RtfExport::DoComboBox ( const OUString &  rName,
const OUString &  rHelp,
const OUString &  ToolTip,
const OUString &  rSelected,
const css::uno::Sequence< OUString > &  rListItems 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 385 of file rtfexport.cxx.

◆ DoFormText()

void RtfExport::DoFormText ( const SwInputField pField)
overridevirtual

◆ ExportDocument_Impl()

ErrCode RtfExport::ExportDocument_Impl ( )
overrideprotectedvirtual

Format-dependent part of the actual export.

Implements MSWordExportBase.

Definition at line 777 of file rtfexport.cxx.

References AttrOutput(), BuildNumbering(), DO_NOT_BREAK_WRAPPED_TABLES, ERRCODE_NONE, SwDoc::FindPageDesc(), FTNNUM_DOC, FTNNUM_PAGE, FTNPOS_CHAPTER, IDocumentSettingAccess::get(), SfxItemSet::Get(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SfxItemPool::GetDefaultItem(), SwDoc::GetEndNoteInfo(), SwNodes::GetEndOfExtras(), SwDoc::GetFootnoteInfo(), SwSection::GetFormat(), SwTable::GetFrameFormat(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), wwFontHelper::GetId(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentSettingAccess(), SwNode::GetIndex(), SwPageDesc::GetLandscape(), SvxLRSpaceItem::GetLeft(), SwDoc::GetLineNumberInfo(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), SwPageDesc::GetMaster(), SwPageDesc::GetName(), SwDoc::GetNodes(), SvxNumberType::GetNumberingType(), SwFormatPageDesc::GetPageDesc(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), SvxPaperInfo::GetPaperSize(), SvxLRSpaceItem::GetRight(), SwSectionNode::GetSection(), SwNode::GetSectionNode(), SwDoc::GetSections(), SwContentNode::GetSwAttrSet(), SwTableNode::GetTable(), SwNode::GetTableNode(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), SwViewShell::GetViewOptions(), SvxSizeItem::GetWidth(), SwViewOption::GetZoom(), SwViewOption::GetZoomType(), GUTTER_AT_TOP, Size::Height(), SwNode::IsContentNode(), SwLineNumberInfo::IsPaintLineNumbers(), SwNode::IsSectionNode(), SwNode::IsTableNode(), LO_STRING_SVTOOLS_RTF_GUTTERPRL, LO_STRING_SVTOOLS_RTF_HTMAUTSP, LO_STRING_SVTOOLS_RTF_NOBRKWRPTBL, LONG_MAX, MSWordExportBase::m_aFontHelper, SwEndNoteInfo::m_aFormat, SwFootnoteInfo::m_eNum, SwFootnoteInfo::m_ePos, SwEndNoteInfo::m_nFootnoteOffset, MSWordExportBase::m_nOrigRedlineFlags, m_pAttrOutput, MSWordExportBase::m_pCurrentPageDesc, m_pSections, MSWordExportBase::m_pStyles, MSWordExportBase::m_rDoc, Mirror, On, OOO_STRING_SVTOOLS_RTF_AENDDOC, OOO_STRING_SVTOOLS_RTF_AFTNNALC, OOO_STRING_SVTOOLS_RTF_AFTNNAR, OOO_STRING_SVTOOLS_RTF_AFTNNAUC, OOO_STRING_SVTOOLS_RTF_AFTNNCHI, OOO_STRING_SVTOOLS_RTF_AFTNNRLC, OOO_STRING_SVTOOLS_RTF_AFTNNRUC, OOO_STRING_SVTOOLS_RTF_AFTNRSTCONT, OOO_STRING_SVTOOLS_RTF_AFTNSTART, OOO_STRING_SVTOOLS_RTF_ANSI, OOO_STRING_SVTOOLS_RTF_DEFF, OOO_STRING_SVTOOLS_RTF_ENDDOC, OOO_STRING_SVTOOLS_RTF_FORMPROT, OOO_STRING_SVTOOLS_RTF_FORMSHADE, OOO_STRING_SVTOOLS_RTF_FTNBJ, OOO_STRING_SVTOOLS_RTF_FTNNALC, OOO_STRING_SVTOOLS_RTF_FTNNAR, OOO_STRING_SVTOOLS_RTF_FTNNAUC, OOO_STRING_SVTOOLS_RTF_FTNNCHI, OOO_STRING_SVTOOLS_RTF_FTNNRLC, OOO_STRING_SVTOOLS_RTF_FTNNRUC, OOO_STRING_SVTOOLS_RTF_FTNRESTART, OOO_STRING_SVTOOLS_RTF_FTNRSTCONT, OOO_STRING_SVTOOLS_RTF_FTNRSTPG, OOO_STRING_SVTOOLS_RTF_FTNSTART, OOO_STRING_SVTOOLS_RTF_HYPHAUTO, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_LANDSCAPE, OOO_STRING_SVTOOLS_RTF_MARGB, OOO_STRING_SVTOOLS_RTF_MARGL, OOO_STRING_SVTOOLS_RTF_MARGMIRROR, OOO_STRING_SVTOOLS_RTF_MARGR, OOO_STRING_SVTOOLS_RTF_MARGT, OOO_STRING_SVTOOLS_RTF_PAPERH, OOO_STRING_SVTOOLS_RTF_PAPERW, OOO_STRING_SVTOOLS_RTF_PGDSCNO, OOO_STRING_SVTOOLS_RTF_REVISIONS, OOO_STRING_SVTOOLS_RTF_RTF, OOO_STRING_SVTOOLS_RTF_SBKNONE, OOO_STRING_SVTOOLS_RTF_SECTD, OOO_STRING_SVTOOLS_RTF_SECTUNLOCKED, OOO_STRING_SVTOOLS_RTF_VIEWSCALE, OutPageDescription(), PAPER_A4, PARA_SPACE_MAX, pOut, SwPageDesc::ReadUseOn(), RES_CHRATR_FONT(), RES_PAGEDESC(), SAL_NEWLINE_STRING, AttributeOutputBase::SectionLineNumbering(), Strm(), SVX_NUM_CHARS_LOWER_LETTER, SVX_NUM_CHARS_LOWER_LETTER_N, SVX_NUM_CHARS_UPPER_LETTER, SVX_NUM_CHARS_UPPER_LETTER_N, SVX_NUM_ROMAN_LOWER, SVX_NUM_ROMAN_UPPER, SVX_NUM_SYMBOL_CHICAGO, Size::Width(), SvStream::WriteChar(), WriteDocVars(), WriteFonts(), WriteFootnoteSettings(), WriteInfo(), WriteMainText(), SvStream::WriteNumberAsString(), WriteNumbering(), SvStream::WriteOString(), WritePageDescTable(), WriteRevTab(), WriteStyles(), and WriteUserProps().

◆ ExportGrfBullet()

void RtfExport::ExportGrfBullet ( const SwTextNode rNd)
overridevirtual

Implements MSWordExportBase.

Definition at line 179 of file rtfexport.cxx.

◆ FieldsQuoted()

bool RtfExport::FieldsQuoted ( ) const
inlineoverridevirtual

Determines if the import filter already quoted fields or not.

Implements MSWordExportBase.

Definition at line 61 of file rtfexport.hxx.

◆ GetColor()

sal_uInt16 RtfExport::GetColor ( const Color rColor) const

◆ GetCurrentEncoding()

rtl_TextEncoding RtfExport::GetCurrentEncoding ( ) const
inline

◆ GetCurrentNodeIndex()

SwNodeOffset RtfExport::GetCurrentNodeIndex ( ) const
inline

Definition at line 181 of file rtfexport.hxx.

References m_nCurrentNodeIndex.

Referenced by RtfAttributeOutput::EndParagraph().

◆ GetDefaultEncoding()

rtl_TextEncoding RtfExport::GetDefaultEncoding ( ) const
inline

◆ GetExportFormat()

ExportFormat RtfExport::GetExportFormat ( ) const
inlineoverridevirtual

Implements MSWordExportBase.

Definition at line 119 of file rtfexport.hxx.

◆ GetFirstPageItemSet()

const SfxItemSet * RtfExport::GetFirstPageItemSet ( ) const
inline

Definition at line 203 of file rtfexport.hxx.

References m_pFirstPageItemSet.

Referenced by RtfAttributeOutput::FormatULSpace().

◆ GetRedline() [1/2]

sal_uInt16 RtfExport::GetRedline ( const OUString &  rAuthor)

Definition at line 1437 of file rtfexport.cxx.

References inserted(), m_aRedlineTable, and nId.

Referenced by RtfAttributeOutput::Redline(), and WriteRevTab().

◆ GetRedline() [2/2]

const OUString * RtfExport::GetRedline ( sal_uInt16  nId)

Definition at line 1446 of file rtfexport.cxx.

References m_aRedlineTable, and nId.

◆ GetRTFFlySyntax()

bool RtfExport::GetRTFFlySyntax ( ) const
inline

◆ getStream()

OString RtfExport::getStream ( )

Get the contents of the memory stream as a string.

Definition at line 1181 of file rtfexport.cxx.

References m_pStream.

Referenced by RtfAttributeOutput::writeTextFrame(), and SaveRunState::~SaveRunState().

◆ GetStyle()

OString * RtfExport::GetStyle ( sal_uInt16  nId)

◆ InsColor()

void RtfExport::InsColor ( const Color rCol)

Definition at line 1232 of file rtfexport.cxx.

References COL_AUTO(), m_aColTable, and n.

Referenced by InsColorLine(), and OutColorTable().

◆ InsColorLine()

void RtfExport::InsColorLine ( const SvxBoxItem rBox)

◆ InsStyle()

void RtfExport::InsStyle ( sal_uInt16  nId,
const OString &  rStyle 
)

Definition at line 1424 of file rtfexport.cxx.

References m_aStyTable, and nId.

Referenced by RtfAttributeOutput::EndStyle().

◆ operator=()

RtfExport & RtfExport::operator= ( const RtfExport )
delete

◆ OutColorTable()

void RtfExport::OutColorTable ( )

◆ OutDateTime()

void RtfExport::OutDateTime ( std::string_view  pStr,
const css::util::DateTime &  rDT 
)

◆ OutPageDescription()

void RtfExport::OutPageDescription ( const SwPageDesc rPgDsc,
bool  bCheckForFirstPage 
)

◆ OutputEndNode()

void RtfExport::OutputEndNode ( const SwEndNode rEndNode)
overrideprotectedvirtual

◆ OutputField()

void RtfExport::OutputField ( const SwField pField,
ww::eField  eFieldType,
const OUString &  rFieldCmd,
FieldFlags  nMode = FieldFlags::All 
)
overridevirtual

Write the field.

Implements MSWordExportBase.

Definition at line 316 of file rtfexport.cxx.

References m_pAttrOutput.

Referenced by RtfAttributeOutput::StartRuby(), and RtfAttributeOutput::WriteExpand().

◆ OutputGrfNode()

void RtfExport::OutputGrfNode ( const SwGrfNode rGrfNode)
overrideprotectedvirtual

Output SwGrfNode.

Implements MSWordExportBase.

Definition at line 1115 of file rtfexport.cxx.

◆ OutputLinkedOLE()

void RtfExport::OutputLinkedOLE ( const OUString &  rLink)
overrideprotectedvirtual

Implements MSWordExportBase.

Definition at line 1125 of file rtfexport.cxx.

◆ OutputOLENode()

void RtfExport::OutputOLENode ( const SwOLENode rOLENode)
overrideprotectedvirtual

Output SwOLENode.

Implements MSWordExportBase.

Definition at line 1120 of file rtfexport.cxx.

◆ OutputTextNode()

void RtfExport::OutputTextNode ( SwTextNode rNode)
overrideprotectedvirtual

Output SwTextNode is depending on outline export mode.

Reimplemented from MSWordExportBase.

Definition at line 1127 of file rtfexport.cxx.

References SwNode::GetIndex(), SwTextNode::IsOutline(), m_bOutOutlineOnly, m_nCurrentNodeIndex, and MSWordExportBase::OutputTextNode().

◆ OutUnicode()

void RtfExport::OutUnicode ( std::string_view  pToken,
std::u16string_view  rContent,
bool  bUpr = false 
)

◆ PreferPageBreakBefore()

bool RtfExport::PreferPageBreakBefore ( ) const
inlineoverridevirtual

If saving page break is preferred as a paragraph attribute (yes) or as a special character (no).

Implements MSWordExportBase.

Definition at line 65 of file rtfexport.hxx.

◆ PrepareNewPageDesc()

void RtfExport::PrepareNewPageDesc ( const SfxItemSet pSet,
const SwNode rNd,
const SwFormatPageDesc pNewPgDescFormat,
const SwPageDesc pNewPgDesc,
bool  bExtraPageBreak = false 
)
overrideprotectedvirtual

◆ ReplaceCr()

sal_uInt64 RtfExport::ReplaceCr ( sal_uInt8  nChar)
overridevirtual

Implements MSWordExportBase.

Definition at line 430 of file rtfexport.cxx.

◆ resetStream()

void RtfExport::resetStream ( )

Return back to the real stream.

Definition at line 1191 of file rtfexport.cxx.

References m_pStream.

Referenced by RtfAttributeOutput::writeTextFrame(), and SaveRunState::~SaveRunState().

◆ SdrExporter()

RtfSdrExport & RtfExport::SdrExporter ( ) const

Access to the Rtf Sdr exporter.

Definition at line 84 of file rtfexport.cxx.

References m_pSdrExport.

Referenced by RtfAttributeOutput::OutputFlyFrame_Impl(), and RtfAttributeOutput::PostitField().

◆ SectionBreaksAndFrames()

void RtfExport::SectionBreaksAndFrames ( const SwTextNode )
inlineoverrideprotectedvirtual

Implements MSWordExportBase.

Definition at line 125 of file rtfexport.hxx.

◆ Sections()

MSWordSections & RtfExport::Sections ( ) const
overridevirtual

Access to the sections/headers/footres.

Implements MSWordExportBase.

Definition at line 82 of file rtfexport.cxx.

References m_pSections.

◆ SetCurrentEncoding()

void RtfExport::SetCurrentEncoding ( rtl_TextEncoding  eCurrentEncoding)
inline

◆ SetRTFFlySyntax()

void RtfExport::SetRTFFlySyntax ( bool  bRTFFlySyntax)
inline

◆ setStream()

void RtfExport::setStream ( )

From now on, let Strm() return a memory stream, not a real one.

Definition at line 1179 of file rtfexport.cxx.

References m_pStream.

Referenced by SaveRunState::SaveRunState(), and RtfAttributeOutput::writeTextFrame().

◆ Strm()

SvStream & RtfExport::Strm ( )

Definition at line 1171 of file rtfexport.cxx.

References m_pStream, m_pWriter, and Writer::Strm().

Referenced by RtfAttributeOutput::BulletDefinition(), DisallowInheritingOutlineNumbering(), RtfAttributeOutput::EmptyParagraph(), RtfAttributeOutput::EndAbstractNumbering(), RtfAttributeOutput::EndFont(), RtfAttributeOutput::EndParagraphProperties(), RtfAttributeOutput::EndStyles(), ExportDocument_Impl(), RtfAttributeOutput::FlyFrameGraphic(), RtfAttributeOutput::FontAlternateName(), RtfAttributeOutput::FontCharset(), RtfAttributeOutput::FontFamilyType(), RtfAttributeOutput::FontPitchType(), RtfAttributeOutput::FormatColumns_Impl(), RtfAttributeOutput::FormatFrameDirection(), RtfAttributeOutput::FormatFrameSize(), RtfAttributeOutput::FormatHorizOrientation(), RtfAttributeOutput::FormatLRSpace(), RtfAttributeOutput::FormatSurround(), RtfAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatVertOrientation(), RtfStringBufferValue::makeStringAndClear(), RtfAttributeOutput::NumberingDefinition(), RtfAttributeOutput::NumberingLevel(), OutColorTable(), OutDateTime(), OutPageDescription(), RtfAttributeOutput::OutputFlyFrame_Impl(), OutUnicode(), RtfAttributeOutput::PageBreakBefore(), RtfAttributeOutput::ParagraphStyle(), RtfAttributeOutput::SectionBiDi(), RtfAttributeOutput::SectionBreaks(), RtfAttributeOutput::SectionLineNumbering(), RtfAttributeOutput::SectionRtlGutter(), RtfAttributeOutput::SectionType(), RtfAttributeOutput::StartAbstractNumbering(), RtfAttributeOutput::StartFont(), RtfAttributeOutput::StartParagraphProperties(), RtfAttributeOutput::StartSection(), RtfAttributeOutput::StartStyles(), RtfAttributeOutput::StartTableRow(), WriteDocVars(), WriteFonts(), RtfAttributeOutput::WriteFootnoteEndnotePr(), WriteFootnoteSettings(), WriteHeaderFooter(), WriteInfo(), WriteMainText(), WriteNumbering(), WritePageDescTable(), WriteRevTab(), RtfAttributeOutput::writeTextFrame(), WriteUserProps(), WriteUserPropType(), and WriteUserPropValue().

◆ WriteChar()

void RtfExport::WriteChar ( sal_Unicode  c)
overridevirtual

Implements MSWordExportBase.

Definition at line 184 of file rtfexport.cxx.

◆ WriteCR()

void RtfExport::WriteCR ( ww8::WW8TableNodeInfoInner::Pointer_t  )
inlineoverridevirtual

Implements MSWordExportBase.

Definition at line 82 of file rtfexport.hxx.

◆ WriteDocVars()

void RtfExport::WriteDocVars ( )
private

◆ WriteFonts()

void RtfExport::WriteFonts ( )
private

◆ WriteFootnoteSettings()

void RtfExport::WriteFootnoteSettings ( )
private

◆ WriteFormData()

void RtfExport::WriteFormData ( const ::sw::mark::IFieldmark &  rFieldmark)
overridevirtual

◆ WriteHeaderFooter() [1/2]

void RtfExport::WriteHeaderFooter ( const SfxPoolItem rItem,
bool  bHeader 
)
private

◆ WriteHeaderFooter() [2/2]

void RtfExport::WriteHeaderFooter ( const SwFrameFormat rFormat,
bool  bHeader,
const char *  pStr,
bool  bTitlepg = false 
)
private

Definition at line 1536 of file rtfexport.cxx.

References m_pAttrOutput, and SAL_INFO.

◆ WriteHeadersFooters()

void RtfExport::WriteHeadersFooters ( sal_uInt8  nHeadFootFlags,
const SwFrameFormat rFormat,
const SwFrameFormat rLeftHeaderFormat,
const SwFrameFormat rLeftFooterFormat,
const SwFrameFormat rFirstPageFormat,
sal_uInt8  nBreakCode,
bool  bEvenAndOddHeaders 
)
overridevirtual

◆ WriteHyperlinkData()

void RtfExport::WriteHyperlinkData ( const ::sw::mark::IFieldmark &  rFieldmark)
overridevirtual

Implements MSWordExportBase.

Definition at line 380 of file rtfexport.cxx.

References SAL_INFO.

◆ WriteInfo()

void RtfExport::WriteInfo ( )
private

◆ WriteMainText()

void RtfExport::WriteMainText ( )
private

◆ WriteNumbering()

void RtfExport::WriteNumbering ( )
overridevirtual

◆ WritePageDescTable()

void RtfExport::WritePageDescTable ( )
private

◆ WriteRevTab()

void RtfExport::WriteRevTab ( )

◆ WriteStyles()

void RtfExport::WriteStyles ( )
private

Definition at line 448 of file rtfexport.cxx.

References MSWordExportBase::m_pStyles, and SAL_INFO.

Referenced by ExportDocument_Impl().

◆ WriteUserProps()

void RtfExport::WriteUserProps ( )
private

◆ WriteUserPropType()

void RtfExport::WriteUserPropType ( int  nType)
private

Writes a single user property type.

Definition at line 573 of file rtfexport.cxx.

References nType, OOO_STRING_SVTOOLS_RTF_PROPTYPE, Strm(), SvStream::WriteNumberAsString(), and SvStream::WriteOString().

Referenced by WriteUserProps().

◆ WriteUserPropValue()

void RtfExport::WriteUserPropValue ( std::u16string_view  rValue)
private

Writes a single user property value.

Definition at line 578 of file rtfexport.cxx.

References m_eDefaultEncoding, OOO_STRING_SVTOOLS_RTF_STATICVAL, msfilter::rtfutil::OutString(), Strm(), SvStream::WriteChar(), and SvStream::WriteOString().

Referenced by WriteUserProps().

Member Data Documentation

◆ m_aColTable

RtfColorTable RtfExport::m_aColTable
private

Definition at line 227 of file rtfexport.hxx.

Referenced by GetColor(), InsColor(), and OutColorTable().

◆ m_aRedlineTable

std::map<OUString, sal_uInt16> RtfExport::m_aRedlineTable
private

Definition at line 229 of file rtfexport.hxx.

Referenced by GetRedline(), and WriteRevTab().

◆ m_aStyTable

std::map<sal_uInt16, OString> RtfExport::m_aStyTable
private

Definition at line 228 of file rtfexport.hxx.

Referenced by GetStyle(), and InsStyle().

◆ m_bOutOutlineOnly

bool RtfExport::m_bOutOutlineOnly
private

Definition at line 49 of file rtfexport.hxx.

Referenced by OutputTextNode().

◆ m_bRTFFlySyntax

bool RtfExport::m_bRTFFlySyntax
private

This is used by OutputFlyFrame_Impl() to control the written syntax.

Definition at line 168 of file rtfexport.hxx.

Referenced by GetRTFFlySyntax(), and SetRTFFlySyntax().

◆ m_eCurrentEncoding

rtl_TextEncoding RtfExport::m_eCurrentEncoding
private

Definition at line 166 of file rtfexport.hxx.

Referenced by GetCurrentEncoding(), OutUnicode(), and SetCurrentEncoding().

◆ m_eDefaultEncoding

rtl_TextEncoding RtfExport::m_eDefaultEncoding
private

◆ m_nCurrentNodeIndex

SwNodeOffset RtfExport::m_nCurrentNodeIndex
private

Index of the current SwTextNode, if any.

Definition at line 170 of file rtfexport.hxx.

Referenced by GetCurrentNodeIndex(), and OutputTextNode().

◆ m_pAttrOutput

std::unique_ptr<RtfAttributeOutput> RtfExport::m_pAttrOutput
private

◆ m_pFilter

RtfExportFilter* RtfExport::m_pFilter
private

Pointer to the filter that owns us.

Definition at line 39 of file rtfexport.hxx.

Referenced by RtfExport().

◆ m_pFirstPageItemSet

const SfxItemSet* RtfExport::m_pFirstPageItemSet = nullptr
private

Item set of the first page during export of a follow page format.

Definition at line 233 of file rtfexport.hxx.

Referenced by GetFirstPageItemSet(), and OutPageDescription().

◆ m_pSdrExport

std::unique_ptr<RtfSdrExport> RtfExport::m_pSdrExport
private

Definition at line 48 of file rtfexport.hxx.

Referenced by RtfExport(), and SdrExporter().

◆ m_pSections

std::unique_ptr<MSWordSections> RtfExport::m_pSections
private

Sections/headers/footers.

Definition at line 46 of file rtfexport.hxx.

Referenced by AppendSection(), ExportDocument_Impl(), PrepareNewPageDesc(), and Sections().

◆ m_pStream

std::unique_ptr<SvMemoryStream> RtfExport::m_pStream
private

If set, then Strm() returns this stream, instead of m_pWriter's stream.

Definition at line 231 of file rtfexport.hxx.

Referenced by getStream(), resetStream(), setStream(), and Strm().

◆ m_pWriter

Writer* RtfExport::m_pWriter
private

Definition at line 40 of file rtfexport.hxx.

Referenced by RtfExport(), Strm(), and WriteMainText().


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