LibreOffice Module sc (master)
1
|
#include <content.hxx>
Public Member Functions | |
ScContentTree (std::unique_ptr< weld::TreeView > xTreeView, ScNavigatorDlg *pNavigatorDlg) | |
~ScContentTree () | |
void | SetNavigatorDlgFlag (bool isInNavigateDlg) |
void | hide () |
void | show () |
void | Refresh (ScContentId nType=ScContentId::ROOT) |
void | ToggleRoot () |
void | SetRootType (ScContentId nNew) |
ScContentId | GetRootType () const |
bool | ActiveDocChanged () |
void | ResetManualDoc () |
void | SetManualDoc (const OUString &rName) |
void | LoadFile (const OUString &rUrl) |
void | SelectDoc (const OUString &rName) |
void | SelectEntryByName (const ScContentId nRoot, std::u16string_view rName) |
const OUString & | GetHiddenTitle () const |
void | ApplyNavigatorSettings () |
Applies the navigator settings to the listbox. More... | |
void | StoreNavigatorSettings () |
Stores the current listbox state in the navigator settings. More... | |
Static Private Member Functions | |
static bool | IsPartOfType (ScContentId nContentType, SdrObjKind nObjIdentifier) |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xTreeView |
std::unique_ptr< weld::TreeIter > | m_xScratchIter |
rtl::Reference< ScLinkTransferObj > | m_xTransferObj |
ScNavigatorDlg * | pParentWindow |
o3tl::enumarray< ScContentId, std::unique_ptr< weld::TreeIter > > | m_aRootNodes |
ScContentId | nRootType |
OUString | aManualDoc |
bool | bHiddenDoc |
OUString | aHiddenName |
OUString | aHiddenTitle |
ScDocument * | pHiddenDocument |
bool | bIsInNavigatorDlg |
bool | m_bFreeze |
ImplSVEvent * | m_nAsyncMouseReleaseId |
o3tl::enumarray< ScContentId, sal_uInt16 > | pPosList |
Definition at line 43 of file content.hxx.
ScContentTree::ScContentTree | ( | std::unique_ptr< weld::TreeView > | xTreeView, |
ScNavigatorDlg * | pNavigatorDlg | ||
) |
Definition at line 121 of file content.cxx.
References DND_ACTION_COPY, DND_ACTION_LINK, false, i, InitRoot(), LAST, LINK, m_aRootNodes, m_xTransferObj, m_xTreeView, m_xTreeView, pPosList, pTypeList, and ROOT.
ScContentTree::~ScContentTree | ( | ) |
Definition at line 157 of file content.cxx.
References m_nAsyncMouseReleaseId, and Application::RemoveUserEvent().
bool ScContentTree::ActiveDocChanged | ( | ) |
Definition at line 1428 of file content.cxx.
References aHiddenTitle, aManualDoc, bHiddenDoc, ScNavigatorDlg::GetDocNames(), GetManualOrCurrent(), SfxObjectShell::GetTitle(), pParentWindow, and Refresh().
Referenced by ResetManualDoc().
void ScContentTree::ApplyNavigatorSettings | ( | ) |
Applies the navigator settings to the listbox.
Definition at line 1551 of file content.cxx.
References ScNavigatorSettings::GetChildSelected(), ScNavigatorDlg::GetNavigatorSettings(), ScNavigatorSettings::GetRootSelected(), i, ScNavigatorSettings::IsExpanded(), LAST, m_aRootNodes, m_xTreeView, ROOT, SC_CONTENT_NOCHILD, and TABLE.
Referenced by Refresh().
|
private |
Definition at line 199 of file content.cxx.
References freeze(), i, InitRoot(), LAST, m_bFreeze, m_xTreeView, and thaw().
Referenced by ClearType().
|
private |
Definition at line 216 of file content.cxx.
References ClearAll(), InitRoot(), m_aRootNodes, m_xTreeView, nType, and ROOT.
Referenced by Refresh().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1010 of file content.cxx.
References DRAWING, ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), SdrObject::GetObjIdentifier(), SdrModel::GetPage(), GetSourceDocument(), ScDocument::GetTableCount(), ScDrawLayer::GetVisibleName(), IsPartOfType(), m_aRootNodes, m_xTreeView, SdrObjListIter::Next(), nType, and pObject.
Referenced by Refresh().
|
inlineprivate |
Definition at line 100 of file content.hxx.
Referenced by ClearAll(), and Refresh().
|
private |
Definition at line 740 of file content.cxx.
References ScRangeName::empty(), ScDocument::GetName(), ScDocument::GetRangeName(), GetSourceDocument(), ScDocument::GetTableCount(), i, ScRangeName::insert(), InsertContent(), nRootType, RANGENAME, and ROOT.
Referenced by Refresh().
|
private |
Returns the child index of the specified listbox entry.
pEntry | The entry to examine or NULL for the selected entry. |
Definition at line 293 of file content.cxx.
References GetEntryIndexes().
|
private |
Definition at line 778 of file content.cxx.
References DBAREA, ScDocument::GetDBCollection(), ScDBCollection::getNamedDBs(), GetSourceDocument(), InsertContent(), nRootType, and ROOT.
Referenced by Refresh().
|
private |
Definition at line 887 of file content.cxx.
References DRAWING, and GetDrawNames().
Referenced by Refresh().
|
private |
Definition at line 818 of file content.cxx.
References aName, bIsInNavigatorDlg, DRAWING, ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), SdrObject::GetObjIdentifier(), SdrModel::GetPage(), GetSourceDocument(), ScDocument::GetTableCount(), ScDrawLayer::GetVisibleName(), IsPartOfType(), m_aRootNodes, m_xTreeView, MAX_TREE_NODES, SdrObjListIter::Next(), nIndex, nRootType, nType, pObject, ROOT, and SAL_WARN.
Referenced by GetDrawingNames(), GetGraphicNames(), and GetOleNames().
|
private |
Returns the indexes of the specified listbox entry.
rnRootIndex | Root index of specified entry is returned. |
rnChildIndex | Index of the entry inside its root is returned (or SC_CONTENT_NOCHILD if entry is root). |
pEntry | The entry to examine. |
Definition at line 246 of file content.cxx.
References i, LAST, m_aRootNodes, m_xTreeView, ROOT, SC_CONTENT_NOCHILD, and UL.
Referenced by GetChildIndex(), and StoreNavigatorSettings().
|
private |
Definition at line 877 of file content.cxx.
References GetDrawNames(), and GRAPHIC.
Referenced by Refresh().
|
inline |
Definition at line 153 of file content.hxx.
References aHiddenTitle.
|
private |
Definition at line 915 of file content.cxx.
References ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), GetSourceDocument(), i, and nCount.
|
private |
Definition at line 892 of file content.cxx.
References AREALINK, ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), GetSourceDocument(), i, InsertContent(), nCount, nRootType, and ROOT.
Referenced by Refresh().
|
private |
Definition at line 90 of file content.cxx.
References SfxViewShell::Current(), SfxObjectShell::GetFirst(), SfxObjectShell::GetNext(), SfxViewFrame::GetObjectShell(), SfxObjectShell::GetTitle(), and SfxViewShell::GetViewFrame().
Referenced by ActiveDocChanged(), and GetSourceDocument().
Definition at line 971 of file content.cxx.
References ScDocument::GetNotePosition(), and GetSourceDocument().
|
private |
Definition at line 950 of file content.cxx.
References aEntries, ScDocument::GetAllNoteEntries(), GetSourceDocument(), lcl_NoteString(), m_aRootNodes, m_xScratchIter, m_xTreeView, NOTE, nRootType, and ROOT.
Referenced by Refresh().
|
private |
Definition at line 882 of file content.cxx.
References GetDrawNames(), and OLEOBJECT.
Referenced by Refresh().
|
inline |
Definition at line 142 of file content.hxx.
References nRootType.
|
private |
Definition at line 654 of file content.cxx.
References bHiddenDoc, ScDocShell::GetDocument(), GetManualOrCurrent(), and pHiddenDocument.
Referenced by DrawNamesChanged(), GetAreaNames(), GetDbNames(), GetDrawNames(), GetLink(), GetLinkNames(), GetNotePos(), GetNoteStrings(), GetTableNames(), and NoteStringsChanged().
|
private |
Definition at line 714 of file content.cxx.
References aName, ScDocument::GetName(), GetSourceDocument(), ScDocument::GetTableCount(), i, InsertContent(), nCount, nRootType, ROOT, and TABLE.
Referenced by Refresh().
|
inline |
Definition at line 128 of file content.hxx.
|
private |
Definition at line 179 of file content.cxx.
References aContentBmps, aName, m_aRootNodes, m_xTreeView, nPos, nRootType, nType, pPosList, ROOT, and ScResId().
Referenced by ClearAll(), ClearType(), and ScContentTree().
|
private |
Definition at line 232 of file content.cxx.
References m_aRootNodes, m_xScratchIter, m_xTreeView, and nType.
Referenced by GetAreaNames(), GetDbNames(), GetLinkNames(), and GetTableNames().
|
staticprivate |
Definition at line 796 of file content.cxx.
References DRAWING, GRAPHIC, and OLEOBJECT.
Referenced by DrawNamesChanged(), and GetDrawNames().
|
private |
Definition at line 400 of file content.cxx.
References LINK, m_nAsyncMouseReleaseId, and Application::PostUserEvent().
void ScContentTree::LoadFile | ( | const OUString & | rUrl | ) |
Definition at line 1353 of file content.cxx.
References aHiddenName, aHiddenTitle, aURL, bHiddenDoc, ScNavigatorDlg::GetDocNames(), ScDocumentLoader::GetDocument(), ScDocumentLoader::GetTitle(), ScDocumentLoader::IsError(), nPos, pHiddenDocument, pParentWindow, and Refresh().
Referenced by SelectDoc().
|
private |
Definition at line 980 of file content.cxx.
References aEntries, ScDocument::GetAllNoteEntries(), GetSourceDocument(), lcl_NoteString(), m_aRootNodes, m_xTreeView, and NOTE.
Referenced by Refresh().
void ScContentTree::Refresh | ( | ScContentId | nType = ScContentId::ROOT | ) |
Definition at line 668 of file content.cxx.
References ApplyNavigatorSettings(), AREALINK, bHiddenDoc, ClearType(), DBAREA, DRAWING, DrawNamesChanged(), freeze(), GetAreaNames(), GetDbNames(), GetDrawingNames(), GetGraphicNames(), GetLinkNames(), GetNoteStrings(), GetOleNames(), GetTableNames(), GRAPHIC, NOTE, NoteStringsChanged(), OLEOBJECT, pHiddenDocument, RANGENAME, ROOT, TABLE, and thaw().
Referenced by ActiveDocChanged(), LoadFile(), SetManualDoc(), and SetRootType().
void ScContentTree::ResetManualDoc | ( | ) |
Definition at line 1420 of file content.cxx.
References ActiveDocChanged(), aManualDoc, and bHiddenDoc.
Referenced by SelectDoc().
void ScContentTree::SelectDoc | ( | const OUString & | rName | ) |
Definition at line 1475 of file content.cxx.
References aHiddenName, aHiddenTitle, ScNavigatorDlg::aStrActive, ScNavigatorDlg::aStrActiveWin, ScNavigatorDlg::aStrNotActive, bHiddenDoc, SfxObjectShell::GetFirst(), SfxObjectShell::GetNext(), SfxObjectShell::GetTitle(), LoadFile(), pParentWindow, ResetManualDoc(), and SetManualDoc().
void ScContentTree::SelectEntryByName | ( | const ScContentId | nRoot, |
std::u16string_view | rName | ||
) |
Definition at line 1523 of file content.cxx.
References m_aRootNodes, m_xTreeView, and StoreNavigatorSettings().
void ScContentTree::SetManualDoc | ( | const OUString & | rName | ) |
Definition at line 1465 of file content.cxx.
References aManualDoc, bHiddenDoc, ScNavigatorDlg::GetDocNames(), pParentWindow, and Refresh().
Referenced by SelectDoc().
|
inline |
Definition at line 126 of file content.hxx.
void ScContentTree::SetRootType | ( | ScContentId | nNew | ) |
Definition at line 1380 of file content.cxx.
References nRootType, Refresh(), SC_MOD, and ScNavipiCfg::SetRootType().
Referenced by ToggleRoot().
|
inline |
Definition at line 133 of file content.hxx.
void ScContentTree::StoreNavigatorSettings | ( | ) |
Stores the current listbox state in the navigator settings.
Definition at line 1606 of file content.cxx.
References GetEntryIndexes(), ScNavigatorDlg::GetNavigatorSettings(), i, LAST, m_aRootNodes, m_nAsyncMouseReleaseId, m_xTreeView, Application::RemoveUserEvent(), ScNavigatorSettings::SetChildSelected(), ScNavigatorSettings::SetExpanded(), and ScNavigatorSettings::SetRootSelected().
Referenced by SelectEntryByName().
|
inlineprivate |
Definition at line 106 of file content.hxx.
Referenced by ClearAll(), and Refresh().
void ScContentTree::ToggleRoot | ( | ) |
Definition at line 1392 of file content.cxx.
References i, LAST, m_aRootNodes, m_xTreeView, nRootType, ROOT, and SetRootType().
|
private |
Definition at line 53 of file content.hxx.
Referenced by LoadFile(), and SelectDoc().
|
private |
Definition at line 54 of file content.hxx.
Referenced by ActiveDocChanged(), GetHiddenTitle(), LoadFile(), and SelectDoc().
|
private |
Definition at line 51 of file content.hxx.
Referenced by ActiveDocChanged(), ResetManualDoc(), and SetManualDoc().
|
private |
Definition at line 52 of file content.hxx.
Referenced by ActiveDocChanged(), GetSourceDocument(), LoadFile(), Refresh(), ResetManualDoc(), SelectDoc(), and SetManualDoc().
|
private |
Definition at line 56 of file content.hxx.
Referenced by GetDrawNames().
|
private |
Definition at line 49 of file content.hxx.
Referenced by ApplyNavigatorSettings(), ClearType(), DrawNamesChanged(), GetDrawNames(), GetEntryIndexes(), GetNoteStrings(), InitRoot(), InsertContent(), NoteStringsChanged(), ScContentTree(), SelectEntryByName(), StoreNavigatorSettings(), and ToggleRoot().
|
private |
Definition at line 57 of file content.hxx.
Referenced by ClearAll().
|
private |
Definition at line 58 of file content.hxx.
Referenced by LaunchAsyncStoreNavigatorSettings(), StoreNavigatorSettings(), and ~ScContentTree().
|
private |
Definition at line 46 of file content.hxx.
Referenced by GetNoteStrings(), and InsertContent().
|
private |
Definition at line 47 of file content.hxx.
Referenced by ScContentTree().
|
private |
Definition at line 45 of file content.hxx.
Referenced by ApplyNavigatorSettings(), ClearAll(), ClearType(), DrawNamesChanged(), GetDrawNames(), GetEntryIndexes(), GetNoteStrings(), InitRoot(), InsertContent(), NoteStringsChanged(), ScContentTree(), SelectEntryByName(), StoreNavigatorSettings(), and ToggleRoot().
|
private |
Definition at line 50 of file content.hxx.
Referenced by GetAreaNames(), GetDbNames(), GetDrawNames(), GetLinkNames(), GetNoteStrings(), GetRootType(), GetTableNames(), InitRoot(), SetRootType(), and ToggleRoot().
|
private |
Definition at line 55 of file content.hxx.
Referenced by GetSourceDocument(), LoadFile(), and Refresh().
|
private |
Definition at line 48 of file content.hxx.
Referenced by ActiveDocChanged(), LoadFile(), SelectDoc(), and SetManualDoc().
|
private |
Definition at line 60 of file content.hxx.
Referenced by InitRoot(), and ScContentTree().