LibreOffice Module sw (master)
1
|
Used to export formatted text associated to drawings. More...
#include <wrtww8.hxx>
Public Member Functions | |
MSWord_SdrAttrIter (MSWordExportBase &rWr, const EditTextObject &rEditObj, sal_uInt8 nType) | |
void | NextPara (sal_Int32 nPar) |
void | OutParaAttr (bool bCharAttr, const std::set< sal_uInt16 > *pWhichsToIgnore=nullptr) |
void | OutEEField (const SfxPoolItem &rHt) |
bool | IsTextAttr (sal_Int32 nSwPos) |
void | NextPos () |
void | OutAttr (sal_Int32 nSwPos) |
virtual const SfxPoolItem * | HasTextItem (sal_uInt16 nWhich) const override |
virtual const SfxPoolItem & | GetItem (sal_uInt16 nWhich) const override |
sal_Int32 | WhereNext () const |
rtl_TextEncoding | GetNextCharSet () const |
rtl_TextEncoding | GetNodeCharSet () const |
![]() | |
MSWordAttrIter (MSWordExportBase &rExport) | |
virtual | ~MSWordAttrIter () |
Private Member Functions | |
sal_Int32 | SearchNext (sal_Int32 nStartPos) |
void | SetCharSet (const EECharAttrib &rTextAttr, bool bStart) |
void | SetItemsThatDifferFromStandard (bool bCharAttr, SfxItemSet &rSet) |
MSWord_SdrAttrIter (const MSWord_SdrAttrIter &)=delete | |
MSWord_SdrAttrIter & | operator= (const MSWord_SdrAttrIter &)=delete |
Private Attributes | |
const EditTextObject * | pEditObj |
const SfxItemPool * | pEditPool |
std::vector< EECharAttrib > | aTextAtrArr |
std::vector< const EECharAttrib * > | aChrTextAtrArr |
std::vector< rtl_TextEncoding > | aChrSetArr |
sal_Int32 | nPara |
sal_Int32 | nCurrentSwPos |
sal_Int32 | nTmpSwPos |
rtl_TextEncoding | eNdChrSet |
sal_uInt16 | nScript |
sal_uInt8 | mnTyp |
Additional Inherited Members | |
![]() | |
MSWordExportBase & | m_rExport |
Used to export formatted text associated to drawings.
Definition at line 1446 of file wrtww8.hxx.
|
privatedelete |
MSWord_SdrAttrIter::MSWord_SdrAttrIter | ( | MSWordExportBase & | rWr, |
const EditTextObject & | rEditObj, | ||
sal_uInt8 | nType | ||
) |
Definition at line 1014 of file wrtw8esh.cxx.
References NextPara().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 1228 of file wrtw8esh.cxx.
References EditTextObject::GetParaAttribs(), sw::hack::GetSetWhichFromSwDocWhich(), HasTextItem(), MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, nPara, and pEditObj.
rtl_TextEncoding MSWord_SdrAttrIter::GetNextCharSet | ( | ) | const |
Definition at line 1041 of file wrtw8esh.cxx.
References aChrSetArr, and eNdChrSet.
Referenced by RtfSdrExport::WriteOutliner(), and DocxExport::WriteOutliner().
|
inline |
Definition at line 1484 of file wrtww8.hxx.
References eNdChrSet.
Referenced by OutEEField(), RtfSdrExport::WriteOutliner(), and DocxExport::WriteOutliner().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 1211 of file wrtw8esh.cxx.
References aTextAtrArr, SwDoc::GetAttrPool(), if(), MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, nTmpSwPos, pEditPool, and sw::hack::TransformWhichBetweenPools().
Referenced by GetItem().
bool MSWord_SdrAttrIter::IsTextAttr | ( | sal_Int32 | nSwPos | ) |
Definition at line 1195 of file wrtw8esh.cxx.
References aTextAtrArr, EE_FEATURE_FIELD(), and EE_FEATURE_TAB().
Referenced by RtfSdrExport::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
void MSWord_SdrAttrIter::NextPara | ( | sal_Int32 | nPar | ) |
Definition at line 1021 of file wrtw8esh.cxx.
References aChrSetArr, aChrTextAtrArr, assert(), aTextAtrArr, EE_CHAR_FONTINFO(), eNdChrSet, g_pBreakIt, SwBreakIt::GetBreakIter(), EditTextObject::GetCharAttribs(), EditTextObject::GetParaAttribs(), EditTextObject::GetText(), nCurrentSwPos, nPara, nScript, nTmpSwPos, pEditObj, pEditPool, and SearchNext().
Referenced by MSWord_SdrAttrIter(), RtfSdrExport::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
|
inline |
Definition at line 1477 of file wrtww8.hxx.
References SAL_MAX_INT32, and SearchNext().
Referenced by RtfSdrExport::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
|
privatedelete |
void MSWord_SdrAttrIter::OutAttr | ( | sal_Int32 | nSwPos | ) |
Definition at line 1115 of file wrtw8esh.cxx.
References aTextAtrArr, MSWordExportBase::AttrOutput(), MSWordExportBase::CollapseScriptsforWordOk(), EE_FEATURE_FIELD(), EE_FEATURE_TAB(), SwDoc::GetAttrPool(), SfxItemPool::GetSlotId(), SfxItemPool::GetWhich(), MSWordExportBase::m_bFontSizeWritten, MSWordExportBase::m_pOutFormatNode, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, nScript, nTmpSwPos, OutEEField(), OutParaAttr(), AttributeOutputBase::OutputItem(), pEditPool, RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_FONTSIZE(), RES_UNKNOWNATR_BEGIN(), and MSWordExportBase::WriteChar().
Referenced by RtfSdrExport::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
void MSWord_SdrAttrIter::OutEEField | ( | const SfxPoolItem & | rHt | ) |
Definition at line 1097 of file wrtw8esh.cxx.
References MSWordExportBase::AttrOutput(), AttributeOutputBase::EndURL(), SvxFieldItem::GetField(), GetNodeCharSet(), MSWordExportBase::m_nTextTyp, MSWordAttrIter::m_rExport, mnTyp, AttributeOutputBase::RawText(), and AttributeOutputBase::StartURL().
Referenced by OutAttr().
void MSWord_SdrAttrIter::OutParaAttr | ( | bool | bCharAttr, |
const std::set< sal_uInt16 > * | pWhichsToIgnore = nullptr |
||
) |
Definition at line 1272 of file wrtw8esh.cxx.
References MSWordExportBase::AttrOutput(), SfxPoolItem::Clone(), MSWordExportBase::CollapseScriptsforWordOk(), SwDoc::GetAttrPool(), SfxItemIter::GetCurItem(), MSWordExportBase::GetCurItemSet(), EditTextObject::GetParaAttribs(), SfxItemPool::GetSlotId(), MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, SfxItemIter::NextItem(), nPara, nScript, AttributeOutputBase::OutputItem(), pEditObj, pEditPool, RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_PARATR_BEGIN(), RES_TXTATR_END(), MSWordExportBase::SetCurItemSet(), SetItemsThatDifferFromStandard(), and SfxPoolItem::Which().
Referenced by OutAttr(), RtfSdrExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
|
private |
Definition at line 1049 of file wrtw8esh.cxx.
References aTextAtrArr, nPos, SAL_MAX_INT32, and SetCharSet().
Referenced by NextPara(), and NextPos().
|
private |
Definition at line 1071 of file wrtw8esh.cxx.
References aChrSetArr, aChrTextAtrArr, EE_CHAR_FONTINFO(), EECharAttrib::pAttr, and SfxPoolItem::Which().
Referenced by SearchNext().
|
private |
Definition at line 1245 of file wrtw8esh.cxx.
References SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SwDoc::GetAttrPool(), SwFormat::GetFormatAttr(), SwDoc::getIDocumentStylePoolAccess(), SfxItemSet::GetItemState(), IDocumentStylePoolAccess::GetTextCollFromPool(), MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, SfxWhichIter::NextWhich(), pEditPool, SfxItemSet::Put(), RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_PARATR_BEGIN(), RES_POOLCOLL_STANDARD, RES_TXTATR_END(), and sw::hack::TransformWhichBetweenPools().
Referenced by OutParaAttr().
|
inline |
Definition at line 1482 of file wrtww8.hxx.
References nCurrentSwPos.
Referenced by RtfSdrExport::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and WW8Export::WriteOutliner().
|
private |
Definition at line 1453 of file wrtww8.hxx.
Referenced by GetNextCharSet(), NextPara(), and SetCharSet().
|
private |
Definition at line 1452 of file wrtww8.hxx.
Referenced by NextPara(), and SetCharSet().
|
private |
Definition at line 1451 of file wrtww8.hxx.
Referenced by HasTextItem(), IsTextAttr(), NextPara(), OutAttr(), and SearchNext().
|
private |
Definition at line 1457 of file wrtww8.hxx.
Referenced by GetNextCharSet(), GetNodeCharSet(), and NextPara().
|
private |
Definition at line 1459 of file wrtww8.hxx.
Referenced by OutEEField().
|
private |
Definition at line 1455 of file wrtww8.hxx.
Referenced by NextPara(), and WhereNext().
|
private |
Definition at line 1454 of file wrtww8.hxx.
Referenced by GetItem(), NextPara(), and OutParaAttr().
|
private |
Definition at line 1458 of file wrtww8.hxx.
Referenced by NextPara(), OutAttr(), and OutParaAttr().
|
private |
Definition at line 1456 of file wrtww8.hxx.
Referenced by HasTextItem(), NextPara(), and OutAttr().
|
private |
Definition at line 1449 of file wrtww8.hxx.
Referenced by GetItem(), NextPara(), and OutParaAttr().
|
private |
Definition at line 1450 of file wrtww8.hxx.
Referenced by HasTextItem(), NextPara(), OutAttr(), OutParaAttr(), and SetItemsThatDifferFromStandard().