LibreOffice Module editeng (master) 1
|
#include <editobj2.hxx>
Public Types | |
typedef std::vector< std::unique_ptr< ContentInfo > > | ContentInfosType |
Public Member Functions | |
EditTextObjectImpl (SfxItemPool *pPool, MapUnit eDefaultMetric, bool bVertical, TextRotation eRotation, SvtScriptType eScriptType) | |
EditTextObjectImpl (const EditTextObjectImpl &r) | |
virtual | ~EditTextObjectImpl () override |
EditTextObjectImpl & | operator= (const EditTextObjectImpl &)=delete |
virtual OutlinerMode | GetUserType () const override |
virtual void | SetUserType (OutlinerMode n) override |
virtual void | NormalizeString (svl::SharedStringPool &rPool) override |
Set paragraph strings to the shared string pool. More... | |
virtual std::vector< svl::SharedString > | GetSharedStrings () const override |
virtual bool | IsEffectivelyVertical () const override |
virtual bool | GetVertical () const override |
virtual bool | IsTopToBottom () const override |
virtual void | SetVertical (bool bVert) override |
virtual void | SetRotation (TextRotation nRotation) override |
virtual TextRotation | GetRotation () const override |
virtual SvtScriptType | GetScriptType () const override |
virtual std::unique_ptr< EditTextObject > | Clone () const override |
ContentInfo * | CreateAndInsertContent () |
XEditAttribute | CreateAttrib (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd) |
void | DestroyAttrib (const XEditAttribute &rAttr) |
ContentInfosType & | GetContents () |
const ContentInfosType & | GetContents () const |
SfxItemPool * | GetPool () |
virtual const SfxItemPool * | GetPool () const override |
XParaPortionList * | GetPortionInfo () const |
void | SetPortionInfo (std::unique_ptr< XParaPortionList > pP) |
virtual sal_Int32 | GetParagraphCount () const override |
virtual OUString | GetText (sal_Int32 nParagraph) const override |
virtual void | ClearPortionInfo () override |
virtual bool | HasOnlineSpellErrors () const override |
virtual void | GetCharAttribs (sal_Int32 nPara, std::vector< EECharAttrib > &rLst) const override |
virtual bool | RemoveCharAttribs (sal_uInt16 nWhich) override |
virtual void | GetAllSections (std::vector< editeng::Section > &rAttrs) const override |
Get all text sections in this content. More... | |
virtual bool | IsFieldObject () const override |
virtual const SvxFieldItem * | GetField () const override |
virtual const SvxFieldData * | GetFieldData (sal_Int32 nPara, size_t nPos, sal_Int32 nType) const override |
virtual bool | HasField (sal_Int32 nType=css::text::textfield::Type::UNSPECIFIED) const override |
virtual const SfxItemSet & | GetParaAttribs (sal_Int32 nPara) const override |
virtual void | GetStyleSheet (sal_Int32 nPara, OUString &rName, SfxStyleFamily &eFamily) const override |
virtual void | SetStyleSheet (sal_Int32 nPara, const OUString &rName, const SfxStyleFamily &eFamily) override |
virtual bool | ChangeStyleSheets (std::u16string_view rOldName, SfxStyleFamily eOldFamily, const OUString &rNewName, SfxStyleFamily eNewFamily) override |
virtual void | ChangeStyleSheetName (SfxStyleFamily eFamily, std::u16string_view rOldName, const OUString &rNewName) override |
virtual editeng::FieldUpdater | GetFieldUpdater () override |
bool | HasMetric () const |
MapUnit | GetMetric () const |
virtual bool | operator== (const EditTextObject &rCompare) const override |
bool | Equals (const EditTextObjectImpl &rCompare, bool bComparePool) const |
virtual bool | isWrongListEqual (const EditTextObject &rCompare) const override |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from EditTextObject | |
virtual | ~EditTextObject () |
virtual void | NormalizeString (svl::SharedStringPool &rPool)=0 |
Set paragraph strings to the shared string pool. More... | |
virtual std::vector< svl::SharedString > | GetSharedStrings () const =0 |
virtual const SfxItemPool * | GetPool () const =0 |
virtual OutlinerMode | GetUserType () const =0 |
virtual void | SetUserType (OutlinerMode n)=0 |
virtual bool | IsEffectivelyVertical () const =0 |
virtual bool | GetVertical () const =0 |
virtual bool | IsTopToBottom () const =0 |
virtual void | SetVertical (bool bVertical)=0 |
virtual void | SetRotation (TextRotation nRotation)=0 |
virtual TextRotation | GetRotation () const =0 |
virtual SvtScriptType | GetScriptType () const =0 |
virtual std::unique_ptr< EditTextObject > | Clone () const =0 |
virtual sal_Int32 | GetParagraphCount () const =0 |
virtual OUString | GetText (sal_Int32 nPara) const =0 |
virtual void | ClearPortionInfo ()=0 |
virtual bool | HasOnlineSpellErrors () const =0 |
virtual void | GetCharAttribs (sal_Int32 nPara, std::vector< EECharAttrib > &rLst) const =0 |
virtual bool | RemoveCharAttribs (sal_uInt16 nWhich)=0 |
virtual void | GetAllSections (std::vector< editeng::Section > &rAttrs) const =0 |
Get all text sections in this content. More... | |
virtual bool | IsFieldObject () const =0 |
virtual const SvxFieldItem * | GetField () const =0 |
virtual const SvxFieldData * | GetFieldData (sal_Int32 nPara, size_t nPos, sal_Int32 nType) const =0 |
virtual bool | HasField (sal_Int32 nType=css::text::textfield::Type::UNSPECIFIED) const =0 |
virtual const SfxItemSet & | GetParaAttribs (sal_Int32 nPara) const =0 |
virtual void | GetStyleSheet (sal_Int32 nPara, OUString &rName, SfxStyleFamily &eFamily) const =0 |
virtual void | SetStyleSheet (sal_Int32 nPara, const OUString &rName, const SfxStyleFamily &eFamily)=0 |
virtual bool | ChangeStyleSheets (std::u16string_view rOldName, SfxStyleFamily eOldFamily, const OUString &rNewName, SfxStyleFamily eNewFamily)=0 |
virtual void | ChangeStyleSheetName (SfxStyleFamily eFamily, std::u16string_view rOldName, const OUString &rNewName)=0 |
virtual editeng::FieldUpdater | GetFieldUpdater ()=0 |
virtual bool | operator== (const EditTextObject &rCompare) const =0 |
bool | Equals (const EditTextObject &rCompare) const |
Compare, ignoring SfxItemPool pointer. More... | |
virtual bool | isWrongListEqual (const EditTextObject &rCompare) const =0 |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const =0 |
Private Member Functions | |
bool | ImpChangeStyleSheets (std::u16string_view rOldName, SfxStyleFamily eOldFamily, const OUString &rNewName, SfxStyleFamily eNewFamily) |
Private Attributes | |
ContentInfosType | maContents |
rtl::Reference< SfxItemPool > | mpPool |
std::unique_ptr< XParaPortionList > | mpPortionInfo |
OutlinerMode | meUserType |
SvtScriptType | meScriptType |
TextRotation | meRotation |
MapUnit | meMetric |
bool | mbVertical |
Definition at line 172 of file editobj2.hxx.
typedef std::vector<std::unique_ptr<ContentInfo> > EditTextObjectImpl::ContentInfosType |
Definition at line 175 of file editobj2.hxx.
EditTextObjectImpl::EditTextObjectImpl | ( | SfxItemPool * | pPool, |
MapUnit | eDefaultMetric, | ||
bool | bVertical, | ||
TextRotation | eRotation, | ||
SvtScriptType | eScriptType | ||
) |
Definition at line 275 of file editobj.cxx.
References DontKnow.
EditTextObjectImpl::EditTextObjectImpl | ( | const EditTextObjectImpl & | r | ) |
Definition at line 286 of file editobj.cxx.
References maContents, and mpPool.
|
overridevirtual |
Definition at line 301 of file editobj.cxx.
References ClearPortionInfo(), and maContents.
|
overridevirtual |
Implements EditTextObject.
Definition at line 740 of file editobj.cxx.
References ImpChangeStyleSheets().
|
overridevirtual |
Implements EditTextObject.
Definition at line 729 of file editobj.cxx.
References ClearPortionInfo(), and ImpChangeStyleSheets().
|
overridevirtual |
Implements EditTextObject.
Definition at line 413 of file editobj.cxx.
References mpPortionInfo.
Referenced by ChangeStyleSheets(), RemoveCharAttribs(), SetRotation(), SetVertical(), and ~EditTextObjectImpl().
|
overridevirtual |
Implements EditTextObject.
Definition at line 214 of file editobj.cxx.
ContentInfo * EditTextObjectImpl::CreateAndInsertContent | ( | ) |
Definition at line 388 of file editobj.cxx.
References maContents, and mpPool.
XEditAttribute EditTextObjectImpl::CreateAttrib | ( | const SfxPoolItem & | rItem, |
sal_Int32 | nStart, | ||
sal_Int32 | nEnd | ||
) |
Definition at line 377 of file editobj.cxx.
References MakeXEditAttribute(), and mpPool.
void EditTextObjectImpl::DestroyAttrib | ( | const XEditAttribute & | rAttr | ) |
Definition at line 382 of file editobj.cxx.
References XEditAttribute::GetItem(), and mpPool.
|
overridevirtual |
Implements EditTextObject.
Definition at line 224 of file editobj.cxx.
References GetParagraphCount(), i, maContents, and nCount.
bool EditTextObjectImpl::Equals | ( | const EditTextObjectImpl & | rCompare, |
bool | bComparePool | ||
) | const |
Definition at line 751 of file editobj.cxx.
References maContents, mbVertical, meMetric, meRotation, meScriptType, meUserType, and mpPool.
Referenced by EditTextObject::Equals(), and operator==().
|
overridevirtual |
Get all text sections in this content.
Sections are non-overlapping segments of text split either by paragraph boundaries or format boundaries. Each section object contains all applied formats and/or a field item.
Implements EditTextObject.
Definition at line 583 of file editobj.cxx.
References XEditAttribute::GetEnd(), XEditAttribute::GetItem(), XEditAttribute::GetStart(), ContentInfo::GetText(), editeng::Section::maAttributes, ContentInfo::maCharAttribs, maContents, and SAL_WARN.
|
overridevirtual |
Implements EditTextObject.
Definition at line 428 of file editobj.cxx.
References XEditAttribute::GetEnd(), XEditAttribute::GetItem(), XEditAttribute::GetStart(), ContentInfo::maCharAttribs, maContents, and o3tl::make_unsigned().
|
inline |
Definition at line 221 of file editobj2.hxx.
References maContents.
Referenced by ImpEditEngine::InsertTextObject(), and editeng::FieldUpdaterImpl::updateTableFields().
|
inline |
Definition at line 222 of file editobj2.hxx.
References maContents.
|
overridevirtual |
Implements EditTextObject.
Definition at line 447 of file editobj.cxx.
References EE_FEATURE_FIELD(), XEditAttribute::GetItem(), ContentInfo::GetText(), ContentInfo::maCharAttribs, maContents, and SfxPoolItem::Which().
Referenced by HasField(), and IsFieldObject().
|
overridevirtual |
Implements EditTextObject.
Definition at line 466 of file editobj.cxx.
References EE_FEATURE_FIELD(), SvxFieldData::GetClassId(), SvxFieldItem::GetField(), XEditAttribute::GetItem(), ContentInfo::maCharAttribs, maContents, o3tl::make_unsigned(), nPos, nType, and SfxPoolItem::Which().
|
inlineoverridevirtual |
Implements EditTextObject.
Definition at line 256 of file editobj2.hxx.
|
inline |
Definition at line 259 of file editobj2.hxx.
References meMetric.
Referenced by ImpEditEngine::InsertTextObject().
|
overridevirtual |
Implements EditTextObject.
Definition at line 524 of file editobj.cxx.
References ContentInfo::GetParaAttribs(), and maContents.
|
overridevirtual |
Implements EditTextObject.
Definition at line 394 of file editobj.cxx.
References EE_PARA_MAX_COUNT, maContents, and SAL_WARN.
Referenced by dumpAsXml().
|
inline |
Definition at line 223 of file editobj2.hxx.
References mpPool.
Referenced by editeng::FieldUpdaterImpl::updateTableFields().
|
inlineoverridevirtual |
|
inline |
Definition at line 225 of file editobj2.hxx.
References mpPortionInfo.
Referenced by ImpEditEngine::InsertTextObject().
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Implements EditTextObject.
Definition at line 325 of file editobj.cxx.
References ContentInfo::GetSharedString(), and maContents.
|
overridevirtual |
Implements EditTextObject.
Definition at line 686 of file editobj.cxx.
References ContentInfo::GetFamily(), ContentInfo::GetStyle(), maContents, and o3tl::make_unsigned().
|
overridevirtual |
Implements EditTextObject.
Definition at line 405 of file editobj.cxx.
References maContents, and o3tl::make_unsigned().
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements EditTextObject.
Definition at line 499 of file editobj.cxx.
References EE_FEATURE_FIELD(), SvxFieldData::GetClassId(), GetField(), XEditAttribute::GetItem(), ContentInfo::maCharAttribs, maContents, nType, and SfxPoolItem::Which().
|
inline |
Definition at line 258 of file editobj2.hxx.
References meMetric.
Referenced by ImpEditEngine::InsertTextObject().
|
overridevirtual |
|
private |
Definition at line 706 of file editobj.cxx.
References ContentInfo::GetFamily(), ContentInfo::GetStyle(), maContents, ContentInfo::SetFamily(), and ContentInfo::SetStyle().
Referenced by ChangeStyleSheetName(), and ChangeStyleSheets().
|
overridevirtual |
Implements EditTextObject.
Definition at line 337 of file editobj.cxx.
References mbVertical, meRotation, and NONE.
|
overridevirtual |
|
overridevirtual |
Implements EditTextObject.
Definition at line 343 of file editobj.cxx.
References mbVertical, meRotation, NONE, and TOPTOBOTTOM.
|
overridevirtual |
Implements EditTextObject.
Definition at line 770 of file editobj.cxx.
References maContents, and toImpl().
|
overridevirtual |
Set paragraph strings to the shared string pool.
rPool | shared string pool. |
Implements EditTextObject.
Definition at line 316 of file editobj.cxx.
References maContents, and ContentInfo::NormalizeString().
|
delete |
|
overridevirtual |
Implements EditTextObject.
Definition at line 746 of file editobj.cxx.
|
overridevirtual |
Implements EditTextObject.
Definition at line 530 of file editobj.cxx.
References ClearPortionInfo(), XEditAttribute::GetItem(), ContentInfo::maCharAttribs, maContents, mpPool, and SfxPoolItem::Which().
|
inline |
Definition at line 226 of file editobj2.hxx.
References mpPortionInfo.
|
overridevirtual |
Implements EditTextObject.
Definition at line 363 of file editobj.cxx.
References ClearPortionInfo(), and meRotation.
|
overridevirtual |
Implements EditTextObject.
Definition at line 696 of file editobj.cxx.
References maContents, o3tl::make_unsigned(), ContentInfo::SetFamily(), and ContentInfo::SetStyle().
|
overridevirtual |
Implements EditTextObject.
Definition at line 311 of file editobj.cxx.
References meUserType, and n.
|
overridevirtual |
Implements EditTextObject.
Definition at line 349 of file editobj.cxx.
References ClearPortionInfo(), and mbVertical.
|
private |
Definition at line 178 of file editobj2.hxx.
Referenced by CreateAndInsertContent(), dumpAsXml(), EditTextObjectImpl(), Equals(), GetAllSections(), GetCharAttribs(), GetContents(), GetField(), GetFieldData(), GetParaAttribs(), GetParagraphCount(), GetSharedStrings(), GetStyleSheet(), GetText(), HasField(), HasOnlineSpellErrors(), ImpChangeStyleSheets(), isWrongListEqual(), NormalizeString(), RemoveCharAttribs(), SetStyleSheet(), and ~EditTextObjectImpl().
|
private |
Definition at line 187 of file editobj2.hxx.
Referenced by Equals(), GetVertical(), IsEffectivelyVertical(), IsTopToBottom(), and SetVertical().
|
private |
Definition at line 185 of file editobj2.hxx.
Referenced by Equals(), GetMetric(), and HasMetric().
|
private |
Definition at line 184 of file editobj2.hxx.
Referenced by Equals(), GetRotation(), IsEffectivelyVertical(), IsTopToBottom(), and SetRotation().
|
private |
Definition at line 183 of file editobj2.hxx.
Referenced by Equals(), and GetScriptType().
|
private |
Definition at line 182 of file editobj2.hxx.
Referenced by Equals(), GetUserType(), and SetUserType().
|
private |
Definition at line 179 of file editobj2.hxx.
Referenced by CreateAndInsertContent(), CreateAttrib(), DestroyAttrib(), EditTextObjectImpl(), Equals(), GetPool(), and RemoveCharAttribs().
|
private |
Definition at line 180 of file editobj2.hxx.
Referenced by ClearPortionInfo(), GetPortionInfo(), and SetPortionInfo().