67 "invalid InsertTOCMark level");
72 pMark->SetAlternativeText(*rDesc.
GetAltStr());
102 "invalid InsertTOCMark level");
109 pMark->SetAlternativeText(*rDesc.
GetAltStr());
143 pSh->SwEditShell::Insert(*pMark);
205 pSh->SwEditShell::Insert( aCpy );
224 for(sal_uInt16
i=0;
i < nSize; ++
i)
284 if(!pCurTOX || (ppBase && !(*ppBase)))
287 SwForm aForm(eCurTOXType);
298 if(!pCurTOX || (ppBase && !(*ppBase)))
301 SwForm aForm(eCurTOXType);
310 if(!pCurTOX || (ppBase && !(*ppBase)))
323 SwForm aForm(eCurTOXType);
353 if (rBrackets.isEmpty())
359 assert(rBrackets.getLength() == 2);
375 if(!pCurTOX || (ppBase && !(*ppBase)))
378 SwForm aForm(eCurTOXType);
379 pNewTOX =
new SwTOXBase(
390 OSL_ENSURE(pNewTOX,
"no TOXBase created!" );
399 for(sal_uInt16 nLevel = 0; nLevel <
MAXLEVEL; nLevel++)
409 if(!pCurTOX || (ppBase && !(*ppBase)) )
430 SwTOXBase *
const pTOX =
const_cast<SwTOXBase*
>(pCurTOX);
454 aArr[nPos++] = eKey1;
456 aArr[nPos++] = eKey2;
458 aArr[nPos++] = eKey3;
SwFieldType * GetFieldType(size_t nField, SwFieldIds nResId=SwFieldIds::Unknown) const
get field types with a ResId, if 0 get all
void SetLevelFromChapter(bool bSet)
void SetLanguage(LanguageType nLang)
bool IsAlternativeText() const
SwTOXElement GetContentOptions() const
std::optional< OUString > const & GetTOUName() const
void DisableKeepExpression()
SAL_DLLPRIVATE sal_uInt16 GetUserTypeID(const OUString &rStr)
std::optional< OUString > const & GetPhoneticReadingOfSecKey() const
const SwTOXSortKey & GetSortKey2() const
void NextTOXMark(bool bSame=false)
void SetLevel(sal_uInt16 nLevel)
const OUString & GetSequenceName() const
TOXTypes GetTOXType() const
void SetSortAlgorithm(const OUString &rSet)
void SetTitle(const OUString &rTitle)
virtual SwUndoId EndUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Closes undo block.
void SetTOIAutoMarkURL(const OUString &rSet)
std::optional< OUString > const & GetSecKey() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
const SwTOXType * GetTOXType(TOXTypes eTyp) const
const SwTOXType * GetTOXType() const
void UpdateTOXMark(const SwTOXMarkDescription &rDesc)
void SetOptions(SwTOIOptions nOpt)
void SetOLEOptions(SwTOOElements nOpt)
sal_uInt16 GetTOXTypeCount(TOXTypes eTyp) const
Manage types of content tables.
void UpdateFields() const
Used by the UI to modify the document model.
void SetCreate(SwTOXElement)
void SetPreSuffix(sal_Unicode cPre, sal_Unicode cSuf)
SwCaptionDisplay GetCaptionDisplay() const
std::optional< OUString > const & GetPhoneticReadingOfPrimKey() const
const SwView & GetView() const
void DeleteTOXMark(SwTOXMark const *pMark)
SwTOIOptions GetIndexOptions() const
TOXTypes GetTOXType() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
bool IsCreateFromObjectNames() const
bool IsLevelFromChapter() const
void SetSortByDocument(bool bSet)
SwTOXMgr(SwWrtShell *pShell)
void SetSortAlgorithm(const OUString &rSet)
const SwTOXBase * GetCurTOX() const
Get current listing before or at the Cursor.
void PrevTOXMark(bool bSame=false)
void SetAlternativeText(const OUString &rAlt)
virtual bool DoesUndo() const =0
Is Undo enabled?
void UpdateTableOf(const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
bool IsAuthSequence() const
bool IsFromChapter() const
const SwTOXSortKey & GetSortKey3() const
void SetSequence(bool bSet)
virtual SwUndoId StartUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Opens undo block.
bool HasSelection() const
sal_uInt8 GetLevel() const
SwFieldType * InsertFieldType(const SwFieldType &)
insert field type
void SetPrimaryKey(const OUString &rStr)
const OUString & GetSortAlgorithm() const
void SetTextReading(const OUString &rStr)
SwTOOElements GetOLEOptions() const
SwTOXMark * GetTOXMark(sal_uInt16 nId)
void InsertTableOf(const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
void SetSequenceName(const OUString &rSet)
void SetMainEntryCharStyle(const OUString &rSet)
const OUString & GetAutoMarkURL() const
void SetCaptionDisplay(SwCaptionDisplay eSet)
void SetPrimaryKeyReading(const OUString &rStr)
void SetFromChapter(bool bSet)
const OUString & GetTypeName() const
std::optional< OUString > const & GetPhoneticReadingOfAltStr() const
void ChangeTOX(SwTOXBase &rTOX, const SwTOXBase &rNew)
void SetLanguage(LanguageType nLang)
SwDocShell * GetDocShell()
void SetTOXForm(const SwForm &rForm)
void SetCurTOXMark(sal_uInt16 nId)
void InsertTOXType(const SwTOXType &rTyp)
const OUString & GetMainEntryCharStyle() const
const SwForm * GetForm() const
std::optional< OUString > const & GetTitle() const
LanguageType GetLanguage() const
bool Left(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
const SwTOXSortKey & GetSortKey1() const
void ApplyTo(SwTOXBase &rTOXBase)
void SetStyleNames(const OUString &rSet, sal_uInt16 nLevel)
void SetSortKeys(SwTOXSortKey eKey1, SwTOXSortKey eKey2, SwTOXSortKey eKey3)
void EnableKeepExpression()
std::optional< OUString > const & GetAltStr() const
void SetSecondaryKey(const OUString &rStr)
const SwTOXType * GetTOXType(TOXTypes eTyp, sal_uInt16 nId) const
const SwTOXMark & GotoTOXMark(const SwTOXMark &rStart, SwTOXSearch eDir)
traveling between marks
void GetCurTOXMarks(SwTOXMarks &rMarks) const
Get all marks at current SPoint.
std::optional< OUString > const & GetTOUName() const
void SetProtected(bool bSet)
const sal_uInt16 CRSR_SKIP_CHARS
void InsertTOXMark(const SwTOXMarkDescription &rDesc)
OUString m_sSortAlgorithm
const OUString & GetStyleNames(sal_uInt16 nLvl) const
void SetLevel(sal_uInt16)
void StartAllAction()
For all views of this document.
void SetSecondaryKeyReading(const OUString &rStr)
void SetMainEntry(bool bSet)
void SetFromObjectNames(bool bSet)
bool IsSortByDocument() const
void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[])
bool UpdateOrInsertTOX(const SwTOXDescription &rDesc, SwTOXBase **ppBase, const SfxItemSet *pSet)
std::optional< OUString > const & GetPrimKey() const
const OUString & GetAuthBrackets() const