37#include <rtl/ustrbuf.hxx>
44#include <com/sun/star/reflection/XIdlClass.hpp>
56class CodeCompleteWindow;
57class ModulWindowLayout;
79 css::uno::Reference< css::beans::XMultiPropertySet >
106 virtual css::uno::Reference< css::awt::XVclWindowPeer >
GetComponentInterface(
bool bCreate =
true)
override;
119 virtual void Resize()
override;
135 virtual void dispose()
override;
161 bool GetProcedureName(std::u16string_view rLine, OUString& rProcType, OUString& rProcName)
const;
209 virtual void Resize()
override;
222 typedef std::pair<const weld::TreeIter&, OUString>
IterString;
229 virtual void dispose()
override;
231 void AddWatch(
const OUString& rVName );
243 virtual void Resize()
override;
249 virtual void dispose()
override;
266 virtual void Resize()
override;
272 virtual void dispose()
override;
300 virtual void Resize()
override;
303 virtual void DoInit()
override;
310 virtual void dispose()
override;
321 virtual OUString
GetTitle()
override;
324 virtual void SetReadOnly (
bool bReadOnly)
override;
353 void EditMacro(
const OUString& rMacroName );
390 virtual OUString
GetHid ()
const override;
402 virtual void dispose()
override;
408 virtual void UpdateDebug (
bool bBasicStopped)
override;
487 virtual void dispose()
override;
509 css::uno::Reference< css::reflection::XIdlClass >
xClass;
512 bool CheckField(
const OUString& sFieldName );
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
ModulWindow & rModulWindow
BreakPointList aBreakPointList
virtual void DataChanged(DataChangedEvent const &rDCEvt) override
BreakPoint * FindBreakPoint(const Point &rMousePos)
void ShowMarker(vcl::RenderContext &rRenderContext)
BreakPointList & GetBreakPoints()
void SetMarkerPos(sal_uInt16 nLine, bool bErrorMarker=false)
void setBackgroundColor(Color aColor)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
BreakPointWindow(vcl::Window *pParent, ModulWindow *)
tools::Long & GetCurYOffset()
void DoScroll(tools::Long nVertScroll)
virtual void Command(const CommandEvent &rCEvt) override
TextView * GetParentEditView()
void SetTextSelection(const TextSelection &aSel)
virtual ~CodeCompleteWindow() override
TextSelection m_aTextSelection
void HideAndRestoreFocus()
void InsertSelectedEntry()
VclPtr< EditorWindow > pParent
DECL_LINK(ImplSelectHdl, weld::TreeView &, void)
std::unique_ptr< weld::TreeView > m_xListBox
OUStringBuffer aFuncBuffer
CodeCompleteWindow(EditorWindow *pPar)
const TextSelection & GetTextSelection() const
DECL_LINK(ImplDoubleClickHdl, weld::TreeView &, bool)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void SetMatchingEntries()
void InsertEntry(const OUString &aStr)
virtual void dispose() override
void ResizeAndPositionListBox()
bool HandleKeyInput(const KeyEvent &rKeyEvt)
EditorWindow & GetEdtWindow()
virtual void Resize() override
VclPtr< ScrollAdaptor > aEWVScrollBar
ComplexEditorWindow(ModulWindow *pParent)
DECL_LINK(ScrollHdl, weld::Scrollbar &, void)
virtual void DataChanged(DataChangedEvent const &rDCEvt) override
BreakPointWindow & GetBrkWindow()
virtual void dispose() override
VclPtr< LineNumberWindow > aLineNumberWindow
virtual ~ComplexEditorWindow() override
VclPtr< EditorWindow > aEdtWindow
LineNumberWindow & GetLineNumberWindow()
VclPtr< BreakPointWindow > aBrkWindow
void SetLineNumberDisplay(bool b)
ScrollAdaptor & GetEWHScrollBar()
VclPtr< ScrollAdaptor > aEWHScrollBar
ScrollAdaptor & GetEWVScrollBar()
DECL_LINK(SyntaxTimerHdl, Timer *, void)
SyntaxHighlighter aHighlighter
EditorWindow(vcl::Window *pParent, ModulWindow *)
css::uno::Reference< css::beans::XMultiPropertySet > notifier_
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void KeyInput(const KeyEvent &rKeyEvt) override
OUString GetWordAtCursor()
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
tools::Long nCurTextWidth
void HandleAutoCloseParen()
void UpdateSyntaxHighlighting()
TextView * GetEditView() const
bool GetProcedureName(std::u16string_view rLine, OUString &rProcType, OUString &rProcName) const
void ChangeFontColor(Color aColor)
virtual void dispose() override
virtual void Command(const CommandEvent &rCEvt) override
FactoryFunction GetUITestFactory() const override
DECL_LINK(SetSourceInBasicHdl, void *, void)
void SetEditorZoomLevel(sal_uInt16 nNewZoomLevel)
std::set< sal_uInt16 > aSyntaxLineTable
virtual void LoseFocus() override
TextSelection GetLastHighlightPortionTextSelection() const
void HandleProcedureCompletion()
void ImpDoHighlight(sal_uInt32 nLineOff)
void ForceSyntaxTimeout()
virtual void RequestHelp(const HelpEvent &rHEvt) override
ImplSVEvent * m_nSetSourceInBasicId
void DoDelayedSyntaxHighlight(sal_uInt32 nPara)
void HandleAutoCloseDoubleQuotes()
std::unique_ptr< TextView > pEditView
ModulWindow & rModulWindow
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true) override
CodeCompleteDataCache aCodeCompleteCache
void DoSyntaxHighlight(sal_uInt32 nPara)
std::unique_ptr< ProgressInfo > pProgress
virtual ~EditorWindow() override
ExtTextEngine * GetEditEngine() const
virtual void MouseMove(const MouseEvent &rMEvt) override
void HandleCodeCompletion()
void CreateProgress(const OUString &rText, sal_uInt32 nRange)
OUString GetActualSubName(sal_uInt32 nLine)
sal_uInt16 nCurrentZoomLevel
void SetScrollBarRanges()
void SetupAndShowCodeCompleteWnd(const std::vector< OUString > &aEntryVect, TextSelection aSel)
virtual void Resize() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
VclPtr< CodeCompleteWindow > pCodeCompleteWnd
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
void ParagraphInsertedDeleted(sal_uInt32 nNewPara, bool bInserted)
std::unique_ptr< ExtTextEngine > pEditEngine
rtl::Reference< ChangesListener > listener_
sal_uInt16 GetCurrentZoom()
VclPtr< EditorWindow > pEditor
Color const & GetBackgroundColor() const
void NewConfig(bool bFirst)
virtual void ConfigurationChanged(utl::ConfigurationBroadcaster *, ConfigurationHints) override
o3tl::enumarray< TokenType, Color > aColors
virtual ~SyntaxColors() override
svtools::ColorConfig aConfig
Color const & GetFontColor() const
Color const & GetColor(TokenType eType) const
void SetActiveEditor(EditorWindow *pEditor_)
Color const & GetSyntaxBackgroundColor() const
ObjectCatalog & rObjectCatalog
virtual void dispose() override
void ShowWatchWindow(bool bVisible)
void ShowStackWindow(bool bVisible)
ModulWindowLayout(vcl::Window *pParent, ObjectCatalog &)
VclPtr< ModulWindow > pChild
virtual void Activating(BaseWindow &) override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Color const & GetSyntaxColor(TokenType eType) const
VclPtr< StackWindow > aStackWindow
virtual void Deactivating() override
bool IsStackWindowVisible()
virtual void OnFirstSize(tools::Long nWidth, tools::Long nHeight) override
basctl::ModulWindowLayout::SyntaxColors aSyntaxColors
virtual ~ModulWindowLayout() override
void BasicAddWatch(OUString const &)
virtual void UpdateDebug(bool bBasicStopped) override
VclPtr< WatchWindow > aWatchWindow
Color const & GetFontColor() const
virtual void GetState(SfxItemSet &, unsigned nWhich) override
bool IsWatchWindowVisible()
ModulWindowLayout & GetLayout()
BreakPointWindow & GetBreakPointWindow()
void BasicToggleBreakPoint()
virtual void printPage(sal_Int32 nPage, Printer *pPrinter) override
virtual void Activating() override
const OUString & GetModule() const
sal_Int32 FormatAndPrint(Printer *pPrinter, sal_Int32 nPage)
virtual sal_Int32 countPages(Printer *pPrinter) override
BasicDebugFlags BasicBreakHdl()
virtual sal_uInt16 StartSearchAndReplace(SvxSearchItem const &, bool bFromStart=false) override
virtual void OnNewDocument() override
virtual bool IsModified() override
ScrollAdaptor & GetEditVScrollBar()
void EditMacro(const OUString &rMacroName)
virtual OUString GetHid() const override
virtual void BasicStopped() override
SbModuleRef const & XModule()
virtual void SetReadOnly(bool bReadOnly) override
virtual void ExecuteGlobal(SfxRequest &rReq) override
virtual void UpdateData() override
virtual void StoreData() override
void SetModule(const OUString &aModule)
void SetSbModule(SbModule *pModule)
virtual void dispose() override
VclPtr< ComplexEditorWindow > m_aXEditorWindow
virtual void GetState(SfxItemSet &) override
void ShowCursor(bool bOn)
BreakPointList & GetBreakPoints()
virtual void Deactivating() override
EditorWindow & GetEditorWindow()
OUString GetSbModuleName()
virtual EntryDescriptor CreateEntryDescriptor() override
virtual void GetFocus() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
virtual ItemType GetType() const override
virtual SearchOptionFlags GetSearchOptions() override
virtual void ExecuteCommand(SfxRequest &rReq) override
void BasicErrorHdl(StarBASIC const *pBasic)
BasicStatus & GetBasicStatus()
virtual SfxUndoManager * GetUndoManager() override
virtual void DoScroll(Scrollable *pCurScrollBar) override
virtual bool HasActiveEditor() const override
void ToggleBreakPoint(sal_uInt16 nLine)
virtual bool AllowUndo() override
virtual bool IsReadOnly() override
virtual void BasicStarted() override
ScrollAdaptor & GetEditHScrollBar()
virtual void DoInit() override
ExtTextEngine * GetEditEngine()
virtual void Resize() override
virtual ~ModulWindow() override
void UpdateBreakPoint(const BreakPoint &rBrk)
LineNumberWindow & GetLineNumberWindow()
virtual OUString GetTitle() override
ModulWindowLayout & m_rLayout
void BasicToggleBreakPointEnabled()
void AssertValidEditEngine()
A docking window that contains a tree of the currently loaded macros.
encapsulates a document which contains Basic scripts and dialogs
std::unique_ptr< weld::Label > m_xTitle
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
StackWindow(Layout *pParent)
virtual void dispose() override
std::unique_ptr< weld::TreeView > m_xTreeListBox
virtual void Resize() override
virtual ~StackWindow() override
UnoTypeCodeCompletetor(const std::vector< OUString > &aVect, const OUString &sVarType)
std::vector< OUString > GetXIdlClassMethods() const
bool CanCodeComplete() const
css::uno::Reference< css::reflection::XIdlClass > xClass
std::vector< OUString > GetXIdlClassFields() const
bool CheckMethod(const OUString &sMethName)
bool CheckField(const OUString &sFieldName)
virtual void dispose() override
DECL_LINK(ExecuteUpdateWatches, void *, void)
std::unique_ptr< weld::TreeView > m_xTreeListBox
void UpdateWatches(bool bBasicStopped=false)
DECL_LINK(EditedEntryHdl, const IterString &, bool)
virtual ~WatchWindow() override
DECL_LINK(EditingEntryHdl, const weld::TreeIter &, bool)
ImplSVEvent * m_nUpdateWatchesId
void RemoveSelectedWatch()
void AddWatch(const OUString &rVName)
std::unique_ptr< weld::Label > m_xTitle
DECL_LINK(TreeListHdl, weld::TreeView &, void)
DECL_STATIC_LINK(WatchWindow, ButtonHdl, weld::Button &, void)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void implEnableChildren(const weld::TreeIter &rEntry, bool bEnable)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
std::pair< const weld::TreeIter &, OUString > IterString
SbxBase * ImplGetSBXForEntry(const weld::TreeIter &rEntry, bool &rbArrayElement)
WatchWindow(Layout *pParent)
std::unique_ptr< weld::Container > m_xTitleArea
std::unique_ptr< weld::Entry > m_xEdit
virtual void Resize() override
DECL_LINK(RequestingChildrenHdl, const weld::TreeIter &, bool)
DECL_LINK(ActivateHdl, weld::Entry &, bool)
std::unique_ptr< weld::Button > m_xRemoveWatchButton
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
void setTextEngineText(ExtTextEngine &, std::u16string_view)
OUString getTextEngineText(ExtTextEngine &)
Helper functions to get/set text in TextEngine using the stream interface.