LibreOffice Module basctl (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
basctl::Shell Class Reference

#include <basidesh.hxx>

Inheritance diagram for basctl::Shell:
[legend]
Collaboration diagram for basctl::Shell:
[legend]

Public Types

typedef std::map< sal_uInt16, VclPtr< BaseWindow > > WindowTable
 

Public Member Functions

 SFX_DECL_VIEWFACTORY (Shell)
 
 Shell (SfxViewFrame &rFrame, SfxViewShell *pOldSh)
 
virtual ~Shell () override
 
BaseWindowGetCurWindow () const
 
OUString const & GetCurLibName () const
 
const std::shared_ptr< LocalizationMgr > & GetCurLocalizationMgr () const
 
TabBarGetTabBar ()
 
WindowTableGetWindowTable ()
 
sal_uInt16 GetWindowId (BaseWindow const *pWin) const
 
SdrViewGetCurDlgView () const
 
SfxUndoManagerGetUndoManager () override
 
void SetGlobalEditorZoomLevel (sal_uInt16 nNewZoomLevel)
 
sal_uInt16 GetCurrentZoomSliderValue ()
 
virtual css::uno::Reference< css::view::XRenderable > GetRenderable () override
 
virtual SfxPrinterGetPrinter (bool bCreate=false) override
 
virtual sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL) override
 
virtual OUString GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false) override
 
virtual bool HasSelection (bool bText=true) const override
 
void GetState (SfxItemSet &)
 
void ExecuteGlobal (SfxRequest &rReq)
 
void ExecuteSearch (SfxRequest &rReq)
 
void ExecuteCurrent (SfxRequest &rReq)
 
void ExecuteBasic (SfxRequest &rReq)
 
void ExecuteDialog (SfxRequest &rReq)
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const override
 
bool CallBasicErrorHdl (StarBASIC const *pBasic)
 
BasicDebugFlags CallBasicBreakHdl (StarBASIC const *pBasic)
 
VclPtr< BaseWindowFindWindow (const ScriptDocument &rDocument, std::u16string_view rLibName, std::u16string_view rName, ItemType nType, bool bFindSuspended=false)
 
VclPtr< DialogWindowFindDlgWin (const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rName, bool bCreateIfNotExist=false, bool bFindSuspended=false)
 
VclPtr< ModulWindowFindBasWin (const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rModName, bool bCreateIfNotExist=false, bool bFindSuspended=false)
 
VclPtr< BaseWindowFindApplicationWindow ()
 
bool NextPage (bool bPrev)
 
bool IsAppBasicModified () const
 
void SetAppBasicModified (bool bModified)
 
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument () const override
 
void UpdateObjectCatalog ()
 
void RemoveWindow (BaseWindow *pWindow, bool bDestroy, bool bAllowChangeCurWindow=true)
 
- Public Member Functions inherited from SfxViewShell
 SfxViewShell (SfxViewFrame &rFrame, SfxViewShellFlags nFlags)
 
virtual ~SfxViewShell () override
 
SfxInPlaceClientGetIPClient () const
 
SfxInPlaceClientGetUIActiveClient () const
 
SfxInPlaceClientFindIPClient (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const
 
virtual ErrCode DoVerb (sal_Int32 nVerb)
 
void OutplaceActivated (bool bActive)
 
virtual void UIActivating (SfxInPlaceClient *pClient)
 
virtual void UIDeactivated (SfxInPlaceClient *pClient)
 
void JumpToMark (const OUString &rMark)
 
void VisAreaChanged ()
 
virtual bool PrepareClose (bool bUI=true)
 
virtual OUString GetSelectionText (bool bCompleteWords=false, bool bOnlyASample=false)
 
virtual bool HasSelection (bool bText=true) const
 
virtual SdrViewGetDrawView () const
 
void AddSubShell (SfxShell &rShell)
 
void RemoveSubShell (SfxShell *pShell=nullptr)
 
SfxShellGetSubShell (sal_uInt16)
 
virtual SfxShellGetFormShell ()
 
virtual const SfxShellGetFormShell () const
 
virtual void notifyWindow (vcl::LOKWindowId nLOKWindowId, const OUString &rAction, const std::vector< vcl::LOKPayloadItem > &rPayload=std::vector< vcl::LOKPayloadItem >()) const override
 
virtual void ShowCursor (bool bOn=true)
 
virtual bool KeyInput (const KeyEvent &rKeyEvent)
 
bool Escape ()
 
vcl::WindowGetWindow () const
 
weld::WindowGetFrameWeld () const
 
void SetWindow (vcl::Window *pViewPort)
 
const SvBorderGetBorderPixel () const
 
void SetBorderPixel (const SvBorder &rBorder)
 
void InvalidateBorder ()
 
SfxViewFrameGetViewFrame () const
 
virtual SfxPrinterGetPrinter (bool bCreate=false)
 
virtual sal_uInt16 SetPrinter (SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL)
 
virtual bool HasPrintOptionsPage () const
 
virtual std::unique_ptr< SfxTabPageCreatePrintOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions)
 
PrinterGetActivePrinter () const
 
virtual void WriteUserData (OUString &, bool bBrowse=false)
 
virtual void ReadUserData (const OUString &, bool bBrowse=false)
 
virtual void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void QueryObjAreaPixel (tools::Rectangle &rRect) const
 
virtual SfxObjectShellGetObjectShell () override
 
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument () const
 
void SetCurrentDocument () const
 
virtual css::uno::Reference< css::view::XRenderable > GetRenderable ()
 
virtual void MarginChanged ()
 
const SizeGetMargin () const
 
void SetMargin (const Size &)
 
void DisconnectAllClients ()
 
bool NewWindowAllowed () const
 
void SetNewWindowAllowed (bool bSet)
 
void SetController (SfxBaseController *pController)
 
css::uno::Reference< css::frame::XController > GetController () const
 
bool TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &rIn, const OUString &rMenuIdentifier, rtl::Reference< VCLXPopupMenu > &rOut, css::ui::ContextMenuExecuteEvent aEvent)
 
bool TryContextMenuInterception (const rtl::Reference< VCLXPopupMenu > &, const OUString &rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent)
 
void ExecPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
 
void StartPrint (const css::uno::Sequence< css::beans::PropertyValue > &, bool, bool)
 
const std::shared_ptr< vcl::PrinterController > & GetPrinterController () const
 
void AddRemoveClipboardListener (const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool)
 
css::uno::Reference< css::datatransfer::clipboard::XClipboardNotifier > GetClipboardNotifier () const
 
SAL_DLLPRIVATE SfxInPlaceClientGetUIActiveIPClient_Impl () const
 
SAL_DLLPRIVATE void AddContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
 
SAL_DLLPRIVATE void RemoveContextMenuInterceptor_Impl (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor)
 
SAL_DLLPRIVATE bool GlobalKeyInput_Impl (const KeyEvent &rKeyEvent)
 
SAL_DLLPRIVATE void NewIPClient_Impl (SfxInPlaceClient *pIPClient)
 
SAL_DLLPRIVATE void IPClientGone_Impl (SfxInPlaceClient const *pIPClient)
 
SAL_DLLPRIVATE void ResetAllClients_Impl (SfxInPlaceClient const *pIP)
 
SAL_DLLPRIVATE void SetPrinter_Impl (VclPtr< SfxPrinter > &pNewPrinter)
 
SAL_DLLPRIVATE bool HandleNotifyEvent_Impl (NotifyEvent const &rEvent)
 
SAL_DLLPRIVATE bool HasKeyListeners_Impl () const
 
SAL_DLLPRIVATE bool HasMouseClickListeners_Impl () const
 
SAL_DLLPRIVATE SfxBaseControllerGetBaseController_Impl () const
 
SAL_DLLPRIVATE void ExecPrint_Impl (SfxRequest &)
 
SAL_DLLPRIVATE void ExecMisc_Impl (SfxRequest &)
 
SAL_DLLPRIVATE void GetState_Impl (SfxItemSet &)
 
SAL_DLLPRIVATE void CheckIPClient_Impl (SfxInPlaceClient const *, const tools::Rectangle &)
 
SAL_DLLPRIVATE void PushSubShells_Impl (bool bPush=true)
 
SAL_DLLPRIVATE void PopSubShells_Impl ()
 
SAL_DLLPRIVATE bool ExecKey_Impl (const KeyEvent &aKey)
 
void setLibreOfficeKitViewCallback (SfxLokCallbackInterface *pCallback)
 
SfxLokCallbackInterfacegetLibreOfficeKitViewCallback () const
 
void dumpLibreOfficeKitViewState (rtl::OStringBuffer &rState)
 
virtual void libreOfficeKitViewCallback (int nType, const OString &pPayload) const override
 
virtual void libreOfficeKitViewCallbackWithViewId (int nType, const OString &pPayload, int nViewId) const override
 
virtual void libreOfficeKitViewInvalidateTilesCallback (const tools::Rectangle *pRect, int nPart, int nMode) const override
 
virtual void libreOfficeKitViewUpdatedCallback (int nType) const override
 
virtual void libreOfficeKitViewUpdatedCallbackPerViewId (int nType, int nViewId, int nSourceViewId) const override
 
virtual void flushPendingLOKInvalidateTiles ()
 
virtual void libreOfficeKitViewAddPendingInvalidateTiles () override
 
virtual std::optional< OString > getLOKPayload (int nType, int nViewId) const
 
void setTiledSearching (bool bTiledSearching)
 
virtual int getPart () const
 
virtual int getEditMode () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
ViewShellId GetViewShellId () const override
 
ViewShellDocId GetDocId () const override
 
virtual void notifyInvalidation (tools::Rectangle const *) const override
 
void NotifyOtherViews (int nType, const OString &rKey, const OString &rPayload) override
 
void NotifyOtherView (OutlinerViewShell *pOtherShell, int nType, const OString &rKey, const OString &rPayload) override
 
virtual void NotifyCursor (SfxViewShell *) const
 
virtual void afterCallbackRegistered ()
 
virtual vcl::WindowGetEditWindowForActiveOLEObj () const override
 
virtual ::Color GetColorConfigColor (svtools::ColorConfigEntry nColorType) const
 
virtual OUString GetColorConfigName () const
 
void SetLOKLanguageTag (const OUString &rBcp47LanguageTag)
 
const LanguageTagGetLOKLanguageTag () const
 
void SetLOKAccessibilityState (bool bEnabled)
 
std::pair< bool, OUString > GetLOKTimezone () const
 
void SetLOKTimezone (bool isSet, const OUString &rTimezone)
 
void SetLOKLocale (const OUString &rBcp47LanguageTag)
 
const LanguageTagGetLOKLocale () const
 
LOKDeviceFormFactor GetLOKDeviceFormFactor () const
 
bool isLOKDesktop () const
 
bool isLOKTablet () const
 
bool isLOKMobilePhone () const
 
virtual tools::Rectangle getLOKVisibleArea () const
 
void setBlockedCommandList (const char *blockedCommandList)
 
bool isBlockedCommand (OUString command)
 
void SetStoringHelper (std::shared_ptr< SfxStoringHelper > xHelper)
 
StylesHighlighterColorMapGetStylesHighlighterParaColorMap ()
 
StylesHighlighterColorMapGetStylesHighlighterCharColorMap ()
 
OUString getA11yFocusedParagraph () const
 
int getA11yCaretPosition () const
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTarget * GetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
virtual void Activate (bool bMDI)
 
virtual void Deactivate (bool bMDI)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
 
const T * GetItem (TypedWhichId< T > nWhich) const
 
void PutItem (const SfxPoolItem &rItem)
 
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
 
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
 
void VerbExec (SfxRequest &)
 
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
 
void SetContextName (const OUString &rsContextName)
 
void BroadcastContextForActivation (const bool bIsActivated)
 
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
 
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
 
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
 
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
 
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)
 
- Public Member Functions inherited from basctl::DocumentEventListener
 DocumentEventListener (const DocumentEventListener &)=delete
 
const DocumentEventListeneroperator= (const DocumentEventListener &)=delete
 
 DocumentEventListener ()=default
 
virtual void onDocumentCreated (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentOpened (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentSave (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentSaveDone (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentSaveAs (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentSaveAsDone (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentClosed (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentTitleChanged (const ScriptDocument &_rDocument)=0
 
virtual void onDocumentModeChanged (const ScriptDocument &_rDocument)=0
 
virtual ~DocumentEventListener ()
 

Static Public Member Functions

static sal_uInt16 GetMinZoom ()
 
static sal_uInt16 GetMaxZoom ()
 
static void CopyDialogResources (css::uno::Reference< css::io::XInputStreamProvider > &io_xISP, const ScriptDocument &rSourceDoc, const OUString &rSourceLibName, const ScriptDocument &rDestDoc, const OUString &rDestLibName, std::u16string_view rDlgName)
 
static void InvalidateControlSlots ()
 
- Static Public Member Functions inherited from SfxViewShell
static SAL_WARN_UNUSED_RESULT SfxViewShellGetFirst (bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SAL_WARN_UNUSED_RESULT SfxViewShellGetNext (const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
 
static SAL_WARN_UNUSED_RESULT SfxViewShellCurrent ()
 
static SAL_WARN_UNUSED_RESULT SfxViewShellGet (const css::uno::Reference< css::frame::XController > &i_rController)
 
static void SetCurrentDocId (ViewShellDocId nId)
 
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
 
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
 
static void VerbState (SfxItemSet &)
 

Private Member Functions

void Init ()
 
void InitTabBar ()
 
void InitScrollBars ()
 
void InitZoomLevel ()
 
void CheckWindows ()
 
void RemoveWindows (const ScriptDocument &rDocument, std::u16string_view rLibName)
 
void UpdateWindows ()
 
void StoreAllWindowData (bool bPersistent=true)
 
void SetMDITitle ()
 
void SetCurLib (const ScriptDocument &rDocument, const OUString &aLibName, bool bUpdateWindows=true, bool bCheck=true)
 
void SetCurLibForLocalization (const ScriptDocument &rDocument, const OUString &aLibName)
 
 DECL_LINK (TabBarHdl, ::TabBar *, void)
 
void AdjustPosSizePixel (const Point &rPos, const Size &rSize)
 
virtual void OuterResizePixel (const Point &rPos, const Size &rSize) override
 
sal_uInt16 InsertWindowInTable (BaseWindow *pNewWin)
 
virtual bool PrepareClose (bool bUI=true) override
 
void SetCurWindow (BaseWindow *pNewWin, bool bUpdateTabBar=false, bool bRememberAsCurrent=true)
 
void ManageToolbars ()
 
VclPtr< ModulWindowCreateBasWin (const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rModName)
 
VclPtr< DialogWindowCreateDlgWin (const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rDlgName)
 
VclPtr< ModulWindowShowActiveModuleWindow (StarBASIC const *pBasic)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void Activate (bool bMDI) override
 
virtual void Deactivate (bool bMDI) override
 
virtual void Move () override
 
virtual void ShowCursor (bool bOn=true) override
 
virtual void onDocumentCreated (const ScriptDocument &_rDocument) override
 
virtual void onDocumentOpened (const ScriptDocument &_rDocument) override
 
virtual void onDocumentSave (const ScriptDocument &_rDocument) override
 
virtual void onDocumentSaveDone (const ScriptDocument &_rDocument) override
 
virtual void onDocumentSaveAs (const ScriptDocument &_rDocument) override
 
virtual void onDocumentSaveAsDone (const ScriptDocument &_rDocument) override
 
virtual void onDocumentClosed (const ScriptDocument &_rDocument) override
 
virtual void onDocumentTitleChanged (const ScriptDocument &_rDocument) override
 
virtual void onDocumentModeChanged (const ScriptDocument &_rDocument) override
 

Static Private Member Functions

static void InvalidateBasicIDESlots ()
 
static void InitInterface_Impl ()
 SfxInterface initializer. More...
 

Private Attributes

WindowTable aWindowTable
 
sal_uInt16 nCurKey
 
VclPtr< BaseWindowpCurWin
 
ScriptDocument m_aCurDocument
 
OUString m_aCurLibName
 
std::shared_ptr< LocalizationMgrm_pCurLocalizationMgr
 
sal_uInt16 m_nCurrentZoomSliderValue
 
VclPtr< ScrollAdaptoraHScrollBar
 
VclPtr< ScrollAdaptoraVScrollBar
 
VclPtr< TabBarpTabBar
 
bool bCreatingWindow
 
VclPtr< ModulWindowLayoutpModulLayout
 
VclPtr< DialogWindowLayoutpDialogLayout
 
VclPtr< LayoutpLayout
 
VclPtr< ObjectCatalogaObjectCatalog
 
bool m_bAppBasicModified
 
bool mbJustOpened = false
 
DocumentEventNotifier m_aNotifier
 
css::uno::Reference< css::container::XContainerListener > m_xLibListener
 
std::unique_ptr< SvxSearchItemmpSearchItem
 

Static Private Attributes

static unsigned nShellCount = 0
 

Friends

class JavaDebuggingListenerImpl
 
class LocalizationMgr
 
class ContainerListenerImpl
 
bool implImportDialog (weld::Window *pWin, const ScriptDocument &rDocument, const OUString &rLibName)
 

Additional Inherited Members

- Protected Member Functions inherited from SfxViewShell
virtual void Activate (bool IsMDIActivate) override
 
virtual void Deactivate (bool IsMDIActivate) override
 
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize, bool inplaceEditModeChange)
 
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize)
 
virtual void SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY)
 
virtual void Move ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SfxShell
 SfxShell ()
 
 SfxShell (SfxViewShell *pViewSh)
 
void SetViewShell_Impl (SfxViewShell *pView)
 
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 

Detailed Description

Definition at line 58 of file basidesh.hxx.

Member Typedef Documentation

◆ WindowTable

Definition at line 63 of file basidesh.hxx.

Constructor & Destructor Documentation

◆ Shell()

basctl::Shell::Shell ( SfxViewFrame rFrame,
SfxViewShell pOldSh 
)

Definition at line 164 of file basidesh.cxx.

References ContainerListenerImpl, Create(), Init(), m_xLibListener, NO_NEWWINDOW, and nShellCount.

◆ ~Shell()

basctl::Shell::~Shell ( )
overridevirtual

Member Function Documentation

◆ Activate()

void basctl::Shell::Activate ( bool  bMDI)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1523 of file basides1.cxx.

References SfxViewShell::Activate(), and pCurWin.

◆ AdjustPosSizePixel()

void basctl::Shell::AdjustPosSizePixel ( const Point rPos,
const Size rSize 
)
private

◆ CallBasicBreakHdl()

BasicDebugFlags basctl::Shell::CallBasicBreakHdl ( StarBASIC const *  pBasic)

◆ CallBasicErrorHdl()

bool basctl::Shell::CallBasicErrorHdl ( StarBASIC const *  pBasic)

Definition at line 1406 of file basides1.cxx.

References ShowActiveModuleWindow().

Referenced by basctl::HandleBasicError().

◆ CheckWindows()

void basctl::Shell::CheckWindows ( )
private

◆ CopyDialogResources()

void basctl::Shell::CopyDialogResources ( css::uno::Reference< css::io::XInputStreamProvider > &  io_xISP,
const ScriptDocument rSourceDoc,
const OUString &  rSourceLibName,
const ScriptDocument rDestDoc,
const OUString &  rDestLibName,
std::u16string_view  rDlgName 
)
static

◆ CreateBasWin()

VclPtr< ModulWindow > basctl::Shell::CreateBasWin ( const ScriptDocument rDocument,
const OUString &  rLibName,
const OUString &  rModName 
)
private

◆ CreateDlgWin()

VclPtr< DialogWindow > basctl::Shell::CreateDlgWin ( const ScriptDocument rDocument,
const OUString &  rLibName,
const OUString &  rDlgName 
)
private

◆ Deactivate()

void basctl::Shell::Deactivate ( bool  bMDI)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 1534 of file basides1.cxx.

References basctl::MarkDocumentModified(), and pCurWin.

◆ DECL_LINK()

basctl::Shell::DECL_LINK ( TabBarHdl  ,
::TabBar ,
void   
)
private

◆ ExecuteBasic()

void basctl::Shell::ExecuteBasic ( SfxRequest rReq)

Definition at line 227 of file basides2.cxx.

References CheckWindows(), nShellCount, and pCurWin.

◆ ExecuteCurrent()

void basctl::Shell::ExecuteCurrent ( SfxRequest rReq)

◆ ExecuteDialog()

void basctl::Shell::ExecuteDialog ( SfxRequest rReq)

Definition at line 142 of file basides3.cxx.

References SfxRequest::GetSlot(), and pCurWin.

◆ ExecuteGlobal()

void basctl::Shell::ExecuteGlobal ( SfxRequest rReq)

Definition at line 283 of file basides1.cxx.

References aDocument, aName, aObjectCatalog, SfxRequest::AppendItem(), aWindowTable, basctl::ChooseMacro(), CreateBasWin(), CreateDlgWin(), basctl::CreateMacro(), DBG_ASSERT, SfxRequest::Done(), basctl::E_DIALOGS, basctl::E_SCRIPTS, SfxShell::ExecuteSlot(), FindBasWin(), FindDlgWin(), StarBASIC::FindModule(), FindWindow(), VclPtr< class reference_type >::get(), SfxItemSet::Get(), basctl::ScriptDocument::getApplicationScriptDocument(), SfxRequest::GetArg(), SfxRequest::GetArgs(), basctl::GetBindingsPtr(), TextEngine::GetCharHeight(), GetCurrentZoomSliderValue(), basctl::SbxItem::GetDocument(), basctl::ScriptDocument::getDocumentForBasicManager(), basctl::ScriptDocument::getDocumentWithURLOrCaption(), SfxShell::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxRequest::GetFrameWeld(), SfxItemSet::GetItemState(), BasicManager::GetLib(), basctl::SbxItem::GetLibName(), TextEngine::GetLineCount(), GetMaxZoom(), SbModule::GetMethod(), basctl::SbxItem::GetMethodName(), SbModule::GetMethods(), GetMinZoom(), StarBASIC::GetModules(), basctl::SbxItem::GetName(), TextEngine::GetParagraphCount(), SfxRequest::GetSlot(), TextView::GetStartDocPos(), TextView::GetTextEngine(), TextEngine::GetTextHeight(), basctl::SbxItem::GetType(), SfxUnoAnyItem::GetValue(), CntUInt16Item::GetValue(), CntUInt32Item::GetValue(), CntUnencodedStringItem::GetValue(), GetValue, SfxViewShell::GetViewFrame(), TextView::GetWindow(), GetWindowId(), vcl::Window::GrabFocus(), i, SfxRequest::Ignore(), basctl::BaseWindow::IsSuspended(), basctl::lcl_InvalidateZoomSlots(), m_aCurDocument, m_aCurLibName, m_pCurLocalizationMgr, basctl::MarkDocumentModified(), nCount, nId, basctl::Organize(), pCurWin, pLayout, pModulLayout, pTabBar, basctl::QueryPassword(), RemoveWindow(), RemoveWindows(), basctl::RenameModule(), weld::DialogController::runAsync(), TextView::Scroll(), SetCurLib(), SetCurWindow(), SetGlobalEditorZoomLevel(), TextView::SetSelection(), SfxGetpApp(), TextView::ShowCursor(), StartListening, basctl::StopBasic(), StoreAllWindowData(), basctl::BaseWindow::StoreData(), SfxViewFrame::ToTop(), basctl::TYPE_DIALOG, basctl::TYPE_METHOD, basctl::TYPE_MODULE, basctl::BaseWindow::UpdateData(), UpdateWindows(), xModel, Point::Y(), basegfx::zoomtools::zoomIn(), and basegfx::zoomtools::zoomOut().

◆ ExecuteSearch()

void basctl::Shell::ExecuteSearch ( SfxRequest rReq)

◆ FindApplicationWindow()

VclPtr< BaseWindow > basctl::Shell::FindApplicationWindow ( )

◆ FindBasWin()

VclPtr< ModulWindow > basctl::Shell::FindBasWin ( const ScriptDocument rDocument,
const OUString &  rLibName,
const OUString &  rModName,
bool  bCreateIfNotExist = false,
bool  bFindSuspended = false 
)

◆ FindDlgWin()

VclPtr< DialogWindow > basctl::Shell::FindDlgWin ( const ScriptDocument rDocument,
const OUString &  rLibName,
const OUString &  rName,
bool  bCreateIfNotExist = false,
bool  bFindSuspended = false 
)

◆ FindWindow()

VclPtr< BaseWindow > basctl::Shell::FindWindow ( const ScriptDocument rDocument,
std::u16string_view  rLibName,
std::u16string_view  rName,
ItemType  nType,
bool  bFindSuspended = false 
)

◆ GetCurDlgView()

SdrView * basctl::Shell::GetCurDlgView ( ) const

Definition at line 133 of file basides3.cxx.

References pCurWin.

Referenced by basctl::PropBrw::Update().

◆ GetCurLibName()

OUString const & basctl::Shell::GetCurLibName ( ) const
inline

Definition at line 163 of file basidesh.hxx.

References m_aCurLibName.

Referenced by GetState(), and basctl::ManageLanguageDialog::Init().

◆ GetCurLocalizationMgr()

const std::shared_ptr< LocalizationMgr > & basctl::Shell::GetCurLocalizationMgr ( ) const
inline

Definition at line 164 of file basidesh.hxx.

References m_pCurLocalizationMgr.

Referenced by GetState(), and basctl::LanguageBox::SetLanguage().

◆ GetCurrentDocument()

Reference< XModel > basctl::Shell::GetCurrentDocument ( ) const
overridevirtual

Reimplemented from SfxViewShell.

Definition at line 1515 of file basides1.cxx.

References pCurWin.

Referenced by basctl::PropBrw::Update().

◆ GetCurrentZoomSliderValue()

sal_uInt16 basctl::Shell::GetCurrentZoomSliderValue ( )
inline

Definition at line 175 of file basidesh.hxx.

References m_nCurrentZoomSliderValue.

Referenced by basctl::EditorWindow::EditorWindow(), ExecuteGlobal(), and GetState().

◆ GetCurWindow()

BaseWindow * basctl::Shell::GetCurWindow ( ) const
inline

Definition at line 162 of file basidesh.hxx.

References pCurWin.

Referenced by basctl::LocalizationMgr::handleSetCurrentLocale().

◆ GetMaxZoom()

static sal_uInt16 basctl::Shell::GetMaxZoom ( )
inlinestatic

Definition at line 177 of file basidesh.hxx.

References basctl::MAX_ZOOM_LEVEL.

Referenced by basctl::EditorWindow::Command(), ExecuteGlobal(), and GetState().

◆ GetMinZoom()

static sal_uInt16 basctl::Shell::GetMinZoom ( )
inlinestatic

Definition at line 176 of file basidesh.hxx.

References basctl::MIN_ZOOM_LEVEL.

Referenced by basctl::EditorWindow::Command(), ExecuteGlobal(), and GetState().

◆ GetPrinter()

SfxPrinter * basctl::Shell::GetPrinter ( bool  bCreate = false)
overridevirtual

◆ GetRenderable()

Reference< view::XRenderable > basctl::Shell::GetRenderable ( )
overridevirtual

Reimplemented from SfxViewShell.

Definition at line 43 of file basides2.cxx.

References pCurWin.

◆ GetSelectionText()

OUString basctl::Shell::GetSelectionText ( bool  bCompleteWords = false,
bool  bOnlyASample = false 
)
overridevirtual

Reimplemented from SfxViewShell.

Definition at line 59 of file basides2.cxx.

References TextSelection::GetEnd(), TextPaM::GetPara(), TextSelection::GetStart(), and pCurWin.

Referenced by GetState().

◆ GetState()

void basctl::Shell::GetState ( SfxItemSet rSet)

◆ GetTabBar()

TabBar & basctl::Shell::GetTabBar ( )
inline

Definition at line 166 of file basidesh.hxx.

References pTabBar.

Referenced by basctl::RenameDialog(), and basctl::RenameModule().

◆ GetUndoManager()

SfxUndoManager * basctl::Shell::GetUndoManager ( )
overridevirtual

Reimplemented from SfxShell.

Definition at line 502 of file basidesh.cxx.

References pCurWin.

Referenced by ExecuteCurrent(), and GetState().

◆ GetWindowId()

sal_uInt16 basctl::Shell::GetWindowId ( BaseWindow const *  pWin) const

◆ GetWindowTable()

WindowTable & basctl::Shell::GetWindowTable ( )
inline

Definition at line 167 of file basidesh.hxx.

References aWindowTable.

Referenced by basctl::FindDialogWindowForEditor(), and basctl::TabBar::Sort().

◆ HasSelection()

bool basctl::Shell::HasSelection ( bool  bText = true) const
overridevirtual

Reimplemented from SfxViewShell.

Definition at line 48 of file basides2.cxx.

References TextView::HasSelection(), and pCurWin.

Referenced by GetState().

◆ HasUIFeature()

bool basctl::Shell::HasUIFeature ( SfxShellFeature  nFeature) const
overridevirtual

Reimplemented from SfxShell.

Definition at line 1256 of file basides1.cxx.

References pCurWin.

◆ Init()

void basctl::Shell::Init ( void  )
private

◆ InitInterface_Impl()

static void basctl::Shell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

◆ InitScrollBars()

void basctl::Shell::InitScrollBars ( )
private

Definition at line 453 of file basidesh.cxx.

References aHScrollBar, and aVScrollBar.

Referenced by Init().

◆ InitTabBar()

void basctl::Shell::InitTabBar ( )
private

Definition at line 461 of file basidesh.cxx.

References LINK, and pTabBar.

Referenced by Init().

◆ InitZoomLevel()

void basctl::Shell::InitZoomLevel ( )
private

◆ InsertWindowInTable()

sal_uInt16 basctl::Shell::InsertWindowInTable ( BaseWindow pNewWin)
private

Definition at line 841 of file basidesh.cxx.

References aWindowTable, and nCurKey.

Referenced by CreateBasWin(), and CreateDlgWin().

◆ InvalidateBasicIDESlots()

void basctl::Shell::InvalidateBasicIDESlots ( )
staticprivate

Definition at line 849 of file basidesh.cxx.

References basctl::GetBindingsPtr(), basctl::GetShell(), and SfxBindings::Invalidate().

Referenced by SetCurWindow().

◆ InvalidateControlSlots()

void basctl::Shell::InvalidateControlSlots ( )
static

◆ IsAppBasicModified()

bool basctl::Shell::IsAppBasicModified ( ) const
inline

Definition at line 205 of file basidesh.hxx.

References m_bAppBasicModified.

Referenced by GetState(), and basctl::IMPL_LINK().

◆ ManageToolbars()

void basctl::Shell::ManageToolbars ( )
private

Definition at line 1343 of file basides1.cxx.

References a, SfxShell::GetFrame(), SfxViewShell::GetViewFrame(), pCurWin, and u.

Referenced by SetCurWindow().

◆ Move()

void basctl::Shell::Move ( )
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 216 of file basides2.cxx.

◆ NextPage()

bool basctl::Shell::NextPage ( bool  bPrev)

Definition at line 482 of file basidesh.cxx.

References aWindowTable, nPos, pTabBar, and SetCurWindow().

◆ Notify()

void basctl::Shell::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

◆ onDocumentClosed()

void basctl::Shell::onDocumentClosed ( const ScriptDocument _rDocument)
overrideprivatevirtual

◆ onDocumentCreated()

void basctl::Shell::onDocumentCreated ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 269 of file basidesh.cxx.

References pCurWin, and UpdateWindows().

◆ onDocumentModeChanged()

void basctl::Shell::onDocumentModeChanged ( const ScriptDocument _rDocument)
overrideprivatevirtual

◆ onDocumentOpened()

void basctl::Shell::onDocumentOpened ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 277 of file basidesh.cxx.

References pCurWin, and UpdateWindows().

◆ onDocumentSave()

void basctl::Shell::onDocumentSave ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 284 of file basidesh.cxx.

References StoreAllWindowData().

◆ onDocumentSaveAs()

void basctl::Shell::onDocumentSaveAs ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 296 of file basidesh.cxx.

References StoreAllWindowData().

◆ onDocumentSaveAsDone()

void basctl::Shell::onDocumentSaveAsDone ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 301 of file basidesh.cxx.

◆ onDocumentSaveDone()

void basctl::Shell::onDocumentSaveDone ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 289 of file basidesh.cxx.

References basctl::GetBindingsPtr().

◆ onDocumentTitleChanged()

void basctl::Shell::onDocumentTitleChanged ( const ScriptDocument _rDocument)
overrideprivatevirtual

Implements basctl::DocumentEventListener.

Definition at line 352 of file basidesh.cxx.

References basctl::GetBindingsPtr(), and SetMDITitle().

◆ OuterResizePixel()

void basctl::Shell::OuterResizePixel ( const Point rPos,
const Size rSize 
)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 468 of file basidesh.cxx.

References AdjustPosSizePixel().

◆ PrepareClose()

bool basctl::Shell::PrepareClose ( bool  bUI = true)
overrideprivatevirtual

◆ RemoveWindow()

void basctl::Shell::RemoveWindow ( BaseWindow pWindow,
bool  bDestroy,
bool  bAllowChangeCurWindow = true 
)

◆ RemoveWindows()

void basctl::Shell::RemoveWindows ( const ScriptDocument rDocument,
std::u16string_view  rLibName 
)
private

◆ SetAppBasicModified()

void basctl::Shell::SetAppBasicModified ( bool  bModified)
inline

Definition at line 206 of file basidesh.hxx.

References m_bAppBasicModified.

Referenced by basctl::MarkDocumentModified(), and StoreAllWindowData().

◆ SetCurLib()

void basctl::Shell::SetCurLib ( const ScriptDocument rDocument,
const OUString &  aLibName,
bool  bUpdateWindows = true,
bool  bCheck = true 
)
private

◆ SetCurLibForLocalization()

void basctl::Shell::SetCurLibForLocalization ( const ScriptDocument rDocument,
const OUString &  aLibName 
)
private

◆ SetCurWindow()

void basctl::Shell::SetCurWindow ( BaseWindow pNewWin,
bool  bUpdateTabBar = false,
bool  bRememberAsCurrent = true 
)
private

◆ SetGlobalEditorZoomLevel()

void basctl::Shell::SetGlobalEditorZoomLevel ( sal_uInt16  nNewZoomLevel)

◆ SetMDITitle()

void basctl::Shell::SetMDITitle ( )
private

◆ SetPrinter()

sal_uInt16 basctl::Shell::SetPrinter ( SfxPrinter pNewPrinter,
SfxPrinterChangeFlags  nDiffFlags = SFX_PRINTER_ALL 
)
overridevirtual

◆ SFX_DECL_VIEWFACTORY()

basctl::Shell::SFX_DECL_VIEWFACTORY ( Shell  )

◆ ShowActiveModuleWindow()

VclPtr< ModulWindow > basctl::Shell::ShowActiveModuleWindow ( StarBASIC const *  pBasic)
private

◆ ShowCursor()

void basctl::Shell::ShowCursor ( bool  bOn = true)
overrideprivatevirtual

Reimplemented from SfxViewShell.

Definition at line 220 of file basides2.cxx.

References pCurWin.

◆ StoreAllWindowData()

void basctl::Shell::StoreAllWindowData ( bool  bPersistent = true)
private

◆ UpdateObjectCatalog()

void basctl::Shell::UpdateObjectCatalog ( )
inline

Definition at line 220 of file basidesh.hxx.

References aObjectCatalog.

Referenced by basctl::MarkDocumentModified().

◆ UpdateWindows()

void basctl::Shell::UpdateWindows ( )
private

Friends And Related Function Documentation

◆ ContainerListenerImpl

friend class ContainerListenerImpl
friend

Definition at line 96 of file basidesh.hxx.

Referenced by Shell().

◆ implImportDialog

bool implImportDialog ( weld::Window pWin,
const ScriptDocument rDocument,
const OUString &  rLibName 
)
friend

Definition at line 784 of file baside3.cxx.

◆ JavaDebuggingListenerImpl

friend class JavaDebuggingListenerImpl
friend

Definition at line 66 of file basidesh.hxx.

◆ LocalizationMgr

friend class LocalizationMgr
friend

Definition at line 67 of file basidesh.hxx.

Member Data Documentation

◆ aHScrollBar

VclPtr<ScrollAdaptor> basctl::Shell::aHScrollBar
private

Definition at line 79 of file basidesh.hxx.

Referenced by AdjustPosSizePixel(), CreateBasWin(), CreateDlgWin(), InitScrollBars(), and ~Shell().

◆ aObjectCatalog

VclPtr<ObjectCatalog> basctl::Shell::aObjectCatalog
private

◆ aVScrollBar

VclPtr<ScrollAdaptor> basctl::Shell::aVScrollBar
private

Definition at line 80 of file basidesh.hxx.

Referenced by AdjustPosSizePixel(), CreateBasWin(), CreateDlgWin(), InitScrollBars(), and ~Shell().

◆ aWindowTable

WindowTable basctl::Shell::aWindowTable
private

◆ bCreatingWindow

bool basctl::Shell::bCreatingWindow
private

Definition at line 82 of file basidesh.hxx.

Referenced by CreateBasWin(), CreateDlgWin(), Init(), and UpdateWindows().

◆ m_aCurDocument

ScriptDocument basctl::Shell::m_aCurDocument
private

◆ m_aCurLibName

OUString basctl::Shell::m_aCurLibName
private

◆ m_aNotifier

DocumentEventNotifier basctl::Shell::m_aNotifier
private

Definition at line 94 of file basidesh.hxx.

Referenced by ~Shell().

◆ m_bAppBasicModified

bool basctl::Shell::m_bAppBasicModified
private

Definition at line 91 of file basidesh.hxx.

Referenced by IsAppBasicModified(), and SetAppBasicModified().

◆ m_nCurrentZoomSliderValue

sal_uInt16 basctl::Shell::m_nCurrentZoomSliderValue
private

◆ m_pCurLocalizationMgr

std::shared_ptr<LocalizationMgr> basctl::Shell::m_pCurLocalizationMgr
private

◆ m_xLibListener

css::uno::Reference< css::container::XContainerListener > basctl::Shell::m_xLibListener
private

Definition at line 97 of file basidesh.hxx.

Referenced by SetCurLib(), Shell(), and ~Shell().

◆ mbJustOpened

bool basctl::Shell::mbJustOpened = false
private

Definition at line 92 of file basidesh.hxx.

Referenced by ExecuteSearch(), and GetState().

◆ mpSearchItem

std::unique_ptr<SvxSearchItem> basctl::Shell::mpSearchItem
private

Definition at line 98 of file basidesh.hxx.

Referenced by ExecuteSearch(), and GetState().

◆ nCurKey

sal_uInt16 basctl::Shell::nCurKey
private

Definition at line 71 of file basidesh.hxx.

Referenced by Init(), and InsertWindowInTable().

◆ nShellCount

unsigned basctl::Shell::nShellCount = 0
staticprivate

Definition at line 115 of file basidesh.hxx.

Referenced by ExecuteBasic(), Shell(), and ~Shell().

◆ pCurWin

VclPtr<BaseWindow> basctl::Shell::pCurWin
private

◆ pDialogLayout

VclPtr<DialogWindowLayout> basctl::Shell::pDialogLayout
private

Definition at line 86 of file basidesh.hxx.

Referenced by CreateDlgWin(), SetCurWindow(), and ~Shell().

◆ pLayout

VclPtr<Layout> basctl::Shell::pLayout
private

Definition at line 87 of file basidesh.hxx.

Referenced by AdjustPosSizePixel(), ExecuteGlobal(), GetState(), Notify(), and SetCurWindow().

◆ pModulLayout

VclPtr<ModulWindowLayout> basctl::Shell::pModulLayout
private

Definition at line 85 of file basidesh.hxx.

Referenced by CreateBasWin(), ExecuteGlobal(), GetState(), SetCurWindow(), and ~Shell().

◆ pTabBar

VclPtr<TabBar> basctl::Shell::pTabBar
private

The documentation for this class was generated from the following files: