LibreOffice Module sw (master) 1
|
The class that does all the actual RTF export-related work. More...
#include <rtfexport.hxx>
Public Member Functions | |
AttributeOutputBase & | AttrOutput () const override |
Access to the attribute output class. More... | |
MSWordSections & | Sections () const override |
Access to the sections/headers/footres. More... | |
RtfSdrExport & | SdrExporter () 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 | |
RtfExport & | operator= (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 |
SvStream & | Strm () |
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 SfxItemSet * | GetFirstPageItemSet () 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 SfxPoolItem & | GetItem (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... | |
SwNumRule * | DuplicateNumRuleImpl (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 AttributeOutputBase & | AttrOutput () const =0 |
Access to the attribute output class. More... | |
virtual MSWordSections & | Sections () 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 SfxItemSet * | GetCurItemSet () 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 SwTextNode * | GetHdFtPageRoot () 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 SfxPoolItem * | HasItem (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 NfKeywordTable & | GetNfKeywordTable () |
void | SetCurPam (SwNodeOffset nStt, SwNodeOffset nEnd) |
std::unique_ptr< SvxBrushItem > | getBackground () |
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 | |
RtfExportFilter * | m_pFilter |
Pointer to the filter that owns us. More... | |
Writer * | m_pWriter |
std::unique_ptr< RtfAttributeOutput > | m_pAttrOutput |
Attribute output for document. More... | |
std::unique_ptr< MSWordSections > | m_pSections |
Sections/headers/footers. More... | |
std::unique_ptr< RtfSdrExport > | m_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< SvMemoryStream > | m_pStream |
If set, then Strm() returns this stream, instead of m_pWriter's stream. More... | |
const SfxItemSet * | m_pFirstPageItemSet = nullptr |
Item set of the first page during export of a follow page format. More... | |
The class that does all the actual RTF export-related work.
Definition at line 36 of file rtfexport.hxx.
RtfExport::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.
Definition at line 1142 of file rtfexport.cxx.
References RtfExportFilter::GetWriter(), MSWordExportBase::m_aFontHelper, MSWordExportBase::m_bExportModeRTF, wwFontHelper::m_bLoadAllFonts, MSWordExportBase::m_bSubstituteBullets, m_pAttrOutput, m_pFilter, m_pSdrExport, and m_pWriter.
|
delete |
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
Determines the Section Breaks are to be added for TOX Section.
Implements MSWordExportBase.
Definition at line 63 of file rtfexport.hxx.
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 153 of file rtfexport.cxx.
References MSWordExportBase::GetAnnotationMarks(), and m_pAttrOutput.
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 145 of file rtfexport.cxx.
References m_pAttrOutput.
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 120 of file rtfexport.cxx.
References MSWordExportBase::GetBookmarks(), and m_pAttrOutput.
|
overrideprotectedvirtual |
Implements MSWordExportBase.
Definition at line 1135 of file rtfexport.cxx.
References AttrOutput(), m_pSections, msword::PageBreak, and AttributeOutputBase::SectionBreak().
|
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().
|
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().
|
overridevirtual |
Guess the script (asian/western).
Implements MSWordExportBase.
Definition at line 86 of file rtfexport.cxx.
References RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), and RES_CHRATR_WEIGHT().
|
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().
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 385 of file rtfexport.cxx.
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 392 of file rtfexport.cxx.
References SwField::ExpandField(), SwInputField::GetHelp(), SwInputField::GetPar2(), SwInputField::GetToolTip(), m_eDefaultEncoding, m_pAttrOutput, OOO_STRING_SVTOOLS_RTF_FFDEFTEXT, OOO_STRING_SVTOOLS_RTF_FFHELPTEXT, OOO_STRING_SVTOOLS_RTF_FFNAME, OOO_STRING_SVTOOLS_RTF_FFOWNHELP, OOO_STRING_SVTOOLS_RTF_FFOWNSTAT, OOO_STRING_SVTOOLS_RTF_FFSTATTEXT, OOO_STRING_SVTOOLS_RTF_FFTYPE, OOO_STRING_SVTOOLS_RTF_FFTYPETXT, OOO_STRING_SVTOOLS_RTF_FIELD, OOO_STRING_SVTOOLS_RTF_FLDINST, OOO_STRING_SVTOOLS_RTF_FLDRSLT, OOO_STRING_SVTOOLS_RTF_FORMFIELD, OOO_STRING_SVTOOLS_RTF_IGNORE, msfilter::rtfutil::OutString(), and sName.
|
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().
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 179 of file rtfexport.cxx.
|
inlineoverridevirtual |
Determines if the import filter already quoted fields or not.
Implements MSWordExportBase.
Definition at line 61 of file rtfexport.hxx.
sal_uInt16 RtfExport::GetColor | ( | const Color & | rColor | ) | const |
Definition at line 1218 of file rtfexport.cxx.
References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), m_aColTable, and SAL_INFO.
Referenced by RtfAttributeOutput::CharBackground(), RtfAttributeOutput::CharColor(), RtfAttributeOutput::CharUnderline(), RtfAttributeOutput::FormatBackground(), OutTBLBorderLine(), and RtfAttributeOutput::TableBackgrounds().
|
inline |
Definition at line 178 of file rtfexport.hxx.
References m_eCurrentEncoding.
Referenced by RtfAttributeOutput::CharFont(), RtfAttributeOutput::EndStyle(), RtfAttributeOutput::FlyFrameGraphic(), RtfAttributeOutput::FlyFrameOLEMath(), RtfAttributeOutput::FontAlternateName(), lcl_AppendSP(), RtfAttributeOutput::OutputFlyFrame_Impl(), RtfAttributeOutput::PostitField(), RtfAttributeOutput::RunText(), RtfAttributeOutput::StartFont(), RtfSdrExport::StartShape(), RtfAttributeOutput::StartURL(), RtfAttributeOutput::WriteBookmarks_Impl(), RtfAttributeOutput::WriteField_Impl(), and RtfAttributeOutput::WriteTextFootnoteNumStr().
|
inline |
Definition at line 181 of file rtfexport.hxx.
References m_nCurrentNodeIndex.
Referenced by RtfAttributeOutput::EndParagraph().
|
inline |
Definition at line 173 of file rtfexport.hxx.
References m_eDefaultEncoding.
Referenced by RtfAttributeOutput::CharFont(), RtfAttributeOutput::EndFont(), RtfAttributeOutput::NumberingLevel(), RtfAttributeOutput::ParaNumRule_Impl(), and RtfAttributeOutput::WriteField_Impl().
|
inlineoverridevirtual |
Implements MSWordExportBase.
Definition at line 119 of file rtfexport.hxx.
|
inline |
Definition at line 203 of file rtfexport.hxx.
References m_pFirstPageItemSet.
Referenced by RtfAttributeOutput::FormatULSpace().
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().
const OUString * RtfExport::GetRedline | ( | sal_uInt16 | nId | ) |
Definition at line 1446 of file rtfexport.cxx.
References m_aRedlineTable, and nId.
|
inline |
Definition at line 180 of file rtfexport.hxx.
References m_bRTFFlySyntax.
Referenced by RtfAttributeOutput::FormatAnchor(), RtfAttributeOutput::FormatBackground(), RtfAttributeOutput::FormatBox(), RtfAttributeOutput::FormatFrameDirection(), RtfAttributeOutput::FormatHorizOrientation(), RtfAttributeOutput::FormatLRSpace(), RtfAttributeOutput::FormatSurround(), RtfAttributeOutput::FormatULSpace(), RtfAttributeOutput::FormatVertOrientation(), and RtfAttributeOutput::StartParagraphProperties().
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().
OString * RtfExport::GetStyle | ( | sal_uInt16 | nId | ) |
Definition at line 1429 of file rtfexport.cxx.
References m_aStyTable, and nId.
Referenced by RtfAttributeOutput::ParagraphStyle(), RtfAttributeOutput::ParaNumRule_Impl(), RtfAttributeOutput::TextCharFormat(), and RtfAttributeOutput::TextINetFormat().
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().
void RtfExport::InsColorLine | ( | const SvxBoxItem & | rBox | ) |
Definition at line 1257 of file rtfexport.cxx.
References SvxBoxItem::GetBottom(), editeng::SvxBorderLine::GetColor(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), and InsColor().
Referenced by OutColorTable().
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().
void RtfExport::OutColorTable | ( | ) |
Definition at line 1280 of file rtfexport.cxx.
References COL_AUTO(), COL_BLACK(), COL_BLUE(), COL_BROWN(), COL_CYAN(), COL_GRAY(), COL_GREEN(), COL_LIGHTBLUE(), COL_LIGHTCYAN(), COL_LIGHTGRAY(), COL_LIGHTGREEN(), COL_LIGHTMAGENTA(), COL_LIGHTRED(), COL_MAGENTA(), COL_RED(), COL_WHITE(), COL_YELLOW(), SwDoc::GetAttrPool(), Color::GetBlue(), GetDfltAttr(), Color::GetGreen(), SfxItemPool::GetItemSurrogates(), SfxItemPool::GetPoolDefaultItem(), Color::GetRed(), InsColor(), InsColorLine(), m_aColTable, MSWordExportBase::m_rDoc, n, OOO_STRING_SVTOOLS_RTF_BLUE, OOO_STRING_SVTOOLS_RTF_GREEN, OOO_STRING_SVTOOLS_RTF_RED, RES_BACKGROUND(), RES_BOX(), RES_CHRATR_BACKGROUND(), RES_CHRATR_BOX(), RES_CHRATR_COLOR(), RES_CHRATR_OVERLINE(), RES_CHRATR_UNDERLINE(), RES_SHADOW(), Strm(), SvStream::WriteChar(), SvStream::WriteNumberAsString(), SvStream::WriteOString(), and XATTR_FILLCOLOR().
Referenced by RtfAttributeOutput::StartStyles().
void RtfExport::OutDateTime | ( | std::string_view | pStr, |
const css::util::DateTime & | rDT | ||
) |
Definition at line 1208 of file rtfexport.cxx.
References OOO_STRING_SVTOOLS_RTF_DY, OOO_STRING_SVTOOLS_RTF_HR, OOO_STRING_SVTOOLS_RTF_MIN, OOO_STRING_SVTOOLS_RTF_MO, OOO_STRING_SVTOOLS_RTF_YR, Strm(), SvStream::WriteChar(), SvStream::WriteNumberAsString(), and SvStream::WriteOString().
Referenced by WriteInfo().
void RtfExport::OutPageDescription | ( | const SwPageDesc & | rPgDsc, |
bool | bCheckForFirstPage | ||
) |
Definition at line 1454 of file rtfexport.cxx.
References AttrOutput(), SwFormat::GetAttrSet(), SwPageDesc::GetFollow(), SfxItemSet::GetItemState(), SwPageDesc::GetLandscape(), SwPageDesc::GetLeft(), SwPageDesc::GetMaster(), SvxNumberType::GetNumberingType(), SwPageDesc::GetNumType(), MSWordExportBase::m_bOutPageDescs, MSWordExportBase::m_pCurrentPageDesc, m_pFirstPageItemSet, OOO_STRING_SVTOOLS_RTF_LNDSCPSXN, OOO_STRING_SVTOOLS_RTF_TITLEPG, MSWordExportBase::OutputFormat(), RES_FOOTER(), RES_HEADER(), SAL_INFO, AttributeOutputBase::SectionPageNumbering(), Strm(), WriteHeaderFooter(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl(), and WritePageDescTable().
|
overrideprotectedvirtual |
Output SwEndNode.
Reimplemented from MSWordExportBase.
Definition at line 1108 of file rtfexport.cxx.
References AttrOutput(), SwNode::IsTableNode(), MSWordExportBase::m_nTextTyp, AttributeOutputBase::SectionBreaks(), SwNode::StartOfSectionNode(), and TXT_MAINTEXT.
|
overridevirtual |
Write the field.
Implements MSWordExportBase.
Definition at line 316 of file rtfexport.cxx.
References m_pAttrOutput.
Referenced by RtfAttributeOutput::StartRuby(), and RtfAttributeOutput::WriteExpand().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements MSWordExportBase.
Definition at line 1125 of file rtfexport.cxx.
|
overrideprotectedvirtual |
|
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().
void RtfExport::OutUnicode | ( | std::string_view | pToken, |
std::u16string_view | rContent, | ||
bool | bUpr = false |
||
) |
Definition at line 1193 of file rtfexport.cxx.
References m_eCurrentEncoding, msfilter::rtfutil::OutString(), msfilter::rtfutil::OutStringUpr(), Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by WriteInfo().
|
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.
|
overrideprotectedvirtual |
Get ready for a new section.
Implements MSWordExportBase.
Definition at line 1065 of file rtfexport.cxx.
References AttrOutput(), MSWordExportBase::GetSectionFormat(), MSWordExportBase::GetSectionLineNo(), m_pAttrOutput, m_pSections, msword::PageBreak, and AttributeOutputBase::SectionBreak().
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 430 of file rtfexport.cxx.
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().
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().
|
inlineoverrideprotectedvirtual |
Implements MSWordExportBase.
Definition at line 125 of file rtfexport.hxx.
|
overridevirtual |
Access to the sections/headers/footres.
Implements MSWordExportBase.
Definition at line 82 of file rtfexport.cxx.
References m_pSections.
|
inline |
Definition at line 174 of file rtfexport.hxx.
References m_eCurrentEncoding.
Referenced by RtfAttributeOutput::CharFont(), RtfAttributeOutput::EndFont(), and RtfAttributeOutput::FontCharset().
|
inline |
Definition at line 179 of file rtfexport.hxx.
References m_bRTFFlySyntax.
Referenced by RtfAttributeOutput::FlyFrameGraphic(), RtfAttributeOutput::OutputFlyFrame_Impl(), and RtfAttributeOutput::writeTextFrame().
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().
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().
|
overridevirtual |
Implements MSWordExportBase.
Definition at line 184 of file rtfexport.cxx.
|
inlineoverridevirtual |
Implements MSWordExportBase.
Definition at line 82 of file rtfexport.hxx.
|
private |
Writes document variables.
Definition at line 681 of file rtfexport.cxx.
References SwDoc::GetDocShell(), SfxObjectShell::GetModel(), m_eDefaultEncoding, MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_DOCVAR, OOO_STRING_SVTOOLS_RTF_IGNORE, msfilter::rtfutil::OutString(), Strm(), u, SvStream::WriteChar(), SvStream::WriteOString(), and xModel.
Referenced by ExportDocument_Impl().
|
private |
Definition at line 438 of file rtfexport.cxx.
References MSWordExportBase::m_aFontHelper, m_pAttrOutput, OOO_STRING_SVTOOLS_RTF_FONTTBL, SAL_NEWLINE_STRING, Strm(), SvStream::WriteChar(), wwFontHelper::WriteFontTable(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
|
private |
Definition at line 455 of file rtfexport.cxx.
References SwPageDesc::GetFootnoteInfo(), SwDoc::GetPageDesc(), SwPageFootnoteInfo::GetWidth(), MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_CHFTNSEP, OOO_STRING_SVTOOLS_RTF_FTNSEP, OOO_STRING_SVTOOLS_RTF_IGNORE, Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
|
overridevirtual |
Write the data of the form field.
Implements MSWordExportBase.
Definition at line 322 of file rtfexport.cxx.
References m_eDefaultEncoding, m_pAttrOutput, nType, ODF_FORMDROPDOWN, ODF_FORMDROPDOWN_LISTENTRY, ODF_FORMDROPDOWN_RESULT, OOO_STRING_SVTOOLS_RTF_FFHASLISTBOX, OOO_STRING_SVTOOLS_RTF_FFL, OOO_STRING_SVTOOLS_RTF_FFRES, OOO_STRING_SVTOOLS_RTF_FFTYPE, OOO_STRING_SVTOOLS_RTF_FORMFIELD, OOO_STRING_SVTOOLS_RTF_IGNORE, msfilter::rtfutil::OutString(), result, and SAL_INFO.
|
private |
Definition at line 1505 of file rtfexport.cxx.
References SwPageDesc::GetFollow(), SwPageDesc::GetMaster(), MSWordExportBase::m_pCurrentPageDesc, OOO_STRING_SVTOOLS_RTF_FOOTER, OOO_STRING_SVTOOLS_RTF_FOOTERF, OOO_STRING_SVTOOLS_RTF_HEADER, OOO_STRING_SVTOOLS_RTF_HEADERF, OOO_STRING_SVTOOLS_RTF_TITLEPG, SAL_INFO, Strm(), SvStream::WriteChar(), MSWordExportBase::WriteHeaderFooterText(), and SvStream::WriteOString().
Referenced by OutPageDescription(), and WriteHeadersFooters().
|
private |
Definition at line 1536 of file rtfexport.cxx.
References m_pAttrOutput, and SAL_INFO.
|
overridevirtual |
Output the actual headers and footers.
Implements MSWordExportBase.
Definition at line 289 of file rtfexport.cxx.
References OOO_STRING_SVTOOLS_RTF_FOOTER, OOO_STRING_SVTOOLS_RTF_FOOTERF, OOO_STRING_SVTOOLS_RTF_FOOTERL, OOO_STRING_SVTOOLS_RTF_HEADER, OOO_STRING_SVTOOLS_RTF_HEADERF, OOO_STRING_SVTOOLS_RTF_HEADERL, WriteHeaderFooter(), nsHdFtFlags::WW8_FOOTER_EVEN, nsHdFtFlags::WW8_FOOTER_FIRST, nsHdFtFlags::WW8_FOOTER_ODD, nsHdFtFlags::WW8_HEADER_EVEN, nsHdFtFlags::WW8_HEADER_FIRST, and nsHdFtFlags::WW8_HEADER_ODD.
|
overridevirtual |
|
private |
Definition at line 515 of file rtfexport.cxx.
References SwDoc::GetDocShell(), utl::DocInfoHelper::GetGeneratorString(), SfxObjectShell::GetModel(), LO_STRING_SVTOOLS_RTF_GENERATOR, MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_AUTHOR, OOO_STRING_SVTOOLS_RTF_COMPANY, OOO_STRING_SVTOOLS_RTF_CREATIM, OOO_STRING_SVTOOLS_RTF_DOCCOMM, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_INFO, OOO_STRING_SVTOOLS_RTF_KEYWORDS, OOO_STRING_SVTOOLS_RTF_PRINTIM, OOO_STRING_SVTOOLS_RTF_REVTIM, OOO_STRING_SVTOOLS_RTF_SUBJECT, OOO_STRING_SVTOOLS_RTF_TITLE, OUStringToOString(), OutDateTime(), OutUnicode(), Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
|
private |
Definition at line 470 of file rtfexport.cxx.
References aProperties, SwNode::EndOfSectionNode(), MSWordExportBase::getBackground(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), LO_STRING_SVTOOLS_RTF_VIEWBKSP, Writer::m_bWriteOnlyFirstTable, MSWordExportBase::m_pCurPam, m_pWriter, MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_BACKGROUND, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_SHP, OOO_STRING_SVTOOLS_RTF_SHPINST, OOO_STRING_SVTOOLS_RTF_SN, OOO_STRING_SVTOOLS_RTF_SP, OOO_STRING_SVTOOLS_RTF_SV, wwUtility::RGBToBGR(), SAL_INFO, SwNode::StartOfSectionNode(), Strm(), SvStream::WriteChar(), SvStream::WriteOString(), and MSWordExportBase::WriteText().
Referenced by ExportDocument_Impl().
|
overridevirtual |
Write the numbering table.
Implements MSWordExportBase.
Definition at line 225 of file rtfexport.cxx.
References MSWordExportBase::AbstractNumberingDefinitions(), MSWordExportBase::BulletDefinitions(), MSWordExportBase::CollectGrfsOfBullets(), LO_STRING_SVTOOLS_RTF_LISTPICTURE, MSWordExportBase::m_pUsedNumTable, MSWordExportBase::m_vecBulletPic, MSWordExportBase::NumberingDefinitions(), OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_LISTOVERRIDETABLE, OOO_STRING_SVTOOLS_RTF_LISTTABLE, SAL_INFO, Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
|
private |
Writes the writer-specific \pgdsctbl group.
Definition at line 732 of file rtfexport.cxx.
References SwPageDesc::GetFollow(), SwPageDesc::GetName(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), i, MSWordExportBase::m_bOutPageDescs, m_eDefaultEncoding, MSWordExportBase::m_pTableInfo, MSWordExportBase::m_rDoc, n, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_PGDSC, OOO_STRING_SVTOOLS_RTF_PGDSCNXT, OOO_STRING_SVTOOLS_RTF_PGDSCTBL, OOO_STRING_SVTOOLS_RTF_PGDSCUSE, OutPageDescription(), msfilter::rtfutil::OutString(), SwPageDesc::ReadUseOn(), SAL_NEWLINE_STRING, Strm(), SvStream::WriteChar(), SvStream::WriteNumberAsString(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
void RtfExport::WriteRevTab | ( | ) |
Write the revision table.
Definition at line 257 of file rtfexport.cxx.
References SwDoc::getIDocumentRedlineAccess(), GetRedline(), IDocumentRedlineAccess::GetRedlineTable(), i, m_aRedlineTable, m_eDefaultEncoding, MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_REVTBL, msfilter::rtfutil::OutString(), SAL_NEWLINE_STRING, SwRedlineTable::size(), Strm(), SW_MOD, SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by ExportDocument_Impl().
|
private |
Definition at line 448 of file rtfexport.cxx.
References MSWordExportBase::m_pStyles, and SAL_INFO.
Referenced by ExportDocument_Impl().
|
private |
Writes the userprops group: user defined document properties.
Definition at line 585 of file rtfexport.cxx.
References aProperties, SwDoc::GetDocShell(), sw::MetaFieldManager::getDocumentProperties(), SwDoc::GetMetaFieldManager(), SfxObjectShell::GetModel(), m_eDefaultEncoding, MSWordExportBase::m_rDoc, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_PROPNAME, OOO_STRING_SVTOOLS_RTF_USERPROPS, msfilter::rtfutil::OutString(), Strm(), SvStream::WriteChar(), SvStream::WriteOString(), WriteUserPropType(), and WriteUserPropValue().
Referenced by ExportDocument_Impl().
|
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().
|
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().
|
private |
Definition at line 227 of file rtfexport.hxx.
Referenced by GetColor(), InsColor(), and OutColorTable().
|
private |
Definition at line 229 of file rtfexport.hxx.
Referenced by GetRedline(), and WriteRevTab().
|
private |
Definition at line 228 of file rtfexport.hxx.
Referenced by GetStyle(), and InsStyle().
|
private |
Definition at line 49 of file rtfexport.hxx.
Referenced by OutputTextNode().
|
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().
|
private |
Definition at line 166 of file rtfexport.hxx.
Referenced by GetCurrentEncoding(), OutUnicode(), and SetCurrentEncoding().
|
private |
Definition at line 165 of file rtfexport.hxx.
Referenced by DoFormText(), GetDefaultEncoding(), WriteDocVars(), WriteFormData(), WritePageDescTable(), WriteRevTab(), WriteUserProps(), and WriteUserPropValue().
|
private |
Index of the current SwTextNode, if any.
Definition at line 170 of file rtfexport.hxx.
Referenced by GetCurrentNodeIndex(), and OutputTextNode().
|
private |
Attribute output for document.
Definition at line 43 of file rtfexport.hxx.
Referenced by AppendAnnotationMarks(), AppendBookmark(), AppendBookmarks(), AttrOutput(), DoFormText(), ExportDocument_Impl(), OutputField(), PrepareNewPageDesc(), RtfExport(), WriteFonts(), WriteFormData(), and WriteHeaderFooter().
|
private |
Pointer to the filter that owns us.
Definition at line 39 of file rtfexport.hxx.
Referenced by RtfExport().
|
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().
|
private |
Definition at line 48 of file rtfexport.hxx.
Referenced by RtfExport(), and SdrExporter().
|
private |
Sections/headers/footers.
Definition at line 46 of file rtfexport.hxx.
Referenced by AppendSection(), ExportDocument_Impl(), PrepareNewPageDesc(), and Sections().
|
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().
|
private |
Definition at line 40 of file rtfexport.hxx.
Referenced by RtfExport(), Strm(), and WriteMainText().