27#include <osl/diagnose.h>
68 "invalid InsertTOCMark level");
103 "invalid InsertTOCMark level");
144 m_pSh->SwEditShell::Insert(*pMark);
206 m_pSh->SwEditShell::Insert( aCpy );
225 for(sal_uInt16
i=0;
i < nSize; ++
i)
285 if(!pCurTOX || (ppBase && !(*ppBase)))
288 SwForm aForm(eCurTOXType);
299 if(!pCurTOX || (ppBase && !(*ppBase)))
302 SwForm aForm(eCurTOXType);
311 if(!pCurTOX || (ppBase && !(*ppBase)))
324 SwForm aForm(eCurTOXType);
354 if (rBrackets.isEmpty())
360 assert(rBrackets.getLength() == 2);
376 if(!pCurTOX || (ppBase && !(*ppBase)))
379 SwForm aForm(eCurTOXType);
397 OSL_ENSURE(pNewTOX,
"no TOXBase created!" );
406 for(sal_uInt16 nLevel = 0; nLevel <
MAXLEVEL; nLevel++)
416 if(!pCurTOX || (ppBase && !(*ppBase)) )
void SetSequence(bool bSet)
void SetLanguage(LanguageType nLang)
void SetSortByDocument(bool bSet)
void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[])
void SetPreSuffix(sal_Unicode cPre, sal_Unicode cSuf)
void SetSortAlgorithm(const OUString &rSet)
const SwTOXMark & GotoTOXMark(const SwTOXMark &rStart, SwTOXSearch eDir)
traveling between marks
IDocumentUndoRedo & GetIDocumentUndoRedo()
void ChangeTOX(SwTOXBase &rTOX, const SwTOXBase &rNew)
const SwTOXBase * GetCurTOX() const
Get current listing before or at the Cursor.
void StartAllAction()
For all views of this document.
void InsertTOXType(const SwTOXType &rTyp)
sal_uInt16 GetTOXTypeCount(TOXTypes eTyp) const
Manage types of content tables.
SwFieldType * GetFieldType(size_t nField, SwFieldIds nResId=SwFieldIds::Unknown) const
get field types with a ResId, if 0 get all
SwFieldType * InsertFieldType(const SwFieldType &)
insert field type
void DeleteTOXMark(SwTOXMark const *pMark)
const SwTOXType * GetTOXType(TOXTypes eTyp, sal_uInt16 nId) const
void SetTOIAutoMarkURL(const OUString &rSet)
void GetCurTOXMarks(SwTOXMarks &rMarks) const
Get all marks at current SPoint.
virtual void UpdateFields()
void SetMainEntryCharStyle(const OUString &rSet)
void SetOptions(SwTOIOptions nOpt)
void SetStyleNames(const OUString &rSet, sal_uInt16 nLevel)
void SetTOXForm(const SwForm &rForm)
void SetProtected(bool bSet)
void EnableKeepExpression()
void SetOLEOptions(SwTOOElements nOpt)
void SetLevelFromChapter(bool bSet)
void SetSortAlgorithm(const OUString &rSet)
void DisableKeepExpression()
void SetLanguage(LanguageType nLang)
void SetCreate(SwTOXElement)
void SetCaptionDisplay(SwCaptionDisplay eSet)
void SetSequenceName(const OUString &rSet)
void SetFromObjectNames(bool bSet)
void SetTitle(const OUString &rTitle)
void SetFromChapter(bool bSet)
void SetLevel(sal_uInt16)
const OUString & GetSortAlgorithm() const
const SwForm * GetForm() const
LanguageType GetLanguage() const
OUString m_sSortAlgorithm
SwTOXElement GetContentOptions() const
bool IsFromChapter() const
sal_uInt8 GetLevel() const
bool IsCreateFromObjectNames() const
void SetSortKeys(SwTOXSortKey eKey1, SwTOXSortKey eKey2, SwTOXSortKey eKey3)
SwTOIOptions GetIndexOptions() const
SwCaptionDisplay GetCaptionDisplay() const
std::optional< OUString > const & GetTOUName() const
const OUString & GetSequenceName() const
const SwTOXSortKey & GetSortKey3() const
const OUString & GetStyleNames(sal_uInt16 nLvl) const
const OUString & GetAutoMarkURL() const
void ApplyTo(SwTOXBase &rTOXBase)
const SwTOXSortKey & GetSortKey1() const
std::optional< OUString > const & GetTitle() const
const SwTOXSortKey & GetSortKey2() const
const OUString & GetAuthBrackets() const
TOXTypes GetTOXType() const
bool IsSortByDocument() const
bool IsLevelFromChapter() const
const OUString & GetMainEntryCharStyle() const
bool IsAuthSequence() const
SwTOOElements GetOLEOptions() const
std::optional< OUString > const & GetPhoneticReadingOfAltStr() const
TOXTypes GetTOXType() const
std::optional< OUString > const & GetAltStr() const
std::optional< OUString > const & GetPhoneticReadingOfPrimKey() const
std::optional< OUString > const & GetTOUName() const
std::optional< OUString > const & GetPhoneticReadingOfSecKey() const
std::optional< OUString > const & GetPrimKey() const
std::optional< OUString > const & GetSecKey() const
void SetAlternativeText(const OUString &rAlt)
const SwTOXType * GetTOXType() const
void SetTextReading(const OUString &rStr)
void SetSecondaryKey(const OUString &rStr)
bool IsAlternativeText() const
void SetPrimaryKeyReading(const OUString &rStr)
void SetSecondaryKeyReading(const OUString &rStr)
void SetMainEntry(bool bSet)
void SetPrimaryKey(const OUString &rStr)
void SetLevel(sal_uInt16 nLevel)
SwTOXMark * m_pCurTOXMark
void PrevTOXMark(bool bSame=false)
bool UpdateOrInsertTOX(const SwTOXDescription &rDesc, SwTOXBase **ppBase, const SfxItemSet *pSet)
const SwTOXType * GetTOXType(TOXTypes eTyp) const
void SetCurTOXMark(sal_uInt16 nId)
void NextTOXMark(bool bSame=false)
SwTOXMark * GetTOXMark(sal_uInt16 nId)
void UpdateTOXMark(const SwTOXMarkDescription &rDesc)
void InsertTOXMark(const SwTOXMarkDescription &rDesc)
SAL_DLLPRIVATE sal_uInt16 GetUserTypeID(const OUString &rStr)
SwTOXMgr(SwWrtShell *pShell)
const OUString & GetTypeName() const
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
bool Left(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
void InsertTableOf(const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
void UpdateTableOf(const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
bool HasSelection() const
const SwView & GetView() const
constexpr sal_uInt8 MAXLEVEL