LibreOffice Module sw (master)
1
|
#include <wrtww8.hxx>
Public Member Functions | |
SwWW8AttrIter (MSWordExportBase &rWr, const SwTextNode &rNd) | |
bool | IsTextAttr (sal_Int32 nSwPos) const |
bool | IsExportableAttr (sal_Int32 nSwPos) const |
bool | IncludeEndOfParaCRInRedlineProperties (sal_Int32 nPos) const |
bool | IsDropCap (int nSwPos) |
bool | RequiresImplicitBookmark () |
void | NextPos () |
void | OutAttr (sal_Int32 nSwPos, bool bWriteCombinedChars) |
virtual const SfxPoolItem * | HasTextItem (sal_uInt16 nWhich) const override |
virtual const SfxPoolItem & | GetItem (sal_uInt16 nWhich) const override |
int | OutAttrWithRange (const SwTextNode &rNode, sal_Int32 nPos) |
const SwRedlineData * | GetParagraphLevelRedline () |
const SwRedlineData * | GetRunLevelRedline (sal_Int32 nPos) |
FlyProcessingState | OutFlys (sal_Int32 nSwPos) |
bool | HasFlysAt (sal_Int32 nSwPos) const |
sal_Int32 | WhereNext () const |
sal_uInt16 | GetScript () const |
bool | IsParaRTL () const |
rtl_TextEncoding | GetCharSet () const |
OUString | GetSnippet (const OUString &rStr, sal_Int32 nCurrentPos, sal_Int32 nLen) const |
const SwFormatDrop & | GetSwFormatDrop () const |
bool | IsWatermarkFrame () |
bool | IsAnchorLinkedToThisNode (sal_uLong nNodePos) |
void | SplitRun (sal_Int32 nSplitEndPos) |
const SwTextNode & | GetNode () const |
![]() | |
MSWordAttrIter (MSWordExportBase &rExport) | |
virtual | ~MSWordAttrIter () |
Private Member Functions | |
sal_Int32 | SearchNext (sal_Int32 nStartPos) |
void | OutSwFormatRefMark (const SwFormatRefMark &rAttr) |
void | IterToCurrent () |
SwWW8AttrIter (const SwWW8AttrIter &)=delete | |
SwWW8AttrIter & | operator= (const SwWW8AttrIter &)=delete |
Private Attributes | |
const SwTextNode & | rNd |
sw::util::CharRuns | maCharRuns |
sw::util::CharRuns::const_iterator | maCharRunIter |
rtl_TextEncoding | meChrSet |
sal_uInt16 | mnScript |
bool | mbCharIsRTL |
const SwRangeRedline * | pCurRedline |
sal_Int32 | nCurrentSwPos |
SwRedlineTable::size_type | nCurRedlinePos |
bool | mbParaIsRTL |
const SwFormatDrop & | mrSwFormatDrop |
ww8::Frames | maFlyFrames |
ww8::FrameIter | maFlyIter |
Additional Inherited Members | |
![]() | |
MSWordExportBase & | m_rExport |
Definition at line 1499 of file wrtww8.hxx.
|
privatedelete |
SwWW8AttrIter::SwWW8AttrIter | ( | MSWordExportBase & | rWr, |
const SwTextNode & | rNd | ||
) |
Definition at line 193 of file wrtw8nds.cxx.
References SwRedlineTable::empty(), sw::util::GetFramesInNode(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedline(), IDocumentRedlineAccess::GetRedlineTable(), SwDoc::GetTextDirection(), IterToCurrent(), MSWordExportBase::m_aFrames, MSWordExportBase::m_bInWriteEscher, MSWordExportBase::m_pDoc, MSWordAttrIter::m_rExport, maCharRunIter, maCharRuns, maFlyFrames, maFlyIter, mbParaIsRTL, nCurRedlinePos, nCurrentSwPos, pCurRedline, rNd, and SearchNext().
|
inline |
Definition at line 1553 of file wrtww8.hxx.
References meChrSet.
Referenced by MSWordExportBase::OutputTextNode().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 830 of file wrtw8nds.cxx.
References HasTextItem(), and rNd.
Referenced by GetSnippet().
|
inline |
Definition at line 1563 of file wrtww8.hxx.
References rNd.
Referenced by MSWordExportBase::GetAnnotationMarks(), and MSWordExportBase::GetSortedAnnotationMarks().
const SwRedlineData * SwWW8AttrIter::GetParagraphLevelRedline | ( | ) |
Definition at line 1424 of file wrtw8nds.cxx.
References SwDoc::getIDocumentRedlineAccess(), SwRangeRedline::GetRedlineData(), IDocumentRedlineAccess::GetRedlineTable(), MSWordExportBase::m_pDoc, MSWordAttrIter::m_rExport, SwPosition::nNode, ParagraphFormat, pCurRedline, and rNd.
Referenced by MSWordExportBase::OutputTextNode().
const SwRedlineData * SwWW8AttrIter::GetRunLevelRedline | ( | sal_Int32 | nPos | ) |
Definition at line 1449 of file wrtw8nds.cxx.
References Delete, SwPaM::End(), Format, SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetPoint(), SwRangeRedline::GetRedlineData(), IDocumentRedlineAccess::GetRedlineTable(), SwRangeRedline::GetType(), Insert, MSWordExportBase::m_pDoc, MSWordAttrIter::m_rExport, SwPosition::nContent, nCurRedlinePos, SwPosition::nNode, pCurRedline, rNd, SwRedlineTable::size(), and SwPaM::Start().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
OUString SwWW8AttrIter::GetSnippet | ( | const OUString & | rStr, |
sal_Int32 | nCurrentPos, | ||
sal_Int32 | nLen | ||
) | const |
Definition at line 1669 of file wrtw8nds.cxx.
References SvxFont::CalcCaseMap(), CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, g_pBreakIt, SwBreakIt::GetBreakIter(), GetItem(), SwLangHelper::GetLanguage(), SwBreakIt::GetLocale(), GetValue, MSWordExportBase::m_aCurrentCharPropStarts, MSWordAttrIter::m_rExport, RES_CHRATR_CASEMAP, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_LANGUAGE, and SvxFont::SetCaseMap().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
Definition at line 1556 of file wrtww8.hxx.
References mrSwFormatDrop.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::HasFlysAt | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 581 of file wrtw8nds.cxx.
References SwIndex::GetIndex(), maFlyFrames, SwPosition::nContent, and nPos.
Referenced by WW8Export::AppendAnnotationMarks(), and MSWordExportBase::GetAnnotationMarks().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 784 of file wrtw8nds.cxx.
References SwpHints::Count(), SwTextAttr::End(), SwpHints::Get(), SwTextAttr::GetAttr(), CharFormat::GetItemSet(), SfxItemSet::GetItemState(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), i, MSWordExportBase::m_aCurrentCharPropStarts, MSWordAttrIter::m_rExport, RES_TXTATR_AUTOFMT, RES_TXTATR_CHARFMT, RES_TXTATR_INETFMT, rNd, SfxPoolItem::Which(), and SwTextAttr::Which().
Referenced by GetItem().
bool SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties | ( | sal_Int32 | nPos | ) | const |
Definition at line 1368 of file wrtw8nds.cxx.
References SwPaM::End(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), IDocumentRedlineAccess::GetRedlineTable(), MSWordExportBase::m_pDoc, MSWordAttrIter::m_rExport, SwPosition::nContent, nCurRedlinePos, SwPosition::nNode, nPos, rNd, SwRedlineTable::size(), and SwPaM::Start().
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsAnchorLinkedToThisNode | ( | sal_uLong | nNodePos | ) |
Definition at line 562 of file wrtw8nds.cxx.
References SwNodeIndex::GetIndex(), maFlyFrames, maFlyIter, and SwPosition::nNode.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsDropCap | ( | int | nSwPos | ) |
Definition at line 755 of file wrtw8nds.cxx.
References SwFormatDrop::GetChars(), SwTextNode::GetDropLen(), SwFormatDrop::GetWholeWord(), mrSwFormatDrop, and rNd.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsExportableAttr | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 731 of file wrtw8nds.cxx.
References SwTextAttr::End(), SwTextAttr::GetAttr(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), i, RES_TXTATR_METAFIELD, rNd, and SfxPoolItem::Which().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
Definition at line 1552 of file wrtww8.hxx.
References mbParaIsRTL.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsTextAttr | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 706 of file wrtw8nds.cxx.
References SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), i, and rNd.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsWatermarkFrame | ( | ) |
Definition at line 542 of file wrtw8nds.cxx.
References SdrObject::GetName(), maFlyFrames, and maFlyIter.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 185 of file wrtw8nds.cxx.
References maCharRunIter, maCharRuns, mbCharIsRTL, meChrSet, and mnScript.
Referenced by SearchNext(), SplitRun(), and SwWW8AttrIter().
|
inline |
Definition at line 1539 of file wrtww8.hxx.
References SAL_MAX_INT32, and SearchNext().
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField(), and MSWordExportBase::UpdatePosition().
|
privatedelete |
void SwWW8AttrIter::OutAttr | ( | sal_Int32 | nSwPos, |
bool | bWriteCombinedChars | ||
) |
Definition at line 397 of file wrtw8nds.cxx.
References MSWordExportBase::AttrOutput(), sw::util::ClearOverridesFromSet(), SwTextAttr::End(), MSWordExportBase::ExportPoolItemsToCHP(), SfxWhichIter::FirstWhich(), SwContentNode::GetAnyFormatColl(), SwTextAttr::GetAttr(), SwAttrSet::GetPool(), sw::util::GetPoolItems(), SwTextNode::GetpSwpHints(), GetScript(), SwTextAttr::GetStart(), SwFormatAutoFormat::GetStyleHandle(), SwContentNode::GetSwAttrSet(), GetWhichOfScript(), SwContentNode::HasSwAttrSet(), i, sw::util::item_cast(), MSWordExportBase::m_aCurrentCharPropStarts, MSWordExportBase::m_pOutFormatNode, MSWordAttrIter::m_rExport, mbCharIsRTL, SfxWhichIter::NextWhich(), AttributeOutputBase::OutputItem(), RES_CHRATR_BEGIN, RES_CHRATR_FONT, RES_CHRATR_GRABBAG, RES_TXTATR_AUTOFMT, RES_TXTATR_CHARFMT, RES_TXTATR_END, rNd, AttributeOutputBase::RTLAndCJKState(), MSWordExportBase::SetCurItemSet(), and SfxPoolItem::Which().
Referenced by DocxAttributeOutput::DoWriteFieldRunProperties(), and MSWordExportBase::OutputTextNode().
int SwWW8AttrIter::OutAttrWithRange | ( | const SwTextNode & | rNode, |
sal_Int32 | nPos | ||
) |
Definition at line 1267 of file wrtw8nds.cxx.
References MSWordExportBase::AttrOutput(), SwTextAttr::End(), AttributeOutputBase::EndRuby(), AttributeOutputBase::EndURL(), SwTextAttr::GetAttr(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwFormatINetFormat::GetTargetFrame(), SwFormatINetFormat::GetValue(), i, SwTextNode::Len(), MSWordExportBase::m_aCurrentCharPropStarts, MSWordAttrIter::m_rExport, OutSwFormatRefMark(), RES_TXTATR_CJK_RUBY, RES_TXTATR_INETFMT, RES_TXTATR_REFMARK, RES_TXTATR_TOXMARK, rNd, AttributeOutputBase::StartRuby(), AttributeOutputBase::StartURL(), AttributeOutputBase::TOXMark(), and SfxPoolItem::Which().
Referenced by MSWordExportBase::OutputTextNode().
FlyProcessingState SwWW8AttrIter::OutFlys | ( | sal_Int32 | nSwPos | ) |
Definition at line 596 of file wrtw8nds.cxx.
References MSWordExportBase::AttrOutput(), SwFrameFormat::FindRealSdrObject(), FLY_NOT_PROCESSED, FLY_POSTPONED, FLY_PROCESSED, ww8::Frame::GetFrameFormat(), SwIndex::GetIndex(), SdrObject::GetName(), AttributeOutputBase::IsFlyProcessingPostponed(), MSWordExportBase::m_aLinkedTextboxesHelper, MSWordExportBase::m_bLinkedTextboxesHelperInitialized, MSWordExportBase::m_nTextTyp, MSWordAttrIter::m_rExport, maFlyFrames, maFlyIter, SwPosition::nContent, nPos, AttributeOutputBase::OutputFlyFrame(), MSWordExportBase::LinkedTextboxInfo::sNextChain, MSWordExportBase::LinkedTextboxInfo::sPrevChain, and TXT_HDFT.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 1164 of file wrtw8nds.cxx.
References MSWordExportBase::AppendBookmark(), MSWordExportBase::GetBookmarkName(), SwFormatRefMark::GetRefName(), MSWordExportBase::HasRefToObject(), MSWordAttrIter::m_rExport, and REF_SETREFATTR.
Referenced by OutAttrWithRange().
bool SwWW8AttrIter::RequiresImplicitBookmark | ( | ) |
Definition at line 774 of file wrtw8nds.cxx.
References SwNode::GetIndex(), MSWordExportBase::m_aImplicitBookmarks, MSWordAttrIter::m_rExport, and rNd.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 251 of file wrtw8nds.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, SwTextAttr::End(), SwPaM::End(), SwFormatDrop::GetChars(), SwTextNode::GetDropLen(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetPoint(), SwTextNode::GetpSwpHints(), IDocumentRedlineAccess::GetRedlineTable(), SwTextAttr::GetStart(), SwTextNode::GetText(), SwFormatDrop::GetWholeWord(), SwTextAttr::HasDummyChar(), i, IterToCurrent(), lcl_getMinPos(), MSWordExportBase::m_pDoc, MSWordAttrIter::m_rExport, maCharRunIter, maCharRuns, maFlyFrames, maFlyIter, mrSwFormatDrop, SwPosition::nContent, nCurRedlinePos, SwPosition::nNode, nPos, pCurRedline, pos, rNd, SAL_MAX_INT32, size, SwRedlineTable::size(), and SwPaM::Start().
Referenced by NextPos(), SplitRun(), and SwWW8AttrIter().
void SwWW8AttrIter::SplitRun | ( | sal_Int32 | nSplitEndPos | ) |
Definition at line 1171 of file wrtw8nds.cxx.
References IterToCurrent(), maCharRunIter, maCharRuns, sw::util::CharRunEntry::mnEndPos, nCurrentSwPos, and SearchNext().
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField().
|
inline |
Definition at line 1550 of file wrtww8.hxx.
References nCurrentSwPos.
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField(), MSWordExportBase::GetNextPos(), and MSWordExportBase::UpdatePosition().
|
private |
Definition at line 1505 of file wrtww8.hxx.
Referenced by IterToCurrent(), SearchNext(), SplitRun(), and SwWW8AttrIter().
|
private |
Definition at line 1504 of file wrtww8.hxx.
Referenced by IterToCurrent(), SearchNext(), SplitRun(), and SwWW8AttrIter().
|
private |
Definition at line 1519 of file wrtww8.hxx.
Referenced by HasFlysAt(), IsAnchorLinkedToThisNode(), IsWatermarkFrame(), OutFlys(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1520 of file wrtww8.hxx.
Referenced by IsAnchorLinkedToThisNode(), IsWatermarkFrame(), OutFlys(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1509 of file wrtww8.hxx.
Referenced by IterToCurrent(), and OutAttr().
|
private |
Definition at line 1515 of file wrtww8.hxx.
Referenced by IsParaRTL(), and SwWW8AttrIter().
|
private |
Definition at line 1507 of file wrtww8.hxx.
Referenced by GetCharSet(), and IterToCurrent().
|
private |
Definition at line 1508 of file wrtww8.hxx.
Referenced by GetScript(), and IterToCurrent().
|
private |
Definition at line 1517 of file wrtww8.hxx.
Referenced by GetSwFormatDrop(), IsDropCap(), and SearchNext().
|
private |
Definition at line 1513 of file wrtww8.hxx.
Referenced by GetRunLevelRedline(), IncludeEndOfParaCRInRedlineProperties(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1512 of file wrtww8.hxx.
Referenced by SplitRun(), SwWW8AttrIter(), and WhereNext().
|
private |
Definition at line 1511 of file wrtww8.hxx.
Referenced by GetParagraphLevelRedline(), GetRunLevelRedline(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1502 of file wrtww8.hxx.
Referenced by GetItem(), GetNode(), GetParagraphLevelRedline(), GetRunLevelRedline(), HasTextItem(), IncludeEndOfParaCRInRedlineProperties(), IsDropCap(), IsExportableAttr(), IsTextAttr(), OutAttr(), OutAttrWithRange(), RequiresImplicitBookmark(), SearchNext(), and SwWW8AttrIter().