LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwTOXMgr Class Reference

Built on top of SwWrtShell, provides functionality to insert, update or perform other actions on various ToX types (table of contents, indexes and so on). More...

#include <toxmgr.hxx>

Collaboration diagram for SwTOXMgr:
[legend]

Public Member Functions

 SwTOXMgr (SwWrtShell *pShell)
 
void InsertTOXMark (const SwTOXMarkDescription &rDesc)
 
void UpdateTOXMark (const SwTOXMarkDescription &rDesc)
 
void DeleteTOXMark ()
 
void NextTOXMark (bool bSame=false)
 
void PrevTOXMark (bool bSame=false)
 
sal_uInt16 GetTOXMarkCount () const
 
SwTOXMarkGetTOXMark (sal_uInt16 nId)
 
SwTOXMarkGetCurTOXMark ()
 
void SetCurTOXMark (sal_uInt16 nId)
 
bool UpdateOrInsertTOX (const SwTOXDescription &rDesc, SwTOXBase **ppBase, const SfxItemSet *pSet)
 
const SwTOXTypeGetTOXType (TOXTypes eTyp) const
 
SwWrtShellGetShell ()
 

Private Member Functions

SAL_DLLPRIVATE sal_uInt16 GetUserTypeID (const OUString &rStr)
 

Private Attributes

SwWrtShellm_pSh
 
SwTOXMarkm_pCurTOXMark
 
SwTOXMarks m_aCurMarks
 

Detailed Description

Built on top of SwWrtShell, provides functionality to insert, update or perform other actions on various ToX types (table of contents, indexes and so on).

Definition at line 230 of file toxmgr.hxx.

Constructor & Destructor Documentation

SwTOXMgr::SwTOXMgr ( SwWrtShell pShell)
explicit

Definition at line 30 of file toxmgr.cxx.

References SwEditShell::GetCurTOXMarks(), m_aCurMarks, m_pSh, and SetCurTOXMark().

Member Function Documentation

void SwTOXMgr::DeleteTOXMark ( )
SwTOXMark * SwTOXMgr::GetCurTOXMark ( )
inline

Definition at line 270 of file toxmgr.hxx.

References m_pCurTOXMark.

Referenced by SwTextShell::ExecIdx().

SwWrtShell* SwTOXMgr::GetShell ( )
inline

Definition at line 263 of file toxmgr.hxx.

Referenced by SwMultiTOXMarkDlg::SwMultiTOXMarkDlg().

SwTOXMark * SwTOXMgr::GetTOXMark ( sal_uInt16  nId)

Definition at line 37 of file toxmgr.cxx.

References m_aCurMarks.

Referenced by SwMultiTOXMarkDlg::SwMultiTOXMarkDlg().

sal_uInt16 SwTOXMgr::GetTOXMarkCount ( ) const
inline

Definition at line 267 of file toxmgr.hxx.

References m_aCurMarks.

Referenced by SwTextShell::ExecIdx(), and SwMultiTOXMarkDlg::SwMultiTOXMarkDlg().

const SwTOXType * SwTOXMgr::GetTOXType ( TOXTypes  eTyp) const

Definition at line 257 of file toxmgr.cxx.

References SwEditShell::GetTOXType(), and m_pSh.

sal_uInt16 SwTOXMgr::GetUserTypeID ( const OUString &  rStr)
private
void SwTOXMgr::InsertTOXMark ( const SwTOXMarkDescription rDesc)
void SwTOXMgr::NextTOXMark ( bool  bSame = false)

Definition at line 237 of file toxmgr.cxx.

References SwCursorShell::GotoTOXMark(), m_pCurTOXMark, m_pSh, TOX_NXT, and TOX_SAME_NXT.

void SwTOXMgr::PrevTOXMark ( bool  bSame = false)

Definition at line 247 of file toxmgr.cxx.

References SwCursorShell::GotoTOXMark(), m_pCurTOXMark, m_pSh, TOX_PRV, and TOX_SAME_PRV.

void SwTOXMgr::SetCurTOXMark ( sal_uInt16  nId)

Definition at line 262 of file toxmgr.cxx.

References m_aCurMarks, and m_pCurTOXMark.

Referenced by SwMultiTOXMarkDlg::run(), SwTOXMgr(), and UpdateTOXMark().

bool SwTOXMgr::UpdateOrInsertTOX ( const SwTOXDescription rDesc,
SwTOXBase **  ppBase,
const SfxItemSet pSet 
)

TODO

Definition at line 267 of file toxmgr.cxx.

References SwEditShell::ApplyAutoMark(), SwDoc::ChangeTOX(), SwTOXBase::DisableKeepExpression(), IDocumentUndoRedo::DoesUndo(), SwTOXBase::EnableKeepExpression(), IDocumentUndoRedo::EndUndo(), SwWrtShell::EnterStdMode(), SwTOXDescription::GetAuthBrackets(), SwTOXDescription::GetAutoMarkURL(), SwTOXDescription::GetCaptionDisplay(), SwTOXDescription::GetContentOptions(), SwEditShell::GetCurTOX(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwEditShell::GetFieldType(), SwTOXDescription::GetForm(), SwDoc::GetIDocumentUndoRedo(), SwTOXDescription::GetIndexOptions(), SwTOXDescription::GetLanguage(), SwTOXDescription::GetLevel(), SwTOXDescription::GetMainEntryCharStyle(), SwTOXDescription::GetOLEOptions(), SwTOXDescription::GetSequenceName(), SwTOXDescription::GetSortAlgorithm(), SwTOXDescription::GetSortKey1(), SwTOXDescription::GetSortKey2(), SwTOXDescription::GetSortKey3(), SwTOXDescription::GetStyleNames(), SwTOXDescription::GetTitle(), SwTOXDescription::GetTOUName(), SwTOXDescription::GetTOXType(), SwEditShell::GetTOXType(), SwEditShell::GetTOXTypeCount(), SwTOXType::GetTypeName(), SwWrtShell::GetView(), SwWrtShell::HasSelection(), i, SwEditShell::InsertFieldType(), SwWrtShell::InsertTableOf(), SwTOXDescription::IsAuthSequence(), SwTOXDescription::IsCreateFromObjectNames(), SwTOXDescription::IsFromChapter(), SwTOXDescription::IsLevelFromChapter(), SwTOXDescription::IsReadonly(), SwTOXDescription::IsSortByDocument(), m_pSh, Mark, MAXLEVEL, NONE, nPos, SwTOXBase::SetCaptionDisplay(), SwTOXBase::SetCreate(), SwTOXBase::SetFromChapter(), SwTOXBase::SetFromObjectNames(), SwAuthorityFieldType::SetLanguage(), SwTOXBase::SetLanguage(), SwTOXBase::SetLevel(), SwTOXBase::SetLevelFromChapter(), SwTOXBase::SetMainEntryCharStyle(), SwTOXBase::SetOLEOptions(), SwTOXBase::SetOptions(), SwAuthorityFieldType::SetPreSuffix(), SwTOXBase::SetProtected(), SwAuthorityFieldType::SetSequence(), SwTOXBase::SetSequenceName(), SwAuthorityFieldType::SetSortAlgorithm(), SwTOXBase::SetSortAlgorithm(), SwAuthorityFieldType::SetSortByDocument(), SwAuthorityFieldType::SetSortKeys(), SwTOXBase::SetStyleNames(), SwTOXBase::SetTitle(), SwEditShell::SetTOIAutoMarkURL(), SwTOXBase::SetTOXForm(), IDocumentUndoRedo::StartUndo(), TableOfAuthorities, TOX_AUTHORITIES, TOX_BIBLIOGRAPHY, TOX_CITATION, TOX_CONTENT, TOX_ILLUSTRATIONS, TOX_INDEX, TOX_OBJECTS, TOX_TABLES, TOX_USER, TOXCHANGE, type, SwFieldType::UpdateFields(), and SwWrtShell::UpdateTableOf().

Referenced by SwGlobalTree::ExecuteContextMenuAction().

void SwTOXMgr::UpdateTOXMark ( const SwTOXMarkDescription rDesc)

Member Data Documentation

SwTOXMarks SwTOXMgr::m_aCurMarks
private

Definition at line 234 of file toxmgr.hxx.

Referenced by GetTOXMark(), GetTOXMarkCount(), SetCurTOXMark(), SwTOXMgr(), and UpdateTOXMark().

SwTOXMark* SwTOXMgr::m_pCurTOXMark
private
SwWrtShell* SwTOXMgr::m_pSh
private

The documentation for this class was generated from the following files: