36#include <com/sun/star/script/ModuleType.hpp>
37#include <com/sun/star/script/XLibraryContainerPassword.hpp>
38#include <com/sun/star/script/XLibraryContainer2.hpp>
39#include <com/sun/star/frame/XLayoutManager.hpp>
42#include <osl/diagnose.h>
50#include <svx/svxids.hrc>
77 static sal_uInt16
const aInval[] = {
78 SID_ZOOM_OUT, SID_ZOOM_IN, SID_ATTR_ZOOMSLIDER, 0
89 sal_uInt16 nSlot = rReq.
GetSlot();
92 if (nSlot == SID_BASICIDE_REPEAT_SEARCH && !
mpSearchItem)
100 case SID_SEARCH_OPTIONS:
102 case SID_SEARCH_ITEM:
109 case SID_BASICIDE_REPEAT_SEARCH:
112 if (!
pCurWin->HasActiveEditor())
116 if ( nSlot == SID_BASICIDE_REPEAT_SEARCH )
130 sal_Int32 nFound = 0;
132 if (
mpSearchItem->GetCommand() == SvxSearchCmd::REPLACE_ALL )
134 sal_uInt16 nActModWindows = 0;
142 bool bAllModules = nActModWindows <= 1;
146 VclMessageType::Question, VclButtonsType::YesNo,
147 IDEResId(RID_STR_SEARCHALLMODULES)));
148 xQueryBox->set_default_response(
RET_YES);
149 bAllModules = xQueryBox->run() ==
RET_YES;
163 OUString aReplStr(
IDEResId(RID_STR_SEARCHREPLACES));
164 aReplStr = aReplStr.replaceAll(
"XX", OUString::number(nFound));
167 VclMessageType::Info, VclButtonsType::Ok,
173 bool bCanceled =
false;
178 bool bChangeCurWindow =
false;
180 [
this](
const WindowTable::value_type& item) { return item.second == pCurWin; });
185 bool bSearchedFromStart =
false;
186 while ( !nFound && !bCanceled && ( pWin || !bSearchedFromStart ) )
192 auto xParent = pChildWin ? pChildWin->
GetController() :
nullptr;
195 VclMessageType::Question, VclButtonsType::YesNo,
196 IDEResId(RID_STR_SEARCHFROMSTART)));
197 xQueryBox->set_default_response(
RET_YES);
198 if (xQueryBox->run() ==
RET_YES)
203 bSearchedFromStart =
true;
219 bChangeCurWindow =
true;
223 if ( pWin && ( pWin !=
pCurWin ) )
227 pWin = it !=
aWindowTable.cend() ? it->second.get() :
nullptr;
232 if ( !nFound && bSearchedFromStart )
234 if ( bChangeCurWindow )
237 if ( !nFound && !bCanceled )
240 VclMessageType::Info, VclButtonsType::Ok,
250 pCurWin->ExecuteCommand( rReq );
261 case SID_BASICIDE_HIDECURPAGE:
267 case SID_BASICIDE_RENAMECURRENT:
278 pCurWin->ExecuteCommand( rReq );
285 sal_uInt16 nSlot = rReq.
GetSlot();
288 case SID_NEWDOCDIRECT:
300 pMCurWin->BasicStop();
316 uno::Reference< task::XStatusIndicator > xStatusIndicator;
319 if ( pStatusIndicatorItem )
320 OSL_VERIFY( pStatusIndicatorItem->
GetValue() >>= xStatusIndicator );
327 uno::Reference< task::XStatusIndicatorFactory > xStatFactory(
330 if( xStatFactory.is() )
331 xStatusIndicator = xStatFactory->createStatusIndicator();
334 if ( xStatusIndicator.is() )
338 aDocument.saveDocument( xStatusIndicator );
343 pBindings->Invalidate( SID_DOC_MODIFIED );
344 pBindings->Invalidate( SID_SAVEDOC );
345 pBindings->Invalidate( SID_SIGNATURE );
350 case SID_BASICIDE_MODULEDLG:
361 case SID_BASICIDE_CHOOSEMACRO:
366 case SID_BASICIDE_CREATEMACRO:
367 case SID_BASICIDE_EDITMACRO:
370 const SfxMacroInfoItem& rInfo = rReq.
GetArgs()->
Get(SID_BASICIDE_ARG_MACROINFO );
372 DBG_ASSERT( pBasMgr,
"Nothing selected in basic tree?" );
377 OUString aLibName( rInfo.GetLib() );
378 if ( aLibName.isEmpty() )
379 aLibName =
"Standard" ;
388 pBasic = pBasMgr->
GetLib( aLibName );
394 if ( pBasic && rReq.
GetSlot() == SID_BASICIDE_CREATEMACRO )
399 if ( !rInfo.GetModule().isEmpty() || pBasic->
GetModules().empty() )
401 const OUString& aModName = rInfo.GetModule();
403 OUString sModuleCode;
404 if (
aDocument.createModule( aLibName, aModName,
false, sModuleCode ) )
411 if ( pModule && !pModule->
GetMethods()->Find( rInfo.GetMethod(), SbxClassType::Method ) )
417 DBG_ASSERT( pWin,
"Edit/Create Macro: Window was not created/found!" );
419 pWin->EditMacro( rInfo.GetMethod() );
423 case SID_BASICIDE_OBJCAT:
430 pBindings->Invalidate(SID_BASICIDE_OBJCAT);
433 case SID_BASICIDE_WATCH:
441 pBindings->Invalidate(SID_BASICIDE_WATCH);
445 case SID_BASICIDE_STACK:
453 pBindings->Invalidate(SID_BASICIDE_STACK);
457 case SID_BASICIDE_NAMECHANGEDONTAB:
465 const OUString& aNewName( rModName.
GetValue() );
466 OUString aOldName( pWin->GetName() );
467 if ( aNewName != aOldName )
469 bool bRenameOk =
false;
472 const OUString& aLibName = pModWin->GetLibName();
487 bRenameOk = pDlgWin->RenameDialog( aNewName );
508 case SID_BASICIDE_STOREMODULESOURCE:
509 case SID_BASICIDE_UPDATEMODULESOURCE:
512 const SfxMacroInfoItem& rInfo = rReq.
GetArgs()->
Get(SID_BASICIDE_ARG_MACROINFO );
514 DBG_ASSERT( pBasMgr,
"Store source: No BasMgr?" );
519 if ( rReq.
GetSlot() == SID_BASICIDE_STOREMODULESOURCE )
526 case SID_BASICIDE_STOREALLMODULESOURCES:
527 case SID_BASICIDE_UPDATEALLMODULESOURCES:
534 if ( rReq.
GetSlot() == SID_BASICIDE_STOREALLMODULESOURCES )
542 case SID_BASICIDE_LIBSELECTED:
543 case SID_BASICIDE_LIBREMOVED:
544 case SID_BASICIDE_LIBLOADED:
548 uno::Reference< frame::XModel >
xModel( rShellItem.
GetValue(), UNO_QUERY );
551 const OUString& aLibName( rLibNameItem.
GetValue() );
553 if ( nSlot == SID_BASICIDE_LIBSELECTED )
562 if ( xModLibContainer.is() && xModLibContainer->hasByName( aLibName ) )
565 if ( xPasswd.is() && xPasswd->isLibraryPasswordProtected( aLibName ) && !xPasswd->isLibraryPasswordVerified( aLibName ) )
580 pBindings->Invalidate(SID_BASICIDE_LIBSELECTOR,
true);
583 else if ( nSlot == SID_BASICIDE_LIBREMOVED )
594 pBindings->Invalidate( SID_BASICIDE_LIBSELECTOR );
602 case SID_BASICIDE_NEWMODULE:
605 DBG_ASSERT( pWin,
"New Module: Could not create window!" );
609 case SID_BASICIDE_NEWDIALOG:
612 DBG_ASSERT( pWin,
"New Module: Could not create window!" );
616 case SID_BASICIDE_SBXRENAMED:
621 case SID_BASICIDE_SBXINSERTED:
626 const OUString& aLibName( rSbxItem.
GetLibName() );
637 case SID_BASICIDE_SBXDELETED:
647 case SID_BASICIDE_SHOWSBX:
652 const OUString& aLibName( rSbxItem.
GetLibName() );
669 DBG_ASSERT( pWin,
"Window was not created!" );
674 case SID_BASICIDE_SHOWWINDOW:
676 std::unique_ptr< ScriptDocument > pDocument;
681 const OUString& sDocumentCaption = pDocumentItem->
GetValue();
682 if ( !sDocumentCaption.isEmpty() )
687 if (!pDocument && pDocModelItem)
689 uno::Reference< frame::XModel >
xModel( pDocModelItem->
GetValue(), UNO_QUERY );
701 OUString aLibName( pLibNameItem->
GetValue() );
702 pDocument->loadLibraryIfExists(
E_SCRIPTS, aLibName );
708 OUString aModType(
"Module" );
709 OUString aType( aModType );
715 if ( aType == aModType )
717 else if ( aType ==
"Dialog" )
731 pModWin->AssertValidEditEngine();
732 TextView* pTextView = pModWin->GetEditView();
738 sal_uInt32 nLine = pLineItem->
GetValue();
739 sal_uInt32 nLineCount = 0;
742 if ( nLine > nLineCount )
748 tools::Long nVisHeight = pModWin->GetOutputSizePixel().Height();
750 if ( nTextHeight > nVisHeight )
755 nNewY = std::min( nNewY, nMaxY );
756 pTextView->
Scroll( 0, -( nNewY - nOldY ) );
758 pModWin->GetEditVScrollBar().SetThumbPos( pTextView->
GetStartDocPos().
Y() );
760 sal_uInt16 nCol1 = 0, nCol2 = 0;
792 case SID_BASICIDE_MANAGE_LANG:
794 auto pRequest = std::make_shared<SfxRequest>(rReq);
803 case SID_ATTR_ZOOMSLIDER:
808 if (pArgs && pArgs->
GetItemState(SID_ATTR_ZOOMSLIDER,
true, &pItem ) == SfxItemState::SET)
820 if (nSlot == SID_ZOOM_IN)
845 case SID_NEWDOCDIRECT:
859 bool bDisable =
false;
896 case SID_BASICIDE_MODULEDLG:
903 case SID_BASICIDE_OBJCAT:
912 case SID_BASICIDE_WATCH:
926 case SID_BASICIDE_STACK:
940 case SID_BASICIDE_SHOWSBX:
941 case SID_BASICIDE_CREATEMACRO:
942 case SID_BASICIDE_EDITMACRO:
943 case SID_BASICIDE_NAMECHANGEDONTAB:
949 case SID_BASICIDE_ADDWATCH:
950 case SID_BASICIDE_REMOVEWATCH:
952 case SID_BASICSAVEAS:
953 case SID_BASICIDE_MATCHGROUP:
962 case SID_BASICSTEPINTO:
963 case SID_BASICSTEPOVER:
964 case SID_BASICSTEPOUT:
965 case SID_BASICIDE_TOGGLEBRKPNT:
966 case SID_BASICIDE_MANAGEBRKPNTS:
977 case SID_BASICCOMPILE:
990 case SID_CHOOSE_CONTROLS:
991 case SID_DIALOG_TESTMODE:
992 case SID_INSERT_SELECT:
993 case SID_INSERT_PUSHBUTTON:
994 case SID_INSERT_RADIOBUTTON:
995 case SID_INSERT_CHECKBOX:
996 case SID_INSERT_LISTBOX:
997 case SID_INSERT_COMBOBOX:
998 case SID_INSERT_GROUPBOX:
999 case SID_INSERT_EDIT:
1000 case SID_INSERT_FIXEDTEXT:
1001 case SID_INSERT_IMAGECONTROL:
1002 case SID_INSERT_PROGRESSBAR:
1003 case SID_INSERT_HSCROLLBAR:
1004 case SID_INSERT_VSCROLLBAR:
1005 case SID_INSERT_HFIXEDLINE:
1006 case SID_INSERT_VFIXEDLINE:
1007 case SID_INSERT_DATEFIELD:
1008 case SID_INSERT_TIMEFIELD:
1009 case SID_INSERT_NUMERICFIELD:
1010 case SID_INSERT_CURRENCYFIELD:
1011 case SID_INSERT_FORMATTEDFIELD:
1012 case SID_INSERT_PATTERNFIELD:
1013 case SID_INSERT_FILECONTROL:
1014 case SID_INSERT_SPINBUTTON:
1015 case SID_INSERT_GRIDCONTROL:
1016 case SID_INSERT_HYPERLINKCONTROL:
1017 case SID_INSERT_TREECONTROL:
1018 case SID_INSERT_FORM_RADIO:
1019 case SID_INSERT_FORM_CHECK:
1020 case SID_INSERT_FORM_LIST:
1021 case SID_INSERT_FORM_COMBO:
1022 case SID_INSERT_FORM_VSCROLL:
1023 case SID_INSERT_FORM_HSCROLL:
1024 case SID_INSERT_FORM_SPIN:
1030 case SID_SEARCH_OPTIONS:
1034 nOptions =
pCurWin->GetSearchOptions();
1038 case SID_BASICIDE_LIBSELECTOR:
1050 case SID_SEARCH_ITEM:
1062 if ( !aText.isEmpty() )
1075 case SID_BASICIDE_STAT_DATE:
1081 case SID_DOC_MODIFIED:
1083 bool bModified =
false;
1100 case SID_BASICIDE_STAT_TITLE:
1104 OUString aTitle =
pCurWin->CreateQualifiedName();
1106 aTitle +=
" (" +
IDEResId(RID_STR_READONLY) +
")";
1112 case SID_BASICIDE_CURRENT_ZOOM:
1127 case SID_ATTR_INSERT:
1136 case SID_BASICIDE_CURRENT_LANG:
1144 if ( pCurMgr->isLibraryLocalized() )
1147 const lang::Locale*
pLocale = aLocaleSeq.getConstArray();
1148 sal_Int32
i,
nCount = aLocaleSeq.getLength();
1154 lang::Locale aLocale;
1158 aLocale = pCurMgr->getStringResourceManager()->getDefaultLocale();
1160 aLangStr += aLocale.Language + aLocale.Country + aLocale.Variant;
1162 aItemStr = aLangStr;
1169 case SID_BASICIDE_MANAGE_LANG:
1187 case SID_BASICIDE_HIDECURPAGE:
1189 if (
pTabBar->GetPageCount() == 0)
1193 case SID_BASICIDE_DELETECURRENT:
1194 case SID_BASICIDE_RENAMECURRENT:
1206 if ( pActiveModule && ( pActiveModule->
GetModuleType() == script::ModuleType::DOCUMENT ) )
1213 case SID_BASICIDE_NEWMODULE:
1214 case SID_BASICIDE_NEWDIALOG:
1218 if ( ( xModLibContainer.is() && xModLibContainer->hasByName(
m_aCurLibName ) && xModLibContainer->isLibraryReadOnly(
m_aCurLibName ) ) ||
1219 ( xDlgLibContainer.is() && xDlgLibContainer->hasByName(
m_aCurLibName ) && xDlgLibContainer->isLibraryReadOnly(
m_aCurLibName ) ) )
1228 if ((nWh == SID_ZOOM_IN && nCurrentZoom >=
GetMaxZoom()) ||
1229 (nWh == SID_ZOOM_OUT && nCurrentZoom <=
GetMinZoom()))
1234 case SID_ATTR_ZOOMSLIDER:
1258 assert((nFeature & ~SfxShellFeature::BasicMask) == SfxShellFeature::NONE);
1259 bool bResult =
false;
1261 if (nFeature & SfxShellFeature::BasicShowBrowser)
1288 if (bRememberAsCurrent)
1297 while ( pFocusWindow && ( pFocusWindow != pFrameWindow ) )
1298 pFocusWindow = pFocusWindow->
GetParent();
1308 if ( bUpdateTabBar )
1313 pTabBar->SetCurPageId( nKey );
1320 if (
pCurWin->GetDocument().isDocument() )
1345 static constexpr OUStringLiteral aMacroBarResName =
u"private:resource/toolbar/macrobar";
1346 static constexpr OUStringLiteral aDialogBarResName =
u"private:resource/toolbar/dialogbar";
1347 static constexpr OUStringLiteral aInsertControlsBarResName
1348 =
u"private:resource/toolbar/insertcontrolsbar";
1349 static constexpr OUStringLiteral aFormControlsBarResName
1350 =
u"private:resource/toolbar/formcontrolsbar";
1357 if ( !xFrameProps.is() )
1361 uno::Any a = xFrameProps->getPropertyValue(
"LayoutManager" );
1362 a >>= xLayoutManager;
1363 if ( !xLayoutManager.is() )
1366 xLayoutManager->lock();
1369 xLayoutManager->destroyElement( aMacroBarResName );
1371 xLayoutManager->requestElement( aDialogBarResName );
1372 xLayoutManager->requestElement( aInsertControlsBarResName );
1373 xLayoutManager->requestElement( aFormControlsBarResName );
1377 xLayoutManager->destroyElement( aDialogBarResName );
1378 xLayoutManager->destroyElement( aInsertControlsBarResName );
1379 xLayoutManager->destroyElement( aFormControlsBarResName );
1381 xLayoutManager->requestElement( aMacroBarResName );
1383 xLayoutManager->unlock();
1393 std::u16string_view rLibName, std::u16string_view rName,
1394 ItemType eType,
bool bFindSuspended
1400 if (pWin->
Is(rDocument, rLibName, rName,
eType, bFindSuspended))
1410 pModWin->BasicErrorHdl( pBasic );
1420 bool bAppWindowDisabled, bDispatcherLocked;
1421 sal_uInt16 nWaitCount;
1424 &nWaitCount, &pSWActionCount, &pSWLockViewCount );
1426 nRet = pModWin->BasicBreakHdl();
1430 if ( bAppWindowDisabled )
1436 for ( sal_uInt16
n = 0;
n < nWaitCount;
n++ )
1449 if (SbClassModuleObject* pCMO =
dynamic_cast<SbClassModuleObject*
>(pActiveModule))
1450 pActiveModule = pCMO->getClassModule();
1452 DBG_ASSERT( pActiveModule,
"No active module in ErrorHdl!?" );
1453 if ( pActiveModule )
1462 const OUString& aLibName =
pLib->GetName();
1464 DBG_ASSERT( pWin,
"Error/Step-Hdl: Window was not created/found!" );
1470 SAL_WARN(
"basctl.basicide",
"No BASIC!");
1497 pTabBar->SetPosSizePixel(
Point( rPos.
X(), rPos.
Y() + nScrollBarSz + aSz.
Height()), aTabBarSize );
1504 pCurWin->ShowShellScrollBars();
1505 pLayout->SetPosSizePixel(rPos, aSz);
1509 pCurWin->ShowShellScrollBars(
false);
1510 pLayout->SetPosSizePixel(rPos, aOutSz);
1519 xDocument =
pCurWin->GetDocument().getDocument();
1530 pDCurWin->UpdateBrowser();
1542 pXDlgWin->DisableBrowser();
1543 if( pXDlgWin->IsModified() )
SfxApplication * SfxGetpApp()
constexpr sal_Int32 TAB_HEIGHT_MARGIN
static const AllSettings & GetSettings()
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
static vcl::Window * GetFocusWindow()
static weld::Window * GetDefDialogParent()
StarBASIC * GetLib(sal_uInt16 nLib) const
sal_uInt16 GetValue() const
sal_uInt32 GetValue() const
const OUString & GetValue() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
SAL_DLLPRIVATE SbMethod * GetMethod(const OUString &, SbxDataType)
const SbxArrayRef & GetMethods() const
sal_Int32 GetModuleType() const
const SbxObject * GetParent() const
const OUString & GetName(SbxNameType=SbxNameType::NONE) const
void Invalidate(sal_uInt16 nId)
std::shared_ptr< SfxDialogController > & GetController()
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void DisableItem(sal_uInt16 nWhich)
static void SetCurrentComponent(const css::uno::Reference< css::uno::XInterface > &_rxComponent)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
weld::Window * GetFrameWeld() const
void Done(bool bRemove=false)
const SfxPoolItem * GetSlotState(sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
void SetUndoManager(SfxUndoManager *pNewUndoMgr)
SfxViewFrame * GetFrame() const
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
const css::uno::Any & GetValue() const
vcl::Window & GetWindow() const
SfxBindings & GetBindings()
SfxChildWindow * GetChildWindow(sal_uInt16)
SfxFrame & GetFrame() const
virtual void Activate(bool IsMDIActivate) override
SfxViewFrame & GetViewFrame() const
void SetWindow(vcl::Window *pViewPort)
vcl::Window * GetWindow() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
static SbModule * GetActiveModule()
SbModule * FindModule(std::u16string_view)
void AddSnappingPoint(sal_Int32 nNew)
static const sal_uInt16 PAGE_NOT_FOUND
tools::Long GetTextHeight() const
sal_uInt16 GetLineCount(sal_uInt32 nParagraph) const
sal_uInt32 GetParagraphCount() const
tools::Long GetCharHeight() const
void SetSelection(const TextSelection &rNewSel)
void Scroll(tools::Long nHorzScroll, tools::Long nVertScroll)
void ShowCursor(bool bGotoCursor=true, bool bForceVisCursor=true)
vcl::Window * GetWindow() const
TextEngine * GetTextEngine() const
const Point & GetStartDocPos() const
reference_type * get() const
virtual void UpdateData()
virtual bool HasActiveEditor() const
virtual sal_uInt16 StartSearchAndReplace(SvxSearchItem const &, bool bFromStart=false)
bool Is(ScriptDocument const &, std::u16string_view, std::u16string_view, ItemType, bool bFindSuspended)
encapsulates (actions on) the signature/state of a document
SignatureState getScriptingSignatureState() const
retrieves the state of the signature of the scripting content inside the document
ScriptDocument const & GetDocument() const
OUString const & GetMethodName() const
OUString const & GetLibName() const
OUString const & GetName() const
encapsulates a document which contains Basic scripts and dialogs
OUString getTitle(LibraryLocation _eLocation, LibraryType _eType=LibraryType::All) const
returns the title for the document
css::uno::Reference< css::script::XLibraryContainer > getLibraryContainer(LibraryContainerType _eType) const
returns the Basic or Dialog library container of the document
BasicManager * getBasicManager() const
returns the BasicManager associated with this instance
static const ScriptDocument & getApplicationScriptDocument()
returns a reference to a shared ScriptDocument instance which operates on the application-wide script...
static ScriptDocument getDocumentForBasicManager(const BasicManager *_pManager)
returns a (newly created) ScriptDocument instance for the document to which a given BasicManager belo...
static ScriptDocument getDocumentWithURLOrCaption(std::u16string_view _rUrlOrCaption)
returns a (newly created) ScriptDocument instance for the document with a given caption or URL
LibraryLocation getLibraryLocation(const OUString &_rLibName) const
returns the location of a library given by name
virtual bool HasUIFeature(SfxShellFeature nFeature) const override
bool CallBasicErrorHdl(StarBASIC const *pBasic)
void RemoveWindow(BaseWindow *pWindow, bool bDestroy, bool bAllowChangeCurWindow=true)
sal_uInt16 GetCurrentZoomSliderValue()
static void InvalidateControlSlots()
void ExecuteCurrent(SfxRequest &rReq)
std::shared_ptr< LocalizationMgr > m_pCurLocalizationMgr
void SetCurLib(const ScriptDocument &rDocument, const OUString &aLibName, bool bUpdateWindows=true, bool bCheck=true)
void SetGlobalEditorZoomLevel(sal_uInt16 nNewZoomLevel)
VclPtr< ModulWindow > FindBasWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rModName, bool bCreateIfNotExist=false, bool bFindSuspended=false)
void ExecuteSearch(SfxRequest &rReq)
virtual bool HasSelection(bool bText=true) const override
virtual css::uno::Reference< css::frame::XModel > GetCurrentDocument() const override
VclPtr< BaseWindow > FindWindow(const ScriptDocument &rDocument, std::u16string_view rLibName, std::u16string_view rName, ItemType nType, bool bFindSuspended=false)
sal_uInt16 GetWindowId(BaseWindow const *pWin) const
void ExecuteGlobal(SfxRequest &rReq)
bool IsAppBasicModified() const
virtual void Activate(bool bMDI) override
VclPtr< ModulWindow > ShowActiveModuleWindow(StarBASIC const *pBasic)
VclPtr< ScrollAdaptor > aVScrollBar
BasicDebugFlags CallBasicBreakHdl(StarBASIC const *pBasic)
VclPtr< ModulWindowLayout > pModulLayout
static sal_uInt16 GetMinZoom()
ScriptDocument m_aCurDocument
void GetState(SfxItemSet &)
VclPtr< DialogWindow > FindDlgWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rName, bool bCreateIfNotExist=false, bool bFindSuspended=false)
const std::shared_ptr< LocalizationMgr > & GetCurLocalizationMgr() const
VclPtr< BaseWindow > FindApplicationWindow()
VclPtr< ModulWindow > CreateBasWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rModName)
VclPtr< DialogWindow > CreateDlgWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rDlgName)
void RemoveWindows(const ScriptDocument &rDocument, std::u16string_view rLibName)
SfxUndoManager * GetUndoManager() override
std::unique_ptr< SvxSearchItem > mpSearchItem
VclPtr< ObjectCatalog > aObjectCatalog
VclPtr< ScrollAdaptor > aHScrollBar
sal_uInt16 m_nCurrentZoomSliderValue
virtual OUString GetSelectionText(bool bCompleteWords=false, bool bOnlyASample=false) override
OUString const & GetCurLibName() const
VclPtr< BaseWindow > pCurWin
void SetCurWindow(BaseWindow *pNewWin, bool bUpdateTabBar=false, bool bRememberAsCurrent=true)
void AdjustPosSizePixel(const Point &rPos, const Size &rSize)
static sal_uInt16 GetMaxZoom()
void StoreAllWindowData(bool bPersistent=true)
virtual void Deactivate(bool bMDI) override
static void InvalidateBasicIDESlots()
VclPtr< DialogWindowLayout > pDialogLayout
vcl::Window * GetParent() const
virtual void SetSizePixel(const Size &rNewSize)
void SetHelpId(const OUString &)
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define DBG_ASSERT(sCon, aError)
constexpr OUStringLiteral HID_BASICIDE_MODULWINDOW
#define SAL_WARN(area, stream)
OUString CreateMgrAndLibStr(std::u16string_view rMgrName, std::u16string_view rLibName)
SfxBindings * GetBindingsPtr()
void BasicStopped(bool *pbAppWindowDisabled, bool *pbDispatcherLocked, sal_uInt16 *pnWaitCount, SfxUInt16Item **ppSWActionCount, SfxUInt16Item **ppSWLockViewCount)
bool QueryPassword(weld::Widget *pDialogParent, const Reference< script::XLibraryContainer > &xLibContainer, const OUString &rLibName, OUString &rPassword, bool bRepeat, bool bNewTitle)
ExtraData * GetExtraData()
OUString ChooseMacro(weld::Window *pParent, const uno::Reference< frame::XModel > &rxLimitToDocument, const uno::Reference< frame::XFrame > &xDocFrame, bool bChooseOnly)
SbMethod * CreateMacro(SbModule *pModule, const OUString &rMacroName)
void Organize(weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &xDocFrame, sal_Int16 tabId)
void MarkDocumentModified(const ScriptDocument &rDocument)
BasicManager * FindBasicManager(StarBASIC const *pLib)
bool RenameModule(weld::Widget *pErrorParent, const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rOldName, const OUString &rNewName)
renames a module
OUString IDEResId(TranslateId aId)
static void lcl_InvalidateZoomSlots(SfxBindings *pBindings)
vcl::Font GetFont(vcl::Font const &rFont, DrawModeFlags nDrawMode, StyleSettings const &rStyleSettings)
Reference< XModel > xModel