LibreOffice Module scripting (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
dlgprov::DialogProviderImpl Class Reference

#include <dlgprov.hxx>

Inheritance diagram for dlgprov::DialogProviderImpl:
[legend]
Collaboration diagram for dlgprov::DialogProviderImpl:
[legend]

Classes

struct  BasicRTLParams
 

Public Member Functions

 DialogProviderImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~DialogProviderImpl () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual css::uno::Reference< css::awt::XDialog > SAL_CALL createDialog (const OUString &URL) override
 
virtual css::uno::Reference< css::awt::XDialog > SAL_CALL createDialogWithHandler (const OUString &URL, const css::uno::Reference< css::uno::XInterface > &xHandler) override
 
virtual css::uno::Reference< css::awt::XDialog > SAL_CALL createDialogWithArguments (const OUString &URL, const css::uno::Sequence< css::beans::NamedValue > &Arguments) override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createContainerWindow (const OUString &URL, const OUString &WindowType, const css::uno::Reference< css::awt::XWindowPeer > &xParent, const css::uno::Reference< css::uno::XInterface > &xHandler) override
 

Private Member Functions

css::uno::Reference< css::awt::XControlModel > createDialogModel (const OUString &sURL)
 
css::uno::Reference< css::awt::XUnoControlDialog > createDialogControl (const css::uno::Reference< css::awt::XControlModel > &rxDialogModel, const css::uno::Reference< css::awt::XWindowPeer > &xParent)
 
void attachControlEvents (const css::uno::Reference< css::awt::XControl > &rxControlContainer, const css::uno::Reference< css::uno::XInterface > &rxHandler, const css::uno::Reference< css::beans::XIntrospectionAccess > &rxIntrospectionAccess, bool bDialogProviderMode)
 
css::uno::Reference< css::beans::XIntrospectionAccess > inspectHandler (const css::uno::Reference< css::uno::XInterface > &rxHandler)
 
css::uno::Reference< css::container::XNameContainer > createDialogModel (const css::uno::Reference< css::io::XInputStream > &xInput, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager, const css::uno::Any &aDialogSourceURL)
 
css::uno::Reference< css::awt::XControlModel > createDialogModelForBasic ()
 
css::uno::Reference< css::awt::XControl > createDialogImpl (const OUString &URL, const css::uno::Reference< css::uno::XInterface > &xHandler, const css::uno::Reference< css::awt::XWindowPeer > &xParent, bool bDialogProviderMode)
 

Private Attributes

std::unique_ptr< BasicRTLParamsm_BasicInfo
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XModel > m_xModel
 
OUString msDialogLibName
 

Detailed Description

Definition at line 69 of file dlgprov.hxx.

Constructor & Destructor Documentation

◆ DialogProviderImpl()

dlgprov::DialogProviderImpl::DialogProviderImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicit

Definition at line 148 of file dlgprov.cxx.

References m_xContext.

◆ ~DialogProviderImpl()

dlgprov::DialogProviderImpl::~DialogProviderImpl ( )
overridevirtual

Definition at line 154 of file dlgprov.cxx.

Member Function Documentation

◆ attachControlEvents()

void dlgprov::DialogProviderImpl::attachControlEvents ( const css::uno::Reference< css::awt::XControl > &  rxControlContainer,
const css::uno::Reference< css::uno::XInterface > &  rxHandler,
const css::uno::Reference< css::beans::XIntrospectionAccess > &  rxIntrospectionAccess,
bool  bDialogProviderMode 
)
private

Definition at line 428 of file dlgprov.cxx.

References aHelper, Any, i, m_BasicInfo, m_xContext, m_xModel, and msDialogLibName.

Referenced by createDialogImpl().

◆ createContainerWindow()

Reference< XWindow > dlgprov::DialogProviderImpl::createContainerWindow ( const OUString &  URL,
const OUString &  WindowType,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent,
const css::uno::Reference< css::uno::XInterface > &  xHandler 
)
overridevirtual

Definition at line 673 of file dlgprov.cxx.

References createDialogImpl(), and URL.

◆ createDialog()

Reference< XDialog > dlgprov::DialogProviderImpl::createDialog ( const OUString &  URL)
overridevirtual

Definition at line 625 of file dlgprov.cxx.

References createDialogImpl(), and URL.

◆ createDialogControl()

Reference< XUnoControlDialog > dlgprov::DialogProviderImpl::createDialogControl ( const css::uno::Reference< css::awt::XControlModel > &  rxDialogModel,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent 
)
private

Definition at line 384 of file dlgprov.cxx.

References m_xContext, m_xModel, xController, and xFrame.

Referenced by createDialogImpl().

◆ createDialogImpl()

Reference< XControl > dlgprov::DialogProviderImpl::createDialogImpl ( const OUString &  URL,
const css::uno::Reference< css::uno::XInterface > &  xHandler,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent,
bool  bDialogProviderMode 
)
private

◆ createDialogModel() [1/2]

css::uno::Reference< css::container::XNameContainer > dlgprov::DialogProviderImpl::createDialogModel ( const css::uno::Reference< css::io::XInputStream > &  xInput,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager,
const css::uno::Any &  aDialogSourceURL 
)
private
Exceptions
css::uno::Exception

◆ createDialogModel() [2/2]

Reference< XControlModel > dlgprov::DialogProviderImpl::createDialogModel ( const OUString &  sURL)
private

◆ createDialogModelForBasic()

Reference< XControlModel > dlgprov::DialogProviderImpl::createDialogModelForBasic ( )
private
Exceptions
css::uno::Exception

Definition at line 186 of file dlgprov.cxx.

References Any, createDialogModel(), dlgprov::getStringResourceFromDialogLibrary(), and m_BasicInfo.

Referenced by createDialogImpl().

◆ createDialogWithArguments()

Reference< XDialog > dlgprov::DialogProviderImpl::createDialogWithArguments ( const OUString &  URL,
const css::uno::Sequence< css::beans::NamedValue > &  Arguments 
)
overridevirtual

Definition at line 649 of file dlgprov.cxx.

References aArguments, Any, createDialogImpl(), and URL.

◆ createDialogWithHandler()

Reference< XDialog > dlgprov::DialogProviderImpl::createDialogWithHandler ( const OUString &  URL,
const css::uno::Reference< css::uno::XInterface > &  xHandler 
)
overridevirtual

Definition at line 634 of file dlgprov.cxx.

References createDialogImpl(), and URL.

◆ getImplementationName()

OUString dlgprov::DialogProviderImpl::getImplementationName ( )
overridevirtual

Definition at line 498 of file dlgprov.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > dlgprov::DialogProviderImpl::getSupportedServiceNames ( )
overridevirtual

Definition at line 508 of file dlgprov.cxx.

◆ initialize()

void dlgprov::DialogProviderImpl::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 519 of file dlgprov.cxx.

References aArguments, dlgprov::getMutex(), m_BasicInfo, and m_xModel.

◆ inspectHandler()

Reference< XIntrospectionAccess > dlgprov::DialogProviderImpl::inspectHandler ( const css::uno::Reference< css::uno::XInterface > &  rxHandler)
private

Definition at line 466 of file dlgprov.cxx.

References Any, m_xContext, and xIntrospection.

Referenced by createDialogImpl().

◆ supportsService()

sal_Bool dlgprov::DialogProviderImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 503 of file dlgprov.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_BasicInfo

std::unique_ptr< BasicRTLParams > dlgprov::DialogProviderImpl::m_BasicInfo
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > dlgprov::DialogProviderImpl::m_xContext
private

◆ m_xModel

css::uno::Reference< css::frame::XModel > dlgprov::DialogProviderImpl::m_xModel
private

◆ msDialogLibName

OUString dlgprov::DialogProviderImpl::msDialogLibName
private

Definition at line 82 of file dlgprov.hxx.

Referenced by attachControlEvents(), and createDialogModel().


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