LibreOffice Module basic (master) 1
Functions
basic::vba Namespace Reference

Functions

void lockControllersOfAllDocuments (const uno::Reference< frame::XModel > &rxModel, bool bLockControllers)
 
void enableContainerWindowsOfAllDocuments (const uno::Reference< frame::XModel > &rxModel, bool bEnableWindows)
 
void registerCurrentDirectory (const uno::Reference< frame::XModel > &rxModel, const OUString &rPath)
 
BASIC_DLLPUBLIC void lockControllersOfAllDocuments (const css::uno::Reference< css::frame::XModel > &rxModel, bool bLockControllers)
 Locks or unlocks the controllers of all documents that have the same type as the specified document. More...
 
BASIC_DLLPUBLIC void enableContainerWindowsOfAllDocuments (const css::uno::Reference< css::frame::XModel > &rxModel, bool bEnableWindows)
 Enables or disables the container windows of all controllers of all documents that have the same type as the specified document. More...
 
BASIC_DLLPUBLIC void registerCurrentDirectory (const css::uno::Reference< css::frame::XModel > &rxModel, const OUString &rPath)
 Registers the passed path as working directory for the application the passed document belongs to. More...
 

Function Documentation

◆ enableContainerWindowsOfAllDocuments() [1/2]

BASIC_DLLPUBLIC void basic::vba::enableContainerWindowsOfAllDocuments ( const css::uno::Reference< css::frame::XModel > &  rxModel,
bool  bEnableWindows 
)

Enables or disables the container windows of all controllers of all documents that have the same type as the specified document.

First, the global module manager (com.sun.star.frame.ModuleManager) is asked for the type of the passed model, and the container windows of all open documents with the same type will be enabled or disabled.

Parameters
rxModelA document model determining the type of the documents to be enabled or disabled.
bEnableWindowsPassing true will enable all container windows of all controllers, passing false will disable them.

◆ enableContainerWindowsOfAllDocuments() [2/2]

void basic::vba::enableContainerWindowsOfAllDocuments ( const uno::Reference< frame::XModel > &  rxModel,
bool  bEnableWindows 
)

Definition at line 157 of file vbahelper.cxx.

Referenced by SbModule::Run().

◆ lockControllersOfAllDocuments() [1/2]

BASIC_DLLPUBLIC void basic::vba::lockControllersOfAllDocuments ( const css::uno::Reference< css::frame::XModel > &  rxModel,
bool  bLockControllers 
)

Locks or unlocks the controllers of all documents that have the same type as the specified document.

First, the global module manager (com.sun.star.frame.ModuleManager) is asked for the type of the passed model, and all open documents with the same type will be locked or unlocked.

Parameters
rxModelA document model determining the type of the documents to be locked or unlocked.
bLockControllersPassing true will lock all controllers, passing false will unlock them.

◆ lockControllersOfAllDocuments() [2/2]

void basic::vba::lockControllersOfAllDocuments ( const uno::Reference< frame::XModel > &  rxModel,
bool  bLockControllers 
)

Definition at line 151 of file vbahelper.cxx.

Referenced by SbModule::Run().

◆ registerCurrentDirectory() [1/2]

BASIC_DLLPUBLIC void basic::vba::registerCurrentDirectory ( const css::uno::Reference< css::frame::XModel > &  rxModel,
const OUString &  rPath 
)

Registers the passed path as working directory for the application the passed document belongs to.

Parameters
rxModelA document model determining the type of the application whose working directory has been changed.
rPathThe new working directory.

◆ registerCurrentDirectory() [2/2]

void basic::vba::registerCurrentDirectory ( const uno::Reference< frame::XModel > &  rxModel,
const OUString &  rPath 
)

Definition at line 163 of file vbahelper.cxx.