LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
UnoWrapperBase Class Referenceabstract

#include <unowrap.hxx>

Public Member Functions

virtual void Destroy ()=0
 
virtual css::uno::Reference< css::awt::XToolkit > GetVCLToolkit ()=0
 
virtual css::uno::Reference< css::awt::XGraphics > CreateGraphics (OutputDevice *pOutDev)=0
 
virtual void ReleaseAllGraphics (OutputDevice *pOutDev)=0
 
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetWindowInterface (vcl::Window *pWindow)=0
 
virtual void SetWindowInterface (vcl::Window *pWindow, const css::uno::Reference< css::awt::XVclWindowPeer > &xIFace)=0
 
virtual VclPtr< vcl::WindowGetWindow (const css::uno::Reference< css::awt::XWindow > &rxWindow)=0
 
virtual css::uno::Reference< css::awt::XPopupMenu > CreateMenuInterface (PopupMenu *pPopupMenu)=0
 
virtual void WindowDestroyed (vcl::Window *pWindow)=0
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible (Menu *pMenu, bool bIsMenuBar)=0
 

Static Public Member Functions

static UnoWrapperBaseGetUnoWrapper (bool bCreateIfNotExists=true)
 Get the application's UNO wrapper object. More...
 
static void SetUnoWrapper (UnoWrapperBase *pWrapper)
 Sets the application's UNO Wrapper object. More...
 

Protected Member Functions

 ~UnoWrapperBase ()
 

Detailed Description

Definition at line 46 of file unowrap.hxx.

Constructor & Destructor Documentation

◆ ~UnoWrapperBase()

UnoWrapperBase::~UnoWrapperBase ( )
inlineprotected

Definition at line 90 of file unowrap.hxx.

Member Function Documentation

◆ CreateAccessible()

virtual css::uno::Reference< css::accessibility::XAccessible > UnoWrapperBase::CreateAccessible ( Menu pMenu,
bool  bIsMenuBar 
)
pure virtual

Referenced by Menu::GetAccessible().

◆ CreateGraphics()

virtual css::uno::Reference< css::awt::XGraphics > UnoWrapperBase::CreateGraphics ( OutputDevice pOutDev)
pure virtual

◆ CreateMenuInterface()

virtual css::uno::Reference< css::awt::XPopupMenu > UnoWrapperBase::CreateMenuInterface ( PopupMenu pPopupMenu)
pure virtual

◆ Destroy()

virtual void UnoWrapperBase::Destroy ( )
pure virtual

◆ GetUnoWrapper()

UnoWrapperBase * UnoWrapperBase::GetUnoWrapper ( bool  bCreateIfNotExists = true)
static

Get the application's UNO wrapper object.

Note that this static function will only ever try to create UNO wrapper object once, and if it fails then it will not ever try again, even if the function is called multiple times.

Parameters
bCreateIfNotExistsCreate the UNO wrapper object if it doesn't exist when true.
Returns
UNO wrapper object.

Definition at line 1473 of file svapp.cxx.

References CreateUnoWrapper(), ImplGetSVData(), ImplSVData::mpUnoWrapper, SAL_WARN_IF, and thisModule().

Referenced by PopupMenu::CreateMenuInterface(), OutputDevice::CreateUnoGraphics(), OutputDevice::dispose(), vcl::Window::dispose(), Menu::GetAccessible(), vcl::Window::GetComponentInterface(), SalInstance::GetFrameWeld(), Application::GetVCLToolkit(), vcl::Window::SetComponentInterface(), and vcl::Window::SetWindowPeer().

◆ GetVCLToolkit()

virtual css::uno::Reference< css::awt::XToolkit > UnoWrapperBase::GetVCLToolkit ( )
pure virtual

◆ GetWindow()

virtual VclPtr< vcl::Window > UnoWrapperBase::GetWindow ( const css::uno::Reference< css::awt::XWindow > &  rxWindow)
pure virtual

◆ GetWindowInterface()

virtual css::uno::Reference< css::awt::XVclWindowPeer > UnoWrapperBase::GetWindowInterface ( vcl::Window pWindow)
pure virtual

◆ ReleaseAllGraphics()

virtual void UnoWrapperBase::ReleaseAllGraphics ( OutputDevice pOutDev)
pure virtual

Referenced by OutputDevice::dispose().

◆ SetUnoWrapper()

void UnoWrapperBase::SetUnoWrapper ( UnoWrapperBase pWrapper)
static

Sets the application's UNO Wrapper object.

Parameters
pWrapperPointer to UNO wrapper object.

Definition at line 1500 of file svapp.cxx.

References ImplGetSVData(), ImplSVData::mpUnoWrapper, and SAL_WARN_IF.

◆ SetWindowInterface()

virtual void UnoWrapperBase::SetWindowInterface ( vcl::Window pWindow,
const css::uno::Reference< css::awt::XVclWindowPeer > &  xIFace 
)
pure virtual

◆ WindowDestroyed()

virtual void UnoWrapperBase::WindowDestroyed ( vcl::Window pWindow)
pure virtual

Referenced by vcl::Window::dispose().


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