LibreOffice Module sc (master)
1
|
#include <content.hxx>
Public Member Functions | |
ScContentTree (std::unique_ptr< weld::TreeView > xTreeView, ScNavigatorDlg *pNavigatorDlg) | |
~ScContentTree () | |
void | ObjectFresh (ScContentId nType, const weld::TreeIter *pEntry=nullptr) |
void | SetNavigatorDlgFlag (bool isInNavigateDlg) |
void | set_selection_mode (SelectionMode eMode) |
void | set_size_request (int nWidth, int nHeight) |
void | hide () |
void | show () |
void | Refresh (ScContentId nType=ScContentId::ROOT) |
void | ToggleRoot () |
void | SetRootType (ScContentId nNew) |
ScContentId | GetRootType () const |
void | 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 (bool bRestoreScrollPos=false, int nScrollPos=0) |
Applies the navigator settings to the listbox. More... | |
void | StoreNavigatorSettings () const |
Stores the current listbox state in the navigator settings. More... | |
Static Private Member Functions | |
static bool | IsPartOfType (ScContentId nContentType, sal_uInt16 nObjIdentifier) |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xTreeView |
std::unique_ptr< weld::TreeIter > | m_xScratchIter |
rtl::Reference< ScLinkTransferObj > | m_xTransferObj |
VclPtr< 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 | bisInNavigatoeDlg |
bool | m_bFreeze |
OUString | sKeyString |
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 120 of file content.cxx.
References DND_ACTION_COPY, DND_ACTION_LINK, i, InitRoot(), LAST, LINK, m_aRootNodes, m_xTransferObj, m_xTreeView, m_xTreeView, pPosList, pTypeList, and ROOT.
ScContentTree::~ScContentTree | ( | ) |
Definition at line 151 of file content.cxx.
References VclPtr< reference_type >::clear(), m_nAsyncMouseReleaseId, pParentWindow, and Application::RemoveUserEvent().
void ScContentTree::ActiveDocChanged | ( | ) |
Definition at line 1457 of file content.cxx.
References aHiddenTitle, aManualDoc, bHiddenDoc, ScNavigatorDlg::GetDocNames(), GetManualOrCurrent(), SfxObjectShell::GetTitle(), pParentWindow, and Refresh().
Referenced by ResetManualDoc().
Applies the navigator settings to the listbox.
Definition at line 1572 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 ObjectFresh(), and Refresh().
|
private |
Definition at line 194 of file content.cxx.
References freeze(), i, InitRoot(), LAST, m_bFreeze, m_xTreeView, and thaw().
Referenced by ClearType().
|
private |
Definition at line 211 of file content.cxx.
References ClearAll(), InitRoot(), m_aRootNodes, m_xTreeView, nType, and ROOT.
Referenced by ObjectFresh(), and Refresh().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1039 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 101 of file content.hxx.
Referenced by ClearAll(), ObjectFresh(), and Refresh().
|
private |
Definition at line 781 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 288 of file content.cxx.
References GetEntryIndexes().
|
private |
Definition at line 819 of file content.cxx.
References DBAREA, ScDocument::GetDBCollection(), ScDBCollection::getNamedDBs(), GetSourceDocument(), InsertContent(), nRootType, and ROOT.
Referenced by Refresh().
|
private |
Definition at line 921 of file content.cxx.
References DRAWING, and GetDrawNames().
Referenced by Refresh().
|
private |
Definition at line 857 of file content.cxx.
References aName, bisInNavigatoeDlg, DRAWING, ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), SdrObject::GetObjIdentifier(), SdrModel::GetPage(), GetSourceDocument(), ScDocument::GetTableCount(), ScDrawLayer::GetVisibleName(), IsPartOfType(), m_aRootNodes, m_xScratchIter, m_xTreeView, SdrObjListIter::Next(), nRootType, nType, pObject, ROOT, and SAL_WARN.
Referenced by GetDrawingNames(), GetGraphicNames(), GetOleNames(), and ObjectFresh().
|
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 241 of file content.cxx.
References i, LAST, m_aRootNodes, m_xTreeView, ROOT, and SC_CONTENT_NOCHILD.
Referenced by GetChildIndex(), and StoreNavigatorSettings().
|
private |
Definition at line 911 of file content.cxx.
References GetDrawNames(), and GRAPHIC.
Referenced by Refresh().
|
inline |
Definition at line 163 of file content.hxx.
References aHiddenTitle.
|
private |
Definition at line 949 of file content.cxx.
References ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), GetSourceDocument(), i, and nCount.
|
private |
Definition at line 926 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 89 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 1000 of file content.cxx.
References ScDocument::GetNotePosition(), and GetSourceDocument().
|
private |
Definition at line 984 of file content.cxx.
References aEntries, ScDocument::GetAllNoteEntries(), GetSourceDocument(), InsertContent(), lcl_NoteString(), NOTE, nRootType, and ROOT.
Referenced by Refresh().
|
private |
Definition at line 916 of file content.cxx.
References GetDrawNames(), and OLEOBJECT.
Referenced by Refresh().
|
inline |
Definition at line 154 of file content.hxx.
References nRootType.
|
private |
Definition at line 645 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 755 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 140 of file content.hxx.
|
private |
Definition at line 174 of file content.cxx.
References aContentBmps, aName, m_aRootNodes, m_xTreeView, nPos, nRootType, nType, pPosList, ROOT, ScResId(), and SCSTR_CONTENT_ARY.
Referenced by ClearAll(), ClearType(), and ScContentTree().
|
private |
Definition at line 227 of file content.cxx.
References m_aRootNodes, m_xScratchIter, m_xTreeView, and nType.
Referenced by GetAreaNames(), GetDbNames(), GetLinkNames(), GetNoteStrings(), and GetTableNames().
|
staticprivate |
Definition at line 837 of file content.cxx.
References DRAWING, GRAPHIC, OBJ_GRAF, OBJ_OLE2, and OLEOBJECT.
Referenced by DrawNamesChanged(), and GetDrawNames().
|
private |
Definition at line 389 of file content.cxx.
References LINK, m_nAsyncMouseReleaseId, and Application::PostUserEvent().
void ScContentTree::LoadFile | ( | const OUString & | rUrl | ) |
Definition at line 1382 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 1009 of file content.cxx.
References aEntries, ScDocument::GetAllNoteEntries(), GetSourceDocument(), lcl_NoteString(), m_aRootNodes, m_xTreeView, and NOTE.
Referenced by Refresh().
void ScContentTree::ObjectFresh | ( | ScContentId | nType, |
const weld::TreeIter * | pEntry = nullptr |
||
) |
Definition at line 660 of file content.cxx.
References ApplyNavigatorSettings(), bHiddenDoc, ClearType(), DRAWING, freeze(), GetDrawNames(), GRAPHIC, m_aRootNodes, m_xTreeView, nType, OLEOBJECT, pHiddenDocument, sKeyString, StoreNavigatorSettings(), and thaw().
void ScContentTree::Refresh | ( | ScContentId | nType = ScContentId::ROOT | ) |
Definition at line 709 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 1449 of file content.cxx.
References ActiveDocChanged(), aManualDoc, and bHiddenDoc.
Referenced by SelectDoc().
void ScContentTree::SelectDoc | ( | const OUString & | rName | ) |
Definition at line 1496 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 1544 of file content.cxx.
References m_aRootNodes, m_xTreeView, and StoreNavigatorSettings().
|
inline |
Definition at line 130 of file content.hxx.
Definition at line 135 of file content.hxx.
void ScContentTree::SetManualDoc | ( | const OUString & | rName | ) |
Definition at line 1486 of file content.cxx.
References aManualDoc, bHiddenDoc, ScNavigatorDlg::GetDocNames(), pParentWindow, and Refresh().
Referenced by SelectDoc().
|
inline |
Definition at line 128 of file content.hxx.
void ScContentTree::SetRootType | ( | ScContentId | nNew | ) |
Definition at line 1409 of file content.cxx.
References nRootType, Refresh(), SC_MOD, and ScNavipiCfg::SetRootType().
Referenced by ToggleRoot().
|
inline |
Definition at line 145 of file content.hxx.
void ScContentTree::StoreNavigatorSettings | ( | ) | const |
Stores the current listbox state in the navigator settings.
Definition at line 1630 of file content.cxx.
References GetEntryIndexes(), ScNavigatorDlg::GetNavigatorSettings(), i, LAST, m_aRootNodes, m_xTreeView, ScNavigatorSettings::SetChildSelected(), ScNavigatorSettings::SetExpanded(), and ScNavigatorSettings::SetRootSelected().
Referenced by ObjectFresh(), and SelectEntryByName().
|
inlineprivate |
Definition at line 107 of file content.hxx.
Referenced by ClearAll(), ObjectFresh(), and Refresh().
void ScContentTree::ToggleRoot | ( | ) |
Definition at line 1421 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(), ObjectFresh(), 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(), InitRoot(), InsertContent(), NoteStringsChanged(), ObjectFresh(), ScContentTree(), SelectEntryByName(), StoreNavigatorSettings(), and ToggleRoot().
|
private |
Definition at line 57 of file content.hxx.
Referenced by ClearAll().
|
private |
Definition at line 59 of file content.hxx.
Referenced by LaunchAsyncStoreNavigatorSettings(), and ~ScContentTree().
|
private |
Definition at line 46 of file content.hxx.
Referenced by GetDrawNames(), 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(), InitRoot(), InsertContent(), NoteStringsChanged(), ObjectFresh(), 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(), ObjectFresh(), and Refresh().
|
private |
Definition at line 48 of file content.hxx.
Referenced by ActiveDocChanged(), LoadFile(), SelectDoc(), SetManualDoc(), and ~ScContentTree().
|
private |
Definition at line 61 of file content.hxx.
Referenced by InitRoot(), and ScContentTree().
|
private |
Definition at line 58 of file content.hxx.
Referenced by ObjectFresh().