31#include <unordered_map>
57sal_Int32
searchEOL( std::u16string_view rStr, sal_Int32 fromIndex );
88 virtual void dispose()
override;
94 void Show (
bool =
true);
151class EntryDescriptor;
179 virtual void dispose()
override;
290 typedef std::unordered_map<Key, Item, Key::Hash>
Map;
294void CutLines( OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines );
295OUString
CreateMgrAndLibStr( std::u16string_view rMgrName, std::u16string_view rLibName );
303bool QueryPassword(
weld::Widget* pDialogParent,
const css::uno::Reference< css::script::XLibraryContainer >& xLibContainer,
const OUString& rLibName, OUString& rPassword,
bool bRepeat =
false,
bool bNewTitle =
false);
310 static void getObjectName(
const css::uno::Reference< css::container::XNameContainer >& rLib,
const OUString& rModName, OUString& rObjName );
311 static sal_Int32
getModuleType(
const css::uno::Reference< css::container::XNameContainer >& rLib,
const OUString& rModName );
reference_type * get() const
void SetName(const OUString &aName)
virtual void BasicStopped()
DECL_LINK(VertScrollHdl, weld::Scrollbar &, void)
virtual ItemType GetType() const =0
virtual bool IsReadOnly()
virtual OUString GetTitle()
void GrabScrollBars(ScrollAdaptor *pHScroll, ScrollAdaptor *pVScroll)
virtual void dispose() override
const OUString & GetLibName() const
virtual void DoScroll(Scrollable *pCurScrollBar)
bool IsDocument(const ScriptDocument &rDocument) const
ScriptDocument m_aDocument
virtual void SetReadOnly(bool bReadOnly)
virtual void Deactivating()=0
virtual void printPage(sal_Int32 nPage, Printer *pPrinter)=0
OUString CreateQualifiedName()
virtual OUString GetHid() const =0
VclPtr< ScrollAdaptor > pShellHScrollBar
void ShowShellScrollBars(bool bVisible=true)
VclPtr< ScrollAdaptor > pShellVScrollBar
virtual SearchOptionFlags GetSearchOptions()
virtual void UpdateData()
virtual bool HasActiveEditor() const
virtual void ExecuteGlobal(SfxRequest &)
virtual EntryDescriptor CreateEntryDescriptor()=0
const OUString & GetName() const
virtual void ExecuteCommand(SfxRequest &)
virtual bool IsModified()
virtual bool EventNotify(NotifyEvent &rNEvt) override
BaseWindow(vcl::Window *pParent, ScriptDocument aDocument, OUString aLibName, OUString aName)
void ShowReadOnlyInfoBar()
virtual SfxUndoManager * GetUndoManager()
virtual void OnNewDocument()
virtual void BasicStarted()
const ScriptDocument & GetDocument() const
DECL_LINK(HorzScrollHdl, weld::Scrollbar &, void)
ScrollAdaptor * GetHScrollBar() const
virtual ~BaseWindow() override
void InsertLibInfo() const
virtual void Activating()=0
virtual sal_uInt16 StartSearchAndReplace(SvxSearchItem const &, bool bFromStart=false)
bool Is(ScriptDocument const &, std::u16string_view, std::u16string_view, ItemType, bool bFindSuspended)
virtual sal_Int32 countPages(Printer *pPrinter)=0
virtual void GetState(SfxItemSet &)=0
ScrollAdaptor * GetVScrollBar() const
virtual void StartDocking() override
static WinBits const StyleBits
Size GetDockingSize() const
virtual void ToggleFloatingMode() override
std::unique_ptr< weld::Container > m_xContainer
void SetLayoutWindow(Layout *)
virtual bool Docking(const Point &rPos, tools::Rectangle &rRect) override
virtual ~DockingWindow() override
tools::Rectangle aFloatingRect
virtual bool PrepareToggleFloatingMode() override
std::unique_ptr< weld::Builder > m_xBuilder
virtual void EndDocking(const tools::Rectangle &rRect, bool bFloatMode) override
void ResizeIfDocking(Point const &, Size const &)
tools::Rectangle aDockingRect
virtual void dispose() override
ItemType GetCurrentType() const
const OUString & GetCurrentName() const
Item(OUString aCurrentName, ItemType eCurrentType)
Key(ScriptDocument, OUString aLibName)
bool operator==(Key const &) const
ScriptDocument m_aDocument
const ScriptDocument & GetDocument() const
void InsertInfo(ScriptDocument const &, OUString const &rLibName, OUString const &rCurrentName, ItemType eCurrentType)
std::unordered_map< Key, Item, Key::Hash > Map
Item const * GetInfo(ScriptDocument const &, OUString const &rLibName)
void RemoveInfoFor(ScriptDocument const &)
static sal_Int32 getModuleType(const css::uno::Reference< css::container::XNameContainer > &rLib, const OUString &rModName)
ModuleInfoHelper(const ModuleInfoHelper &)=delete
static void getObjectName(const css::uno::Reference< css::container::XNameContainer > &rLib, const OUString &rModName, OUString &rObjName)
ModuleInfoHelper & operator=(const ModuleInfoHelper &)=delete
encapsulates a document which contains Basic scripts and dialogs
virtual void Command(const CommandEvent &rCEvt) override
TabBar(vcl::Window *pParent)
virtual void EndRenaming() override
virtual TabBarAllowRenamingReturnCode AllowRenaming() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
friend friend class DockingWindow
constexpr auto LINE_SEP_CR
OUString CreateMgrAndLibStr(std::u16string_view rMgrName, std::u16string_view rLibName)
bool QueryReplaceMacro(std::u16string_view rName, weld::Widget *pParent)
bool QueryDelLib(std::u16string_view rName, bool bRef, weld::Widget *pParent)
bool QueryPassword(weld::Widget *pDialogParent, const Reference< script::XLibraryContainer > &xLibContainer, const OUString &rLibName, OUString &rPassword, bool bRepeat, bool bNewTitle)
sal_Int32 searchEOL(std::u16string_view rStr, sal_Int32 fromIndex)
sal_uInt32 CalcLineCount(SvStream &rStream)
bool QueryDelMacro(std::u16string_view rName, weld::Widget *pParent)
bool QueryDelDialog(std::u16string_view rName, weld::Widget *pParent)
void CutLines(OUString &rStr, sal_Int32 nStartLine, sal_Int32 nLines)
bool QueryDelModule(std::u16string_view rName, weld::Widget *pParent)
BasicDebugFlags nBasicFlags
size_t operator()(Key const &) const
TabBarAllowRenamingReturnCode