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 (SwNodeOffset nNodePos) |
void | SplitRun (sal_Int32 nSplitEndPos) |
const SwTextNode & | GetNode () const |
Public Member Functions inherited from MSWordAttrIter | |
MSWordAttrIter (MSWordExportBase &rExport) | |
virtual | ~MSWordAttrIter () |
virtual const SfxPoolItem * | HasTextItem (sal_uInt16 nWhich) const =0 |
template<class T > | |
const T * | HasTextItem (TypedWhichId< T > nWhich) const |
virtual const SfxPoolItem & | GetItem (sal_uInt16 nWhich) const =0 |
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 |
void | handleToggleProperty (SfxItemSet &rExportSet, const SwFormatCharFormat *pCharFormatItem, sal_uInt16 nWhich, const SfxPoolItem *pValue) |
Private Attributes | |
const SwTextNode & | m_rNode |
sw::util::CharRuns | maCharRuns |
sw::util::CharRuns::const_iterator | maCharRunIter |
rtl_TextEncoding | meChrSet |
sal_uInt16 | mnScript |
bool | mbCharIsRTL |
const SwRangeRedline * | m_pCurRedline |
sal_Int32 | m_nCurrentSwPos |
SwRedlineTable::size_type | m_nCurRedlinePos |
bool | mbParaIsRTL |
const SwFormatDrop & | mrSwFormatDrop |
ww8::Frames | maFlyFrames |
ww8::FrameIter | maFlyIter |
Additional Inherited Members | |
Protected Attributes inherited from MSWordAttrIter | |
MSWordExportBase & | m_rExport |
Definition at line 1512 of file wrtww8.hxx.
|
privatedelete |
SwWW8AttrIter::SwWW8AttrIter | ( | MSWordExportBase & | rWr, |
const SwTextNode & | rNd | ||
) |
Definition at line 203 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, m_nCurRedlinePos, m_nCurrentSwPos, m_pCurRedline, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, m_rNode, maCharRunIter, maCharRuns, maFlyFrames, maFlyIter, mbParaIsRTL, and SearchNext().
|
inline |
Definition at line 1568 of file wrtww8.hxx.
References meChrSet.
Referenced by MSWordExportBase::OutputTextNode().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 888 of file wrtw8nds.cxx.
References HasTextItem(), and m_rNode.
Referenced by GetSnippet().
|
inline |
Definition at line 1578 of file wrtww8.hxx.
References m_rNode.
Referenced by MSWordExportBase::GetAnnotationMarks(), and MSWordExportBase::GetSortedAnnotationMarks().
const SwRedlineData * SwWW8AttrIter::GetParagraphLevelRedline | ( | ) |
Definition at line 1531 of file wrtw8nds.cxx.
References SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), SwRangeRedline::GetRedlineData(), IDocumentRedlineAccess::GetRedlineTable(), m_pCurRedline, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, and m_rNode.
Referenced by MSWordExportBase::OutputTextNode().
const SwRedlineData * SwWW8AttrIter::GetRunLevelRedline | ( | sal_Int32 | nPos | ) |
Definition at line 1556 of file wrtw8nds.cxx.
References SwPaM::End(), SwPosition::GetContentIndex(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), SwRangeRedline::GetRedlineData(), IDocumentRedlineAccess::GetRedlineTable(), SwRangeRedline::GetType(), m_nCurRedlinePos, m_pCurRedline, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, m_rNode, nPos, size, and SwPaM::StartEnd().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
OUString SwWW8AttrIter::GetSnippet | ( | const OUString & | rStr, |
sal_Int32 | nCurrentPos, | ||
sal_Int32 | nLen | ||
) | const |
Definition at line 1765 of file wrtw8nds.cxx.
References SvxFont::CalcCaseMap(), CH_TXTATR_BREAKWORD, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, g_pBreakIt, SwBreakIt::GetBreakIter(), GetItem(), SwLangHelper::GetLanguage(), SwBreakIt::GetLocale(), GetValue, MSWordExportBase::m_aCurrentCharPropStarts, MSWordAttrIter::m_rExport, comphelper::string::removeAny(), 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 1571 of file wrtww8.hxx.
References mrSwFormatDrop.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 562 of file wrtw8nds.cxx.
References SwContentNode::GetAnyFormatColl(), SwFormat::GetAttrSet(), SwFormatCharFormat::GetCharFormat(), SfxItemSet::GetItem(), SfxItemSet::HasItem(), MSWordExportBase::m_pStyles, MSWordAttrIter::m_rExport, m_rNode, and SfxItemSet::Put().
Referenced by OutAttr().
bool SwWW8AttrIter::HasFlysAt | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 636 of file wrtw8nds.cxx.
References SwPosition::GetContentIndex(), maFlyFrames, and nPos.
Referenced by WW8Export::AppendAnnotationMarks(), and MSWordExportBase::GetAnnotationMarks().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 842 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, m_rNode, RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), RES_TXTATR_INETFMT(), SfxPoolItem::Which(), and SwTextAttr::Which().
Referenced by GetItem().
bool SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties | ( | sal_Int32 | nPos | ) | const |
Definition at line 1475 of file wrtw8nds.cxx.
References SwPaM::End(), SwPosition::GetContentIndex(), SwDoc::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), IDocumentRedlineAccess::GetRedlineTable(), m_nCurRedlinePos, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, m_rNode, nPos, size, and SwPaM::Start().
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsAnchorLinkedToThisNode | ( | SwNodeOffset | nNodePos | ) |
Definition at line 625 of file wrtw8nds.cxx.
References maFlyFrames, and maFlyIter.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsDropCap | ( | int | nSwPos | ) |
Definition at line 813 of file wrtw8nds.cxx.
References SwFormatDrop::GetChars(), SwTextNode::GetDropLen(), SwFormatDrop::GetWholeWord(), m_rNode, and mrSwFormatDrop.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsExportableAttr | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 789 of file wrtw8nds.cxx.
References SwTextAttr::End(), SwTextAttr::GetAttr(), SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), i, m_rNode, RES_TXTATR_METAFIELD(), and SfxPoolItem::Which().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
Definition at line 1567 of file wrtww8.hxx.
References mbParaIsRTL.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsTextAttr | ( | sal_Int32 | nSwPos | ) | const |
Definition at line 764 of file wrtw8nds.cxx.
References SwTextNode::GetpSwpHints(), SwTextAttr::GetStart(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), i, and m_rNode.
Referenced by MSWordExportBase::OutputTextNode().
bool SwWW8AttrIter::IsWatermarkFrame | ( | ) |
Definition at line 605 of file wrtw8nds.cxx.
References SdrObject::GetName(), maFlyFrames, and maFlyIter.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 195 of file wrtw8nds.cxx.
References maCharRunIter, maCharRuns, mbCharIsRTL, meChrSet, and mnScript.
Referenced by SearchNext(), SplitRun(), and SwWW8AttrIter().
|
inline |
Definition at line 1554 of file wrtww8.hxx.
References m_nCurrentSwPos, SAL_MAX_INT32, and SearchNext().
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField(), and MSWordExportBase::UpdatePosition().
|
privatedelete |
void SwWW8AttrIter::OutAttr | ( | sal_Int32 | nSwPos, |
bool | bWriteCombinedChars | ||
) |
Definition at line 398 of file wrtw8nds.cxx.
References MSWordExportBase::AttrOutput(), sw::util::ClearOverridesFromSet(), SwTextAttr::End(), MSWordExportBase::ExportPoolItemsToCHP(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SwContentNode::GetAnyFormatColl(), SwTextAttr::GetAttr(), SfxWhichIter::GetItemState(), SwAttrSet::GetPool(), sw::util::GetPoolItems(), SwTextNode::GetpSwpHints(), GetScript(), SwTextAttr::GetStart(), SwFormatAutoFormat::GetStyleHandle(), SwContentNode::GetSwAttrSet(), GetWhichOfScript(), handleToggleProperty(), SwContentNode::HasSwAttrSet(), i, MSWordExportBase::m_aCurrentCharPropStarts, MSWordExportBase::m_pOutFormatNode, MSWordAttrIter::m_rExport, m_rNode, mbCharIsRTL, SfxWhichIter::NextWhich(), AttributeOutputBase::OutputItem(), RES_CHRATR_BEGIN(), RES_CHRATR_FONT(), RES_CHRATR_GRABBAG(), RES_CHRATR_WEIGHT(), RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), RES_TXTATR_END(), AttributeOutputBase::RTLAndCJKState(), MSWordExportBase::SetCurItemSet(), WEIGHT_BOLD, and SfxPoolItem::Which().
Referenced by DocxAttributeOutput::DoWriteFieldRunProperties(), and MSWordExportBase::OutputTextNode().
int SwWW8AttrIter::OutAttrWithRange | ( | const SwTextNode & | rNode, |
sal_Int32 | nPos | ||
) |
Definition at line 1374 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, m_rNode, nPos, OutSwFormatRefMark(), RES_TXTATR_CJK_RUBY(), RES_TXTATR_INETFMT(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), AttributeOutputBase::StartRuby(), AttributeOutputBase::StartURL(), AttributeOutputBase::TOXMark(), and SfxPoolItem::Which().
Referenced by MSWordExportBase::OutputTextNode().
FlyProcessingState SwWW8AttrIter::OutFlys | ( | sal_Int32 | nSwPos | ) |
Definition at line 651 of file wrtw8nds.cxx.
References MSWordExportBase::AttrOutput(), SwFrameFormat::FindRealSdrObject(), FLY_NONE, FLY_NOT_PROCESSED, FLY_POSTPONED, FLY_PROCESSED, SwPosition::GetContentIndex(), ww8::Frame::GetFrameFormat(), SdrObject::GetName(), AttributeOutputBase::IsFlyProcessingPostponed(), lcl_getLinkChainName(), MSWordExportBase::m_aLinkedTextboxesHelper, MSWordExportBase::m_bLinkedTextboxesHelperInitialized, MSWordExportBase::m_nTextTyp, MSWordAttrIter::m_rExport, maFlyFrames, maFlyIter, nPos, AttributeOutputBase::OutputFlyFrame(), MSWordExportBase::LinkedTextboxInfo::sNextChain, MSWordExportBase::LinkedTextboxInfo::sPrevChain, and TXT_HDFT.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 1248 of file wrtw8nds.cxx.
References MSWordExportBase::AppendBookmark(), MSWordExportBase::GetBookmarkName(), SwFormatRefMark::GetRefName(), MSWordExportBase::HasRefToAttr(), MSWordAttrIter::m_rExport, and REF_SETREFATTR.
Referenced by OutAttrWithRange().
bool SwWW8AttrIter::RequiresImplicitBookmark | ( | ) |
Definition at line 832 of file wrtw8nds.cxx.
References MSWordExportBase::m_aImplicitBookmarks, and MSWordAttrIter::m_rExport.
Referenced by MSWordExportBase::OutputTextNode().
|
private |
Definition at line 261 of file wrtw8nds.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, SwPaM::End(), SwTextAttr::End(), SwFormatDrop::GetChars(), SwPosition::GetContentIndex(), SwTextNode::GetDropLen(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), SwTextNode::GetpSwpHints(), IDocumentRedlineAccess::GetRedlineTable(), SwTextAttr::GetStart(), SwTextNode::GetText(), SwFormatDrop::GetWholeWord(), SwTextAttr::HasDummyChar(), i, IterToCurrent(), lcl_getMinPos(), m_nCurRedlinePos, m_pCurRedline, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, m_rNode, maCharRunIter, maCharRuns, maFlyFrames, maFlyIter, mrSwFormatDrop, nPos, pos, SAL_MAX_INT32, SwRedlineTable::size(), and SwPaM::StartEnd().
Referenced by NextPos(), SplitRun(), and SwWW8AttrIter().
void SwWW8AttrIter::SplitRun | ( | sal_Int32 | nSplitEndPos | ) |
Definition at line 1255 of file wrtw8nds.cxx.
References IterToCurrent(), m_nCurrentSwPos, maCharRunIter, maCharRuns, sw::util::CharRunEntry::mnEndPos, and SearchNext().
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField().
|
inline |
Definition at line 1565 of file wrtww8.hxx.
References m_nCurrentSwPos.
Referenced by AttributeOutputBase::GenerateBookmarksForSequenceField(), MSWordExportBase::GetNextPos(), and MSWordExportBase::UpdatePosition().
|
private |
Definition at line 1526 of file wrtww8.hxx.
Referenced by GetRunLevelRedline(), IncludeEndOfParaCRInRedlineProperties(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1525 of file wrtww8.hxx.
Referenced by NextPos(), SplitRun(), SwWW8AttrIter(), and WhereNext().
|
private |
Definition at line 1524 of file wrtww8.hxx.
Referenced by GetParagraphLevelRedline(), GetRunLevelRedline(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1515 of file wrtww8.hxx.
Referenced by GetItem(), GetNode(), GetParagraphLevelRedline(), GetRunLevelRedline(), handleToggleProperty(), HasTextItem(), IncludeEndOfParaCRInRedlineProperties(), IsDropCap(), IsExportableAttr(), IsTextAttr(), OutAttr(), OutAttrWithRange(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1518 of file wrtww8.hxx.
Referenced by IterToCurrent(), SearchNext(), SplitRun(), and SwWW8AttrIter().
|
private |
Definition at line 1517 of file wrtww8.hxx.
Referenced by IterToCurrent(), SearchNext(), SplitRun(), and SwWW8AttrIter().
|
private |
Definition at line 1532 of file wrtww8.hxx.
Referenced by HasFlysAt(), IsAnchorLinkedToThisNode(), IsWatermarkFrame(), OutFlys(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1533 of file wrtww8.hxx.
Referenced by IsAnchorLinkedToThisNode(), IsWatermarkFrame(), OutFlys(), SearchNext(), and SwWW8AttrIter().
|
private |
Definition at line 1522 of file wrtww8.hxx.
Referenced by IterToCurrent(), and OutAttr().
|
private |
Definition at line 1528 of file wrtww8.hxx.
Referenced by IsParaRTL(), and SwWW8AttrIter().
|
private |
Definition at line 1520 of file wrtww8.hxx.
Referenced by GetCharSet(), and IterToCurrent().
|
private |
Definition at line 1521 of file wrtww8.hxx.
Referenced by GetScript(), and IterToCurrent().
|
private |
Definition at line 1530 of file wrtww8.hxx.
Referenced by GetSwFormatDrop(), IsDropCap(), and SearchNext().