135 OUString aLibSubName,
143 OUString aLibSubName,
145 OUString aMethodName,
226 void AddEntry(
const OUString& rText,
const OUString& rImage,
228 std::unique_ptr<Entry>&& rUserData,
255 const Link<
const std::pair<const weld::TreeIter&, OUString>&,
bool>& rEndLink)
257 m_xControl->connect_editing(rStartLink, rEndLink);
LibraryLocation m_eLocation
virtual ~DocumentEntry() override
LibraryLocation GetLocation() const
DocumentEntry(ScriptDocument aDocument, LibraryLocation eLocation, EntryType eType=OBJ_TYPE_DOCUMENT)
ScriptDocument const & GetDocument() const
ScriptDocument m_aDocument
allows registering at theGlobalEventBroadcaster for global document events
const OUString & GetMethodName() const
ScriptDocument m_aDocument
LibraryLocation GetLocation() const
ScriptDocument const & GetDocument() const
void SetType(EntryType eType)
void SetMethodName(const OUString &aMethodName)
EntryType GetType() const
const OUString & GetLibName() const
const OUString & GetName() const
const OUString & GetLibSubName() const
LibraryLocation m_eLocation
EntryType GetType() const
Entry & operator=(Entry const &)=default
Entry(Entry const &)=default
OUString const & GetLibName() const
LibEntry(ScriptDocument const &rDocument, LibraryLocation eLocation, OUString aLibName)
virtual ~LibEntry() override
void set_size_request(int nWidth, int nHeight)
LibraryType GetLibraryType() const
EntryDescriptor GetEntryDescriptor(const weld::TreeIter *pEntry)
bool FindRootEntry(const ScriptDocument &rDocument, LibraryLocation eLocation, weld::TreeIter &rIter)
void SetMode(BrowseMode nM)
int get_height_rows(int nRows) const
OUString get_text(const weld::TreeIter &rIter) const
bool iter_next_sibling(weld::TreeIter &rIter) const
virtual void onDocumentSaveAs(const ScriptDocument &_rDocument) override
OUString GetRootEntryName(const ScriptDocument &rDocument, LibraryLocation eLocation) const
DECL_LINK(RequestingChildrenHdl, const weld::TreeIter &, bool)
std::unique_ptr< weld::TreeView > m_xControl
virtual void onDocumentSave(const ScriptDocument &_rDocument) override
bool get_cursor(weld::TreeIter *pIter) const
virtual void onDocumentClosed(const ScriptDocument &_rDocument) override
OUString get_id(const weld::TreeIter &rIter) const
int get_iter_index_in_parent(const weld::TreeIter &rIter) const
void RemoveEntry(const weld::TreeIter &rIter)
bool get_selected(weld::TreeIter *pIter) const
void set_cursor(const weld::TreeIter &rIter)
bool m_bFreezeOnFirstAddRemove
SbxVariable * FindVariable(const weld::TreeIter *pEntry)
bool get_row_expanded(const weld::TreeIter &rIter) const
bool IsValidEntry(const weld::TreeIter &rEntry)
DECL_LINK(OpenCurrentHdl, weld::TreeView &, bool)
void ImpCreateLibSubEntries(const weld::TreeIter &rLibRootEntry, const ScriptDocument &rDocument, const OUString &rLibName)
void connect_changed(const Link< weld::TreeView &, void > &rLink)
void remove(const weld::TreeIter &rIter)
std::unique_ptr< weld::TreeIter > make_iterator(const weld::TreeIter *pIter=nullptr) const
static OUString GetRootEntryBitmaps(const ScriptDocument &rDocument)
void SetCurrentEntry(EntryDescriptor const &)
void ImpCreateLibSubEntriesInVBAMode(const weld::TreeIter &rLibRootEntry, const ScriptDocument &rDocument, const OUString &rLibName)
void select(const weld::TreeIter &rIter)
bool IsEntryProtected(const weld::TreeIter *pEntry)
virtual void onDocumentModeChanged(const ScriptDocument &_rDocument) override
weld::TreeView & get_widget()
void AddEntry(const OUString &rText, const OUString &rImage, const weld::TreeIter *pParent, bool bChildrenOnDemand, std::unique_ptr< Entry > &&rUserData, weld::TreeIter *pRet=nullptr)
weld::Window * m_pTopLevel
DocumentEventNotifier m_aNotifier
void ScanEntry(const ScriptDocument &rDocument, LibraryLocation eLocation)
virtual void onDocumentSaveAsDone(const ScriptDocument &_rDocument) override
SbModule * FindModule(const weld::TreeIter *pEntry)
bool FindEntry(std::u16string_view rText, EntryType eType, weld::TreeIter &rIter)
virtual void onDocumentSaveDone(const ScriptDocument &_rDocument) override
float get_approximate_digit_width() const
bool ImpFindEntry(weld::TreeIter &rIter, std::u16string_view rText)
virtual void onDocumentOpened(const ScriptDocument &_rDocument) override
void SetEntryBitmaps(const weld::TreeIter &rIter, const OUString &rImage)
void connect_editing(const Link< const weld::TreeIter &, bool > &rStartLink, const Link< const std::pair< const weld::TreeIter &, OUString > &, bool > &rEndLink)
static ItemType ConvertType(EntryType eType)
SbTreeListBox(std::unique_ptr< weld::TreeView > xControl, weld::Window *pTopLevel)
virtual void onDocumentTitleChanged(const ScriptDocument &_rDocument) override
virtual ~SbTreeListBox() override
void set_text(const weld::TreeIter &rIter, const OUString &rText)
virtual void onDocumentCreated(const ScriptDocument &_rDocument) override
void unselect(const weld::TreeIter &rIter)
int get_iter_depth(const weld::TreeIter &rIter) const
void ImpCreateLibSubSubEntriesInVBAMode(const weld::TreeIter &rLibRootEntry, const ScriptDocument &rDocument, const OUString &rLibName)
bool get_iter_first(weld::TreeIter &rIter) const
BrowseMode GetMode() const
void expand_row(const weld::TreeIter &rIter)
bool iter_children(weld::TreeIter &rIter) const
std::unique_ptr< weld::TreeIter > m_xScratchIter
bool iter_parent(weld::TreeIter &rIter) const
void copy_iterator(const weld::TreeIter &rSource, weld::TreeIter &rDest) const
void ImpCreateLibEntries(const weld::TreeIter &rShellRootEntry, const ScriptDocument &rDocument, LibraryLocation eLocation)
encapsulates a document which contains Basic scripts and dialogs
@ OBJ_TYPE_NORMAL_MODULES
@ OBJ_TYPE_DOCUMENT_OBJECTS