27#include <sfx2/sfxsids.hrc>
32#include <com/sun/star/uno/XComponentContext.hpp>
48 OUString aLibName( rLibName );
49 OUString aDlgName( rDlgName );
51 if ( aLibName.isEmpty() )
52 aLibName =
"Standard" ;
56 if ( aDlgName.isEmpty() )
60 pWin =
FindDlgWin( rDocument, aLibName, aDlgName,
false,
true );
67 if ( rDocument.
hasDialog( aLibName, aDlgName ) )
68 rDocument.
getDialog( aLibName, aDlgName, xISP );
77 (
"com.sun.star.awt.UnoControlDialogModel", xContext ), UNO_QUERY );
89 catch (
const uno::Exception& )
98 DBG_ASSERT( nKey,
"CreateDlgWin: No Key - Window not found!" );
104 pTabBar->InsertPage( nKey, aDlgName );
116 OUString
const& rLibName, OUString
const& rName,
117 bool bCreateIfNotExist,
bool bFindSuspended
122 return bCreateIfNotExist ?
CreateDlgWin(rDocument, rLibName, rName) :
nullptr;
128 if ( window.second == pWin )
136 return &pDCurWin->GetView();
sal_uInt16 GetSlot() const
SfxViewFrame & GetViewFrame() const
vcl::Window * GetWindow() const
reference_type * get() const
static VclPtr< reference_type > Create(Arg &&... arg)
static void setStringResourceAtDialog(const ScriptDocument &rDocument, const OUString &aLibName, std::u16string_view aDlgName, const css::uno::Reference< css::container::XNameContainer > &xDialogModel)
encapsulates a document which contains Basic scripts and dialogs
css::uno::Reference< css::container::XNameContainer > getOrCreateLibrary(LibraryContainerType _eType, const OUString &_rLibName) const
creates a script or dialog library in the document, or returns an existing one
bool getDialog(const OUString &_rLibName, const OUString &_rDialogName, css::uno::Reference< css::io::XInputStreamProvider > &_out_rDialogProvider) const
retrieves a dialog
css::uno::Reference< css::frame::XModel > getDocument() const
returns the UNO component representing the document which the instance operates on
bool isDocument() const
determines whether the ScriptDocument instance operates on a real document, as opposed to the whole a...
bool hasDialog(const OUString &_rLibName, const OUString &_rDialogName) const
determines whether a dialog with the given name exists in the given library
bool createDialog(const OUString &_rLibName, const OUString &_rDialogName, css::uno::Reference< css::io::XInputStreamProvider > &_out_rDialogProvider) const
create a dialog
OUString createObjectName(LibraryContainerType _eType, const OUString &_rLibName) const
retrieves a name for a newly to be created module or dialog
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
VclPtr< ScrollAdaptor > aVScrollBar
SdrView * GetCurDlgView() const
VclPtr< DialogWindow > FindDlgWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rName, bool bCreateIfNotExist=false, bool bFindSuspended=false)
VclPtr< DialogWindow > CreateDlgWin(const ScriptDocument &rDocument, const OUString &rLibName, const OUString &rDlgName)
void ExecuteDialog(SfxRequest &rReq)
VclPtr< ObjectCatalog > aObjectCatalog
VclPtr< ScrollAdaptor > aHScrollBar
sal_uInt16 InsertWindowInTable(BaseWindow *pNewWin)
VclPtr< BaseWindow > pCurWin
void SetCurWindow(BaseWindow *pNewWin, bool bUpdateTabBar=false, bool bRememberAsCurrent=true)
VclPtr< DialogWindowLayout > pDialogLayout
#define DBG_ASSERT(sCon, aError)
#define DBG_UNHANDLED_EXCEPTION(...)
Reference< XComponentContext > getProcessComponentContext()