LibreOffice Module sw (master) 1
|
#include <tox.hxx>
Public Member Functions | |
SwTOXMark (const SwTOXType *pTyp) | |
virtual | ~SwTOXMark () override |
SwTOXMark (const SwTOXMark &rCopy) | |
SwTOXMark & | operator= (const SwTOXMark &rCopy) |
virtual bool | operator== (const SfxPoolItem &) const override |
virtual SwTOXMark * | Clone (SfxItemPool *pPool=nullptr) const override |
void | InvalidateTOXMark () |
OUString | GetText (SwRootFrame const *pLayout) const |
bool | IsAlternativeText () const |
const OUString & | GetAlternativeText () const |
void | SetAlternativeText (const OUString &rAlt) |
void | SetLevel (sal_uInt16 nLevel) |
sal_uInt16 | GetLevel () const |
void | SetBookmarkName (const OUString &bName) |
const OUString & | GetBookmarkName () const |
void | SetPrimaryKey (const OUString &rStr) |
void | SetSecondaryKey (const OUString &rStr) |
void | SetTextReading (const OUString &rStr) |
void | SetPrimaryKeyReading (const OUString &rStr) |
void | SetSecondaryKeyReading (const OUString &rStr) |
OUString const & | GetPrimaryKey () const |
OUString const & | GetSecondaryKey () const |
OUString const & | GetTextReading () const |
OUString const & | GetPrimaryKeyReading () const |
OUString const & | GetSecondaryKeyReading () const |
bool | IsAutoGenerated () const |
void | SetAutoGenerated (bool bSet) |
bool | IsMainEntry () const |
void | SetMainEntry (bool bSet) |
const SwTOXType * | GetTOXType () const |
const SwTextTOXMark * | GetTextTOXMark () const |
SwTextTOXMark * | GetTextTOXMark () |
SAL_DLLPRIVATE unotools::WeakReference< SwXDocumentIndexMark > const & | GetXTOXMark () const |
SAL_DLLPRIVATE void | SetXTOXMark (rtl::Reference< SwXDocumentIndexMark > const &xMark) |
void | RegisterToTOXType (SwTOXType &rMark) |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Public Member Functions inherited from SvtListener | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
Static Public Attributes | |
static constexpr OUStringLiteral | S_PAGE_DELI = u", " |
Private Member Functions | |
SwTOXMark () | |
pool default constructor More... | |
virtual void | Notify (const SfxHint &rHint) override |
Private Attributes | |
const SwTOXType * | m_pType |
OUString | m_aAltText |
OUString | m_aPrimaryKey |
OUString | m_aSecondaryKey |
OUString | m_aTextReading |
OUString | m_aPrimaryKeyReading |
OUString | m_aSecondaryKeyReading |
SwTextTOXMark * | m_pTextAttr |
sal_uInt16 | m_nLevel |
OUString | m_aBookmarkName |
bool | m_bAutoGenerated |
bool | m_bMainEntry |
unotools::WeakReference< SwXDocumentIndexMark > | m_wXDocumentIndexMark |
Friends | |
class | SwTextTOXMark |
void | InitCore () |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
|
private |
|
explicit |
Definition at line 103 of file tox.cxx.
References m_nLevel, m_pType, and SvtListener::StartListening().
SwTOXMark::SwTOXMark | ( | const SwTOXMark & | rCopy | ) |
Definition at line 114 of file tox.cxx.
References m_aAltText, m_nLevel, m_pType, and SvtListener::StartListening().
|
overridevirtual |
|
inline |
Definition at line 570 of file tox.hxx.
References m_aAltText.
Referenced by SwCursorShell::GetContentAtPos(), SwTOXContent::GetText_Impl(), SwXDocumentIndexMark::Impl::InsertTOXMark(), SwHistorySetTOXMark::IsEqual(), SwTextTOXMark::SwTextTOXMark(), and AttributeOutputBase::TOXMark().
|
inline |
Definition at line 573 of file tox.hxx.
References m_aBookmarkName.
|
inline |
Definition at line 628 of file tox.hxx.
References GetTOXType(), m_nLevel, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXContent::GetLevel(), SwHistorySetTOXMark::IsEqual(), AttributeOutputBase::TOXMark(), and SwIndexMarkPane::UpdateDialog().
|
inline |
Definition at line 634 of file tox.hxx.
References GetTOXType(), m_aPrimaryKey, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXIndex::GetLevel(), SwTOXIndex::GetText_Impl(), SwDoc::GetTOIKeys(), SwTOXBaseSection::InsertSorted(), SwHistorySetTOXMark::IsEqual(), AttributeOutputBase::TOXMark(), SwTOXBaseSection::Update(), SwIndexMarkPane::UpdateDialog(), and SwTOXBaseSection::UpdatePageNum().
|
inline |
Definition at line 652 of file tox.hxx.
References GetTOXType(), m_aPrimaryKeyReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXIndex::GetText_Impl(), SwTOXBaseSection::InsertSorted(), and SwIndexMarkPane::UpdateDialog().
|
inline |
Definition at line 640 of file tox.hxx.
References GetTOXType(), m_aSecondaryKey, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXIndex::GetLevel(), SwTOXIndex::GetText_Impl(), SwDoc::GetTOIKeys(), SwTOXBaseSection::InsertSorted(), SwHistorySetTOXMark::IsEqual(), AttributeOutputBase::TOXMark(), SwTOXBaseSection::Update(), SwIndexMarkPane::UpdateDialog(), and SwTOXBaseSection::UpdatePageNum().
|
inline |
Definition at line 658 of file tox.hxx.
References GetTOXType(), m_aSecondaryKeyReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXIndex::GetText_Impl(), SwTOXBaseSection::InsertSorted(), and SwIndexMarkPane::UpdateDialog().
OUString SwTOXMark::GetText | ( | SwRootFrame const * | pLayout | ) | const |
Definition at line 201 of file tox.cxx.
References SwTextTOXMark::GetEnd(), SwTextNode::GetExpandText(), SwTextTOXMark::GetpTextNd(), SwTextAttr::GetStart(), m_aAltText, and m_pTextAttr.
Referenced by SwTOXIndex::GetText_Impl(), SwTOXSortTabBase::GetURL(), SwDoc::GotoTOXMark(), SwMultiTOXMarkDlg::SwMultiTOXMarkDlg(), and SwIndexMarkPane::UpdateDialog().
|
inline |
Definition at line 646 of file tox.hxx.
References GetTOXType(), m_aTextReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwTOXIndex::GetText_Impl(), SwTOXContent::GetText_Impl(), and SwIndexMarkPane::UpdateDialog().
|
inline |
|
inline |
Definition at line 160 of file tox.hxx.
Referenced by SwDoc::DeleteTOXMark(), SwDoc::GetTOIKeys(), SwDoc::GotoTOXMark(), SwCursorShell::GotoTOXMark(), Notify(), AttributeOutputBase::TOXMark(), SwIndexMarkPane::UpdateDialog(), and SwIndexMarkPane::UpdateLanguageDependenciesForPhoneticReading().
|
inline |
Definition at line 576 of file tox.hxx.
References m_pType.
Referenced by SwTextTOXMark::CopyTOXMark(), SwXDocumentIndexMark::CreateXDocumentIndexMark(), GetLevel(), GetPrimaryKey(), GetPrimaryKeyReading(), GetSecondaryKey(), GetSecondaryKeyReading(), GetTextReading(), SwDoc::GetTOIKeys(), SwTOXSortTabBase::GetURL(), SwDoc::GotoTOXMark(), IMPL_LINK(), SwHistorySetTOXMark::IsEqual(), MakeTextAttr(), SwEditWin::MouseButtonDown(), SetLevel(), SetPrimaryKey(), SetPrimaryKeyReading(), SetSecondaryKey(), SetSecondaryKeyReading(), SetTextReading(), SwMultiTOXMarkDlg::SwMultiTOXMarkDlg(), AttributeOutputBase::TOXMark(), SwIndexMarkPane::UpdateDialog(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 163 of file tox.hxx.
Referenced by SwXDocumentIndexMark::CreateXDocumentIndexMark().
void SwTOXMark::InvalidateTOXMark | ( | ) |
Definition at line 195 of file tox.cxx.
References RES_REMOVE_UNO_OBJECT().
|
inline |
Definition at line 579 of file tox.hxx.
References m_aAltText.
Referenced by SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXContent::GetText_Impl(), SwEditShell::Insert(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 155 of file tox.hxx.
Referenced by SwTOXSortTabBase::SwTOXSortTabBase(), and SwIndexMarkPane::UpdateDialog().
|
overrideprivatevirtual |
Reimplemented from SvtListener.
Definition at line 159 of file tox.cxx.
References SfxHint::GetId(), GetTextTOXMark(), SwScriptInfo::IsInHiddenRange(), sw::IsMarkHintHidden(), sw::CollectTextMarksHint::m_rMarks, RES_REMOVE_UNO_OBJECT(), and SetXTOXMark().
|
overridevirtual |
void SwTOXMark::RegisterToTOXType | ( | SwTOXType & | rMark | ) |
Definition at line 141 of file tox.cxx.
References SvtListener::EndListeningAll(), m_pType, and SvtListener::StartListening().
Referenced by MakeTextAttr(), and SwHistorySetTOXMark::SetInDoc().
|
inline |
Definition at line 582 of file tox.hxx.
References m_aAltText.
Referenced by SwEditShell::ApplyAutoMark(), SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), SwXDocumentIndexMark::Impl::InsertTOXMark(), lcl_ImportTox(), sw::PrepareJumpToTOXMark(), SwXDocumentIndexMark::setMarkEntry(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 153 of file tox.hxx.
Referenced by SwEditShell::ApplyAutoMark().
|
inline |
Definition at line 587 of file tox.hxx.
References m_aBookmarkName.
Referenced by SwXDocumentIndexMark::setPropertyValue().
|
inline |
Definition at line 592 of file tox.hxx.
References GetTOXType(), m_nLevel, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), lcl_ImportTox(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 156 of file tox.hxx.
Referenced by SwEditShell::ApplyAutoMark(), SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 598 of file tox.hxx.
References GetTOXType(), m_aPrimaryKey, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwEditShell::ApplyAutoMark(), SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), lcl_ImportTox(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 616 of file tox.hxx.
References GetTOXType(), m_aPrimaryKeyReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 604 of file tox.hxx.
References GetTOXType(), m_aSecondaryKey, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwEditShell::ApplyAutoMark(), SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), lcl_ImportTox(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 622 of file tox.hxx.
References GetTOXType(), m_aSecondaryKeyReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
|
inline |
Definition at line 610 of file tox.hxx.
References GetTOXType(), m_aTextReading, SAL_WARN_IF, and TOX_INDEX.
Referenced by SwXDocumentIndexMark::attach(), SwTOXMgr::InsertTOXMark(), SwXDocumentIndexMark::setPropertyValue(), and SwTOXMgr::UpdateTOXMark().
void SwTOXMark::SetXTOXMark | ( | rtl::Reference< SwXDocumentIndexMark > const & | xMark | ) |
Definition at line 138 of file tox.cxx.
References m_wXDocumentIndexMark.
Referenced by SwXDocumentIndexMark::CreateXDocumentIndexMark(), and Notify().
|
friend |
|
private |
Definition at line 89 of file tox.hxx.
Referenced by GetAlternativeText(), GetText(), IsAlternativeText(), SetAlternativeText(), and SwTOXMark().
|
private |
Definition at line 101 of file tox.hxx.
Referenced by GetBookmarkName(), and SetBookmarkName().
|
private |
Definition at line 90 of file tox.hxx.
Referenced by GetPrimaryKey(), and SetPrimaryKey().
|
private |
Definition at line 95 of file tox.hxx.
Referenced by GetPrimaryKeyReading(), and SetPrimaryKeyReading().
|
private |
Definition at line 91 of file tox.hxx.
Referenced by GetSecondaryKey(), and SetSecondaryKey().
|
private |
Definition at line 96 of file tox.hxx.
Referenced by GetSecondaryKeyReading(), and SetSecondaryKeyReading().
|
private |
Definition at line 94 of file tox.hxx.
Referenced by GetTextReading(), and SetTextReading().
|
private |
Definition at line 100 of file tox.hxx.
Referenced by GetLevel(), and SetLevel().
|
private |
Definition at line 98 of file tox.hxx.
Referenced by GetText(), and SwTextTOXMark::SwTextTOXMark().
|
private |
Definition at line 88 of file tox.hxx.
Referenced by GetTOXType(), operator==(), RegisterToTOXType(), and SwTOXMark().
|
private |
Definition at line 105 of file tox.hxx.
Referenced by SetXTOXMark().
|
staticconstexpr |
Definition at line 169 of file tox.hxx.
Referenced by sw::ToxTextGenerator::ConstructPageNumberPlaceholder(), and SwTOXBaseSection::UpdatePageNum_().