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 |
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 | 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 * | m_pEditObj |
const SfxItemPool * | m_pEditPool |
std::vector< EECharAttrib > | m_aTextAtrArr |
std::vector< const EECharAttrib * > | m_aChrTextAtrArr |
std::vector< rtl_TextEncoding > | m_aChrSetArr |
sal_Int32 | m_nPara |
sal_Int32 | m_nCurrentSwPos |
sal_Int32 | m_nTmpSwPos |
rtl_TextEncoding | m_eNdChrSet |
sal_uInt16 | m_nScript |
sal_uInt8 | mnTyp |
Additional Inherited Members | |
Protected Attributes inherited from MSWordAttrIter | |
MSWordExportBase & | m_rExport |
Used to export formatted text associated to drawings.
Definition at line 1464 of file wrtww8.hxx.
|
privatedelete |
MSWord_SdrAttrIter::MSWord_SdrAttrIter | ( | MSWordExportBase & | rWr, |
const EditTextObject & | rEditObj, | ||
sal_uInt8 | nType | ||
) |
Definition at line 1007 of file wrtw8esh.cxx.
References NextPara().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 1227 of file wrtw8esh.cxx.
References SfxItemSet::Get(), EditTextObject::GetParaAttribs(), sw::hack::GetSetWhichFromSwDocWhich(), HasTextItem(), m_nPara, m_pEditObj, MSWordExportBase::m_rDoc, and MSWordAttrIter::m_rExport.
rtl_TextEncoding MSWord_SdrAttrIter::GetNextCharSet | ( | ) | const |
Definition at line 1034 of file wrtw8esh.cxx.
References m_aChrSetArr, and m_eNdChrSet.
Referenced by DocxExport::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
inline |
Definition at line 1502 of file wrtww8.hxx.
References m_eNdChrSet.
Referenced by OutEEField(), DocxExport::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
overridevirtual |
Implements MSWordAttrIter.
Definition at line 1210 of file wrtw8esh.cxx.
References SwDoc::GetAttrPool(), m_aTextAtrArr, m_nTmpSwPos, m_pEditPool, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, and sw::hack::TransformWhichBetweenPools().
Referenced by GetItem().
bool MSWord_SdrAttrIter::IsTextAttr | ( | sal_Int32 | nSwPos | ) |
Definition at line 1194 of file wrtw8esh.cxx.
References m_aTextAtrArr.
Referenced by WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
void MSWord_SdrAttrIter::NextPara | ( | sal_Int32 | nPar | ) |
Definition at line 1014 of file wrtw8esh.cxx.
References EE_CHAR_FONTINFO(), g_pBreakIt, SfxItemSet::Get(), SwBreakIt::GetBreakIter(), EditTextObject::GetCharAttribs(), EditTextObject::GetParaAttribs(), SfxItemSet::GetPool(), EditTextObject::GetText(), m_aChrSetArr, m_aChrTextAtrArr, m_aTextAtrArr, m_eNdChrSet, m_nCurrentSwPos, m_nPara, m_nScript, m_nTmpSwPos, m_pEditObj, m_pEditPool, and SearchNext().
Referenced by MSWord_SdrAttrIter(), WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
inline |
Definition at line 1495 of file wrtww8.hxx.
References m_nCurrentSwPos, SAL_MAX_INT32, and SearchNext().
Referenced by WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
privatedelete |
void MSWord_SdrAttrIter::OutAttr | ( | sal_Int32 | nSwPos | ) |
Definition at line 1108 of file wrtw8esh.cxx.
References MSWordExportBase::AttrOutput(), MSWordExportBase::CollapseScriptsforWordOk(), EE_CHAR_BKGCOLOR(), EE_FEATURE_FIELD(), EE_FEATURE_TAB(), SwDoc::GetAttrPool(), SfxItemPool::GetSlotId(), SvxColorItem::GetValue(), SfxItemPool::GetWhich(), m_aTextAtrArr, MSWordExportBase::m_bFontSizeWritten, m_nScript, m_nTmpSwPos, m_pEditPool, MSWordExportBase::m_pOutFormatNode, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, OutEEField(), OutParaAttr(), AttributeOutputBase::OutputItem(), RES_CHRATR_BACKGROUND(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_FONTSIZE(), RES_UNKNOWNATR_BEGIN(), and MSWordExportBase::WriteChar().
Referenced by WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
void MSWord_SdrAttrIter::OutEEField | ( | const SfxPoolItem & | rHt | ) |
Definition at line 1090 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 1271 of file wrtw8esh.cxx.
References MSWordExportBase::AttrOutput(), SfxPoolItem::Clone(), MSWordExportBase::CollapseScriptsforWordOk(), SfxItemSet::Count(), SwDoc::GetAttrPool(), SfxItemIter::GetCurItem(), MSWordExportBase::GetCurItemSet(), EditTextObject::GetParaAttribs(), SfxItemPool::GetSlotId(), m_nPara, m_nScript, m_pEditObj, m_pEditPool, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, SfxItemIter::NextItem(), AttributeOutputBase::OutputItem(), RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_PARATR_BEGIN(), RES_TXTATR_END(), MSWordExportBase::SetCurItemSet(), SetItemsThatDifferFromStandard(), and SfxPoolItem::Which().
Referenced by OutAttr(), WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
private |
Definition at line 1042 of file wrtw8esh.cxx.
References m_aTextAtrArr, nPos, SAL_MAX_INT32, and SetCharSet().
Referenced by NextPara(), and NextPos().
|
private |
Definition at line 1064 of file wrtw8esh.cxx.
References EE_CHAR_FONTINFO(), m_aChrSetArr, m_aChrTextAtrArr, EECharAttrib::pAttr, and SfxPoolItem::Which().
Referenced by SearchNext().
|
private |
Definition at line 1244 of file wrtw8esh.cxx.
References SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SwDoc::GetAttrPool(), SwFormat::GetFormatAttr(), SwDoc::getIDocumentStylePoolAccess(), SfxWhichIter::GetItemState(), IDocumentStylePoolAccess::GetTextCollFromPool(), m_pEditPool, MSWordExportBase::m_rDoc, MSWordAttrIter::m_rExport, SfxWhichIter::NextWhich(), SfxItemSet::Put(), RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_PARATR_BEGIN(), RES_POOLCOLL_STANDARD, RES_TXTATR_END(), rSet, and sw::hack::TransformWhichBetweenPools().
Referenced by OutParaAttr().
|
inline |
Definition at line 1500 of file wrtww8.hxx.
References m_nCurrentSwPos.
Referenced by WW8Export::WriteOutliner(), DocxExport::WriteOutliner(), DocxAttributeOutput::WriteOutliner(), and RtfSdrExport::WriteOutliner().
|
private |
Definition at line 1471 of file wrtww8.hxx.
Referenced by GetNextCharSet(), NextPara(), and SetCharSet().
|
private |
Definition at line 1470 of file wrtww8.hxx.
Referenced by NextPara(), and SetCharSet().
|
private |
Definition at line 1469 of file wrtww8.hxx.
Referenced by HasTextItem(), IsTextAttr(), NextPara(), OutAttr(), and SearchNext().
|
private |
Definition at line 1475 of file wrtww8.hxx.
Referenced by GetNextCharSet(), GetNodeCharSet(), and NextPara().
|
private |
Definition at line 1473 of file wrtww8.hxx.
Referenced by NextPara(), NextPos(), and WhereNext().
|
private |
Definition at line 1472 of file wrtww8.hxx.
Referenced by GetItem(), NextPara(), and OutParaAttr().
|
private |
Definition at line 1476 of file wrtww8.hxx.
Referenced by NextPara(), OutAttr(), and OutParaAttr().
|
private |
Definition at line 1474 of file wrtww8.hxx.
Referenced by HasTextItem(), NextPara(), and OutAttr().
|
private |
Definition at line 1467 of file wrtww8.hxx.
Referenced by GetItem(), NextPara(), and OutParaAttr().
|
private |
Definition at line 1468 of file wrtww8.hxx.
Referenced by HasTextItem(), NextPara(), OutAttr(), OutParaAttr(), and SetItemsThatDifferFromStandard().
|
private |
Definition at line 1477 of file wrtww8.hxx.
Referenced by OutEEField().