LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaccess::ODatabaseDocument Class Reference

#include <databasedocument.hxx>

Inheritance diagram for dbaccess::ODatabaseDocument:
[legend]
Collaboration diagram for dbaccess::ODatabaseDocument:
[legend]

Classes

struct  FactoryAccess
 

Public Member Functions

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 css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual sal_Bool SAL_CALL attachResource (const OUString &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
 
virtual OUString SAL_CALL getURL () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs () override
 
virtual void SAL_CALL connectController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual void SAL_CALL disconnectController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual void SAL_CALL lockControllers () override
 
virtual void SAL_CALL unlockControllers () override
 
virtual sal_Bool SAL_CALL hasControllersLocked () override
 
virtual css::uno::Reference< css::frame::XController > SAL_CALL getCurrentController () override
 
virtual void SAL_CALL setCurrentController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getCurrentSelection () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL getControllers () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableViewControllerNames () override
 
virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createDefaultViewController (const css::uno::Reference< css::frame::XFrame > &Frame) override
 
virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createViewController (const OUString &ViewName, const css::uno::Sequence< css::beans::PropertyValue > &Arguments, const css::uno::Reference< css::frame::XFrame > &Frame) override
 
virtual void SAL_CALL setArgs (const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 
virtual ::css::uno::Sequence< ::css::beans::PropertyValue > SAL_CALL getArgs2 (const ::css::uno::Sequence< ::rtl::OUString > &requestedArgs) override
 
virtual sal_Bool SAL_CALL hasLocation () override
 
virtual OUString SAL_CALL getLocation () override
 
virtual sal_Bool SAL_CALL isReadonly () override
 
virtual void SAL_CALL store () override
 
virtual void SAL_CALL storeAsURL (const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
 
virtual void SAL_CALL storeToURL (const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
 
virtual void SAL_CALL addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
virtual void SAL_CALL removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
virtual sal_Bool SAL_CALL isModified () override
 
virtual void SAL_CALL setModified (sal_Bool bModified) override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::document::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::document::XEventListener > &aListener) override
 
virtual void SAL_CALL addDocumentEventListener (const css::uno::Reference< css::document::XDocumentEventListener > &Listener) override
 
virtual void SAL_CALL removeDocumentEventListener (const css::uno::Reference< css::document::XDocumentEventListener > &Listener) override
 
virtual void SAL_CALL notifyDocumentEvent (const OUString &EventName, const css::uno::Reference< css::frame::XController2 > &ViewController, const css::uno::Any &Supplement) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPrinter () override
 
virtual void SAL_CALL setPrinter (const css::uno::Sequence< css::beans::PropertyValue > &aPrinter) override
 
virtual void SAL_CALL print (const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getFormDocuments () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getReportDocuments () override
 
virtual void SAL_CALL close (sal_Bool DeliverOwnership) override
 
virtual void SAL_CALL addCloseListener (const css::uno::Reference< css::util::XCloseListener > &Listener) override
 
virtual void SAL_CALL removeCloseListener (const css::uno::Reference< css::util::XCloseListener > &Listener) override
 
virtual css::uno::Reference< css::ui::XUIConfigurationManager > SAL_CALL getUIConfigurationManager () override
 
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL getDocumentSubStorage (const OUString &aStorageName, sal_Int32 nMode) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getDocumentSubStoragesNames () override
 
virtual css::uno::Reference< css::sdbc::XDataSource > SAL_CALL getDataSource () override
 
virtual void SAL_CALL loadFromStorage (const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor) override
 
virtual void SAL_CALL storeToStorage (const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor) override
 
virtual void SAL_CALL switchToStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) override
 
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL getDocumentStorage () override
 
virtual void SAL_CALL addStorageChangeListener (const css::uno::Reference< css::document::XStorageChangeListener > &xListener) override
 
virtual void SAL_CALL removeStorageChangeListener (const css::uno::Reference< css::document::XStorageChangeListener > &xListener) override
 
virtual css::uno::Reference< css::script::XStorageBasedLibraryContainer > SAL_CALL getBasicLibraries () override
 
virtual css::uno::Reference< css::script::XStorageBasedLibraryContainer > SAL_CALL getDialogLibraries () override
 
virtual sal_Bool SAL_CALL getAllowMacroExecution () override
 
virtual css::uno::Reference< css::document::XEmbeddedScripts > SAL_CALL getScriptContainer () override
 
virtual css::uno::Reference< css::script::provider::XScriptProvider > SAL_CALL getScriptProvider () override
 
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents () override
 
virtual void SAL_CALL initNew () override
 
virtual void SAL_CALL load (const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
 
virtual sal_Bool SAL_CALL wasModifiedSinceLastSave () override
 
virtual void SAL_CALL storeToRecoveryFile (const OUString &i_TargetLocation, const css::uno::Sequence< css::beans::PropertyValue > &i_MediaDescriptor) override
 
virtual void SAL_CALL recoverFromFile (const OUString &i_SourceLocation, const OUString &i_SalvagedFile, const css::uno::Sequence< css::beans::PropertyValue > &i_MediaDescriptor) override
 
virtual OUString SAL_CALL getTitle () override
 
virtual void SAL_CALL setTitle (const OUString &sTitle) override
 
virtual void SAL_CALL addTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override
 
virtual void SAL_CALL removeTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override
 
virtual ::sal_Int32 SAL_CALL leaseNumber (const css::uno::Reference< css::uno::XInterface > &xComponent) override
 
virtual void SAL_CALL releaseNumber (::sal_Int32 nNumber) override
 
virtual void SAL_CALL releaseNumberForComponent (const css::uno::Reference< css::uno::XInterface > &xComponent) override
 
virtual OUString SAL_CALL getUntitledPrefix () override
 
void checkInitialized () const
 checks whether the component is already initialized, throws a NotInitializedException if not More...
 
void checkNotUninitialized () const
 checks the document is currently in the initialization phase, or already initialized. More...
 
void checkNotInitialized () const
 checks whether the document is currently being initialized, or already initialized, throws a DoubleInitializationException if so More...
 
- Public Member Functions inherited from dbaccess::ModelDependentComponent
void checkDisposed () const
 checks whether the component is already disposed, throws a DisposedException if so More...
 
void lockModify ()
 
void unlockModify ()
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Static Public Member Functions

static rtl::Reference< ODatabaseDocumentcreateDatabaseDocument (const ::rtl::Reference< ODatabaseModelImpl > &_pImpl, FactoryAccess)
 
static void clearObjectContainer (css::uno::WeakReference< css::container::XNameAccess > &_rxContainer)
 clears the given object container More...
 

Protected Member Functions

virtual void SAL_CALL disposing () override
 
virtual ~ODatabaseDocument () override
 
- Protected Member Functions inherited from dbaccess::ModelDependentComponent
 ModelDependentComponent (::rtl::Reference< ODatabaseModelImpl > _model)
 
virtual ~ModelDependentComponent ()
 
virtual css::uno::Reference< css::uno::XInterface > getThis () const =0
 returns the component itself More...
 
::osl::Mutex & getMutex ()
 
- Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 

Private Types

enum  InitState {
  NotInitialized ,
  Initializing ,
  Initialized
}
 
enum  StoreType {
  SAVE ,
  SAVE_AS
}
 
typedef std::map< OUString, css::uno::Reference< css::frame::XUntitledNumbers > > TNumberedController
 

Private Member Functions

void impl_storeAs_throw (const OUString &_rURL, const ::comphelper::NamedValueCollection &_rArguments, const StoreType _eType, DocumentGuard &_rGuard)
 stores the document to the given URL, rebases it to the respective new storage, if necessary, resets the modified flag, and notifies any listeners as required More...
 
void impl_notifyStorageChange_nolck_nothrow (const css::uno::Reference< css::embed::XStorage > &_rxNewRootStorage)
 notifies our storage change listeners that our underlying storage changed More...
 
void WriteThroughComponent (const css::uno::Reference< css::lang::XComponent > &xComponent, const char *pStreamName, const char *pServiceName, const css::uno::Sequence< css::uno::Any > &rArguments, const css::uno::Sequence< css::beans::PropertyValue > &rMediaDesc, const css::uno::Reference< css::embed::XStorage > &_xStorageToSaveTo) const
 write a single XML stream into the package More...
 
void WriteThroughComponent (const css::uno::Reference< css::io::XOutputStream > &xOutputStream, const css::uno::Reference< css::lang::XComponent > &xComponent, const char *pServiceName, const css::uno::Sequence< css::uno::Any > &rArguments, const css::uno::Sequence< css::beans::PropertyValue > &rMediaDesc) const
 write a single output stream (to be called either directly or by WriteThroughComponent(...)) More...
 
void impl_writeStorage_throw (const css::uno::Reference< css::embed::XStorage > &_rxTargetStorage, const ::comphelper::NamedValueCollection &_rMediaDescriptor) const
 writes the content and settings More...
 
virtual css::uno::Reference< css::uno::XInterface > getThis () const override
 returns the component itself More...
 
css::uno::Reference< css::frame::XTitle > const & impl_getTitleHelper_throw ()
 
css::uno::Reference< css::frame::XUntitledNumbers > impl_getUntitledHelper_throw (const css::uno::Reference< css::uno::XInterface > &_xComponent=css::uno::Reference< css::uno::XInterface >())
 
 ODatabaseDocument (const ::rtl::Reference< ODatabaseModelImpl > &_pImpl)
 
css::uno::Reference< css::ui::XUIConfigurationManager2 > const & getUIConfigurationManager2 ()
 
bool impl_isInitializing () const
 returns whether the model is currently being initialized More...
 
bool impl_isInitialized () const
 returns whether the model is already initialized, i.e. More...
 
void impl_setInitializing ()
 tells the model it is being initialized now More...
 
void impl_setInitialized ()
 tells the model its initialization is done More...
 
void impl_closeControllerFrames_nolck_throw (bool _bDeliverOwnership)
 closes the frames of all connected controllers More...
 
void impl_disposeControllerFrames_nothrow ()
 disposes the frames of all controllers which are still left in m_aControllers. More...
 
void impl_reparent_nothrow (const css::uno::WeakReference< css::container::XNameAccess > &_rxContainer)
 does a reparenting at the given object container to ourself More...
 
css::uno::Reference< css::container::XNameAccess > impl_getDocumentContainer_throw (ODatabaseModelImpl::ObjectType _eType)
 retrieves the forms or reports contained, creates and initializes it, if necessary More...
 
void impl_reset_nothrow ()
 resets everything More...
 
css::uno::Reference< css::embed::XStorage > impl_createStorageFor_throw (const OUString &_rURL) const
 creates a storage for the given URL, truncating it if a file with this name already exists More...
 
css::uno::Reference< css::embed::XStorage > impl_GetStorageOrCreateFor_throw (const ::comphelper::NamedValueCollection &_rArguments, const OUString &_rURL) const
 Extracts storage from arguments, or creates for the given URL, truncating it if a file with this name already exists. More...
 
void impl_setModified_nothrow (bool _bModified, DocumentGuard &_rGuard)
 sets our "modified" flag More...
 
void impl_storeToStorage_throw (const css::uno::Reference< css::embed::XStorage > &_rxTargetStorage, const css::uno::Sequence< css::beans::PropertyValue > &_rMediaDescriptor, DocumentGuard &_rDocGuard) const
 stores the document to the given storage More...
 
bool impl_attachResource (const OUString &i_rLogicalDocumentURL, const css::uno::Sequence< css::beans::PropertyValue > &i_rMediaDescriptor, DocumentGuard &_rDocGuard)
 impl-version of attachResource More...
 
void impl_throwIOExceptionCausedBySave_throw (const css::uno::Any &i_rError, std::u16string_view i_rTargetURL) const
 throws an IOException with the message as defined in the RID_STR_ERROR_WHILE_SAVING resource, wrapping the given caught non-IOException error More...
 

Static Private Member Functions

static void impl_import_nolck_throw (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::uno::XInterface > &_rxTargetComponent, const ::comphelper::NamedValueCollection &_rResource)
 imports the document from the given resource. More...
 

Private Attributes

css::uno::Reference< css::ui::XUIConfigurationManager2 > m_xUIConfigurationManager
 
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_aModifyListeners
 
::comphelper::OInterfaceContainerHelper3< css::util::XCloseListener > m_aCloseListener
 
::comphelper::OInterfaceContainerHelper3< css::document::XStorageChangeListener > m_aStorageListeners
 
std::unique_ptr< DocumentEventsm_pEventContainer
 
::rtl::Reference< DocumentEventExecutorm_pEventExecutor
 
DocumentEventNotifier m_aEventNotifier
 
css::uno::Reference< css::frame::XController > m_xCurrentController
 
Controllers m_aControllers
 
ViewMonitor m_aViewMonitor
 
css::uno::WeakReference< css::container::XNameAccess > m_xForms
 
css::uno::WeakReference< css::container::XNameAccess > m_xReports
 
css::uno::WeakReference< css::script::provider::XScriptProvider > m_xScriptProvider
 
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager
 such module manager is used to classify new opened documents. More...
 
css::uno::Reference< css::frame::XTitle > m_xTitleHelper
 
TNumberedController m_aNumberedControllers
 
InitState m_eInitState
 true if and only if the DatabaseDocument's "initNew" or "load" have been called (or, well, the document has be initialized implicitly - see storeAsURL More...
 
bool m_bClosing
 
bool m_bAllowDocumentScripting
 
bool m_bHasBeenRecovered
 
bool m_bEmbedded
 If XModel::attachResource() was called to inform us that the document is embedded into another one. More...
 

Additional Inherited Members

- Protected Attributes inherited from dbaccess::ModelDependentComponent
::rtl::Reference< ODatabaseModelImplm_pImpl
 
::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 158 of file databasedocument.hxx.

Member Typedef Documentation

◆ TNumberedController

typedef std::map< OUString, css::uno::Reference< css::frame::XUntitledNumbers > > dbaccess::ODatabaseDocument::TNumberedController
private

Definition at line 169 of file databasedocument.hxx.

Member Enumeration Documentation

◆ InitState

Enumerator
NotInitialized 
Initializing 
Initialized 

Definition at line 162 of file databasedocument.hxx.

◆ StoreType

Enumerator
SAVE 
SAVE_AS 

Definition at line 203 of file databasedocument.hxx.

Constructor & Destructor Documentation

◆ ODatabaseDocument()

dbaccess::ODatabaseDocument::ODatabaseDocument ( const ::rtl::Reference< ODatabaseModelImpl > &  _pImpl)
explicitprivate

◆ ~ODatabaseDocument()

dbaccess::ODatabaseDocument::~ODatabaseDocument ( )
overrideprotectedvirtual

Definition at line 179 of file databasedocument.cxx.

References acquire(), and dispose().

Member Function Documentation

◆ acquire()

void SAL_CALL dbaccess::ODatabaseDocument::acquire ( )
overridevirtualnoexcept

Definition at line 206 of file databasedocument.cxx.

Referenced by ~ODatabaseDocument().

◆ addCloseListener()

void SAL_CALL dbaccess::ODatabaseDocument::addCloseListener ( const css::uno::Reference< css::util::XCloseListener > &  Listener)
overridevirtual

◆ addDocumentEventListener()

void SAL_CALL dbaccess::ODatabaseDocument::addDocumentEventListener ( const css::uno::Reference< css::document::XDocumentEventListener > &  Listener)
overridevirtual

◆ addEventListener() [1/2]

virtual void SAL_CALL dbaccess::ODatabaseDocument::addEventListener ( const css::uno::Reference< css::document::XEventListener > &  aListener)
overridevirtual

◆ addEventListener() [2/2]

virtual void SAL_CALL dbaccess::ODatabaseDocument::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ addModifyListener()

void SAL_CALL dbaccess::ODatabaseDocument::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

◆ addStorageChangeListener()

void SAL_CALL dbaccess::ODatabaseDocument::addStorageChangeListener ( const css::uno::Reference< css::document::XStorageChangeListener > &  xListener)
overridevirtual

◆ addTitleChangeListener()

void SAL_CALL dbaccess::ODatabaseDocument::addTitleChangeListener ( const css::uno::Reference< css::frame::XTitleChangeListener > &  xListener)
overridevirtual

◆ attachResource()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::attachResource ( const OUString &  URL,
const css::uno::Sequence< css::beans::PropertyValue > &  Arguments 
)
overridevirtual

◆ checkInitialized()

void dbaccess::ODatabaseDocument::checkInitialized ( ) const
inline

checks whether the component is already initialized, throws a NotInitializedException if not

Definition at line 447 of file databasedocument.hxx.

References getThis(), and impl_isInitialized().

Referenced by dbaccess::DocumentGuard::DocumentGuard().

◆ checkNotInitialized()

void dbaccess::ODatabaseDocument::checkNotInitialized ( ) const
inline

checks whether the document is currently being initialized, or already initialized, throws a DoubleInitializationException if so

Definition at line 468 of file databasedocument.hxx.

References getThis(), impl_isInitialized(), and impl_isInitializing().

Referenced by dbaccess::DocumentGuard::DocumentGuard().

◆ checkNotUninitialized()

void dbaccess::ODatabaseDocument::checkNotUninitialized ( ) const
inline

checks the document is currently in the initialization phase, or already initialized.

Throws NotInitializedException if not so.

Definition at line 456 of file databasedocument.hxx.

References getThis(), impl_isInitialized(), and impl_isInitializing().

Referenced by dbaccess::DocumentGuard::DocumentGuard().

◆ clearObjectContainer()

void dbaccess::ODatabaseDocument::clearObjectContainer ( css::uno::WeakReference< css::container::XNameAccess > &  _rxContainer)
static

clears the given object container

Clearing is done via disposal - the method calls XComponent::dispose at the given object, which must be one of our impl's or our object containers (m_xForms, m_xReports, m_xTableDefinitions, m_xCommandDefinitions)

Parameters
_rxContainerthe container to clear

Definition at line 1403 of file databasedocument.cxx.

Referenced by disposing(), dbaccess::ODatabaseSource::disposing(), impl_reset_nothrow(), and impl_storeAs_throw().

◆ close()

void SAL_CALL dbaccess::ODatabaseDocument::close ( sal_Bool  DeliverOwnership)
overridevirtual

◆ connectController()

void SAL_CALL dbaccess::ODatabaseDocument::connectController ( const css::uno::Reference< css::frame::XController > &  Controller)
overridevirtual

◆ createDatabaseDocument()

static rtl::Reference< ODatabaseDocument > dbaccess::ODatabaseDocument::createDatabaseDocument ( const ::rtl::Reference< ODatabaseModelImpl > &  _pImpl,
FactoryAccess   
)
inlinestatic

◆ createDefaultViewController()

Reference< XController2 > SAL_CALL dbaccess::ODatabaseDocument::createDefaultViewController ( const css::uno::Reference< css::frame::XFrame > &  Frame)
overridevirtual

Definition at line 2060 of file databasedocument.cxx.

References createViewController(), and Frame.

◆ createViewController()

Reference< XController2 > SAL_CALL dbaccess::ODatabaseDocument::createViewController ( const OUString &  ViewName,
const css::uno::Sequence< css::beans::PropertyValue > &  Arguments,
const css::uno::Reference< css::frame::XFrame > &  Frame 
)
overridevirtual

◆ disconnectController()

void SAL_CALL dbaccess::ODatabaseDocument::disconnectController ( const css::uno::Reference< css::frame::XController > &  Controller)
overridevirtual

◆ dispose()

void SAL_CALL dbaccess::ODatabaseDocument::dispose ( void  )
overridevirtual

Definition at line 1869 of file databasedocument.cxx.

Referenced by close(), and ~ODatabaseDocument().

◆ disposing()

void dbaccess::ODatabaseDocument::disposing ( )
overrideprotectedvirtual

◆ getAllowMacroExecution()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::getAllowMacroExecution ( )
overridevirtual

◆ getArgs()

Sequence< PropertyValue > SAL_CALL dbaccess::ODatabaseDocument::getArgs ( )
overridevirtual

◆ getArgs2()

Sequence< PropertyValue > SAL_CALL dbaccess::ODatabaseDocument::getArgs2 ( const ::css::uno::Sequence< ::rtl::OUString > &  requestedArgs)
override

◆ getAvailableViewControllerNames()

Sequence< OUString > SAL_CALL dbaccess::ODatabaseDocument::getAvailableViewControllerNames ( )
overridevirtual

Definition at line 2054 of file databasedocument.cxx.

References SERVICE_SDB_APPLICATIONCONTROLLER.

◆ getBasicLibraries()

Reference< XStorageBasedLibraryContainer > SAL_CALL dbaccess::ODatabaseDocument::getBasicLibraries ( )
overridevirtual

◆ getControllers()

Reference< XEnumeration > SAL_CALL dbaccess::ODatabaseDocument::getControllers ( )
overridevirtual

◆ getCurrentController()

Reference< XController > SAL_CALL dbaccess::ODatabaseDocument::getCurrentController ( )
overridevirtual

◆ getCurrentSelection()

Reference< XInterface > SAL_CALL dbaccess::ODatabaseDocument::getCurrentSelection ( )
overridevirtual

◆ getDataSource()

Reference< XDataSource > SAL_CALL dbaccess::ODatabaseDocument::getDataSource ( )
overridevirtual

◆ getDialogLibraries()

Reference< XStorageBasedLibraryContainer > SAL_CALL dbaccess::ODatabaseDocument::getDialogLibraries ( )
overridevirtual

◆ getDocumentStorage()

Reference< XStorage > SAL_CALL dbaccess::ODatabaseDocument::getDocumentStorage ( )
overridevirtual

◆ getDocumentSubStorage()

Reference< XStorage > SAL_CALL dbaccess::ODatabaseDocument::getDocumentSubStorage ( const OUString &  aStorageName,
sal_Int32  nMode 
)
overridevirtual

◆ getDocumentSubStoragesNames()

Sequence< OUString > SAL_CALL dbaccess::ODatabaseDocument::getDocumentSubStoragesNames ( )
overridevirtual

Definition at line 1770 of file databasedocument.cxx.

References dbaccess::ModelDependentComponent::m_pImpl.

◆ getEvents()

Reference< XNameReplace > SAL_CALL dbaccess::ODatabaseDocument::getEvents ( )
overridevirtual

◆ getFormDocuments()

Reference< XNameAccess > SAL_CALL dbaccess::ODatabaseDocument::getFormDocuments ( )
overridevirtual

◆ getImplementationId()

Sequence< sal_Int8 > SAL_CALL dbaccess::ODatabaseDocument::getImplementationId ( )
overridevirtual

Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.

Definition at line 239 of file databasedocument.cxx.

◆ getImplementationName()

OUString dbaccess::ODatabaseDocument::getImplementationName ( )
overridevirtual

Definition at line 1885 of file databasedocument.cxx.

◆ getLocation()

OUString SAL_CALL dbaccess::ODatabaseDocument::getLocation ( )
overridevirtual

◆ getPrinter()

Sequence< PropertyValue > SAL_CALL dbaccess::ODatabaseDocument::getPrinter ( )
overridevirtual

Definition at line 1380 of file databasedocument.cxx.

◆ getReportDocuments()

Reference< XNameAccess > SAL_CALL dbaccess::ODatabaseDocument::getReportDocuments ( )
overridevirtual

◆ getScriptContainer()

Reference< XEmbeddedScripts > SAL_CALL dbaccess::ODatabaseDocument::getScriptContainer ( )
overridevirtual

Definition at line 1996 of file databasedocument.cxx.

◆ getScriptProvider()

Reference< provider::XScriptProvider > SAL_CALL dbaccess::ODatabaseDocument::getScriptProvider ( )
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > dbaccess::ODatabaseDocument::getSupportedServiceNames ( )
overridevirtual

Definition at line 1890 of file databasedocument.cxx.

◆ getThis()

Reference< XInterface > dbaccess::ODatabaseDocument::getThis ( ) const
overrideprivatevirtual

returns the component itself

Implements dbaccess::ModelDependentComponent.

Definition at line 2028 of file databasedocument.cxx.

Referenced by checkInitialized(), checkNotInitialized(), checkNotUninitialized(), and impl_getTitleHelper_throw().

◆ getTitle()

OUString SAL_CALL dbaccess::ODatabaseDocument::getTitle ( )
overridevirtual

◆ getTypes()

Sequence< Type > SAL_CALL dbaccess::ODatabaseDocument::getTypes ( )
overridevirtual

◆ getUIConfigurationManager()

Reference< XUIConfigurationManager > SAL_CALL dbaccess::ODatabaseDocument::getUIConfigurationManager ( )
overridevirtual

Definition at line 1724 of file databasedocument.cxx.

References getUIConfigurationManager2().

◆ getUIConfigurationManager2()

Reference< XUIConfigurationManager2 > const & dbaccess::ODatabaseDocument::getUIConfigurationManager2 ( )
private

◆ getUntitledPrefix()

OUString SAL_CALL dbaccess::ODatabaseDocument::getUntitledPrefix ( )
overridevirtual

Definition at line 2188 of file databasedocument.cxx.

◆ getURL()

OUString SAL_CALL dbaccess::ODatabaseDocument::getURL ( )
overridevirtual

◆ hasControllersLocked()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::hasControllersLocked ( )
overridevirtual

◆ hasLocation()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::hasLocation ( )
overridevirtual

Definition at line 951 of file databasedocument.cxx.

References getLocation().

◆ impl_attachResource()

bool dbaccess::ODatabaseDocument::impl_attachResource ( const OUString &  i_rLogicalDocumentURL,
const css::uno::Sequence< css::beans::PropertyValue > &  i_rMediaDescriptor,
DocumentGuard _rDocGuard 
)
private

impl-version of attachResource

Parameters
i_rLogicalDocumentURLdenotes the logical URL of the document, to be reported by getURL/getLocation
i_rMediaDescriptordenotes additional document parameters
_rDocGuardis the guard which currently protects the document instance

Definition at line 738 of file databasedocument.cxx.

References dbaccess::DocumentGuard::clear(), comphelper::NamedValueCollection::empty(), comphelper::NamedValueCollection::get(), getURL(), impl_isInitializing(), impl_setInitialized(), m_aEventNotifier, m_bAllowDocumentScripting, dbaccess::ModelDependentComponent::m_pImpl, dbaccess::DocumentEventNotifier::notifyDocumentEvent(), comphelper::NamedValueCollection::remove(), and dbaccess::ODatabaseModelImpl::SubDocument.

Referenced by attachResource(), and recoverFromFile().

◆ impl_closeControllerFrames_nolck_throw()

void dbaccess::ODatabaseDocument::impl_closeControllerFrames_nolck_throw ( bool  _bDeliverOwnership)
private

closes the frames of all connected controllers

Parameters
_bDeliverOwnershipdetermines if the ownership should be transferred to the component which possibly vetos the closing
Exceptions
css::util::CloseVetoExceptionif the closing was vetoed by any instance

Definition at line 1450 of file databasedocument.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_aControllers, and xFrame.

Referenced by close().

◆ impl_createStorageFor_throw()

Reference< XStorage > dbaccess::ODatabaseDocument::impl_createStorageFor_throw ( const OUString &  _rURL) const
private

creates a storage for the given URL, truncating it if a file with this name already exists

Exceptions
Exceptionif creating the storage failed
Returns
the newly created storage for the file at the given URL

Definition at line 1125 of file databasedocument.cxx.

References Any, dbaccess::ModelDependentComponent::m_pImpl, and xStream.

Referenced by impl_GetStorageOrCreateFor_throw(), and storeToRecoveryFile().

◆ impl_disposeControllerFrames_nothrow()

void dbaccess::ODatabaseDocument::impl_disposeControllerFrames_nothrow ( )
private

disposes the frames of all controllers which are still left in m_aControllers.

Definition at line 1473 of file databasedocument.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_aControllers, and xFrame.

Referenced by disposing().

◆ impl_getDocumentContainer_throw()

Reference< XNameAccess > dbaccess::ODatabaseDocument::impl_getDocumentContainer_throw ( ODatabaseModelImpl::ObjectType  _eType)
private

retrieves the forms or reports contained, creates and initializes it, if necessary

Exceptions
DisposedExceptionif the instance is already disposed
IllegalArgumentExceptionif <arg>_eType</arg> is not ODatabaseModelImpl::E_FORM and not ODatabaseModelImpl::E_REPORT

Definition at line 1414 of file databasedocument.cxx.

References Any, dbaccess::ODatabaseModelImpl::Form, dbtools::getDataSourceSetting(), impl_reparent_nothrow(), dbaccess::ModelDependentComponent::m_pImpl, m_xForms, m_xReports, and dbaccess::ODatabaseModelImpl::Report.

Referenced by getFormDocuments(), and getReportDocuments().

◆ impl_GetStorageOrCreateFor_throw()

css::uno::Reference< css::embed::XStorage > dbaccess::ODatabaseDocument::impl_GetStorageOrCreateFor_throw ( const ::comphelper::NamedValueCollection _rArguments,
const OUString &  _rURL 
) const
private

Extracts storage from arguments, or creates for the given URL, truncating it if a file with this name already exists.

Exceptions
Exceptionif creating the storage failed
Returns
the storage that is either extracted from arguments, or newly created for the file at the given URL

Definition at line 1140 of file databasedocument.cxx.

References impl_createStorageFor_throw().

Referenced by impl_storeAs_throw(), and storeToURL().

◆ impl_getTitleHelper_throw()

Reference< XTitle > const & dbaccess::ODatabaseDocument::impl_getTitleHelper_throw ( )
private

◆ impl_getUntitledHelper_throw()

uno::Reference< frame::XUntitledNumbers > dbaccess::ODatabaseDocument::impl_getUntitledHelper_throw ( const css::uno::Reference< css::uno::XInterface > &  _xComponent = css::uno::Reference< css::uno::XInterface >())
private

◆ impl_import_nolck_throw()

void dbaccess::ODatabaseDocument::impl_import_nolck_throw ( const css::uno::Reference< css::uno::XComponentContext > &  _rContext,
const css::uno::Reference< css::uno::XInterface > &  _rxTargetComponent,
const ::comphelper::NamedValueCollection _rResource 
)
staticprivate

imports the document from the given resource.

Definition at line 442 of file databasedocument.cxx.

References comphelper::GenericPropertySet_CreateInstance(), nCount, and dbaccess::ODatabaseModelImpl::stripLoadArguments().

Referenced by load().

◆ impl_isInitialized()

bool dbaccess::ODatabaseDocument::impl_isInitialized ( ) const
inlineprivate

returns whether the model is already initialized, i.e.

the XModel's "initNew" or "load" methods have been called

Definition at line 484 of file databasedocument.hxx.

References Initialized, and m_eInitState.

Referenced by checkInitialized(), checkNotInitialized(), checkNotUninitialized(), disposing(), impl_storeToStorage_throw(), setModified(), and storeAsURL().

◆ impl_isInitializing()

bool dbaccess::ODatabaseDocument::impl_isInitializing ( ) const
inlineprivate

returns whether the model is currently being initialized

Definition at line 480 of file databasedocument.hxx.

References Initializing, and m_eInitState.

Referenced by checkNotInitialized(), checkNotUninitialized(), impl_attachResource(), impl_storeAs_throw(), and storeAsURL().

◆ impl_notifyStorageChange_nolck_nothrow()

void dbaccess::ODatabaseDocument::impl_notifyStorageChange_nolck_nothrow ( const css::uno::Reference< css::embed::XStorage > &  _rxNewRootStorage)
private

notifies our storage change listeners that our underlying storage changed

Parameters
_rxNewRootStoragethe new root storage to be notified. If <NULL>, it is assumed that no storage change actually happened, and the listeners are not notified.

Definition at line 1776 of file databasedocument.cxx.

References comphelper::OInterfaceContainerHelper3< class ListenerT >::forEach(), and m_aStorageListeners.

Referenced by impl_storeAs_throw(), initNew(), and switchToStorage().

◆ impl_reparent_nothrow()

void dbaccess::ODatabaseDocument::impl_reparent_nothrow ( const css::uno::WeakReference< css::container::XNameAccess > &  _rxContainer)
private

does a reparenting at the given object container to ourself

Calls XChild::setParent at the given object, which must be one of our impl's or our object containers (m_xForms, m_xReports, m_xTableDefinitions, m_xCommandDefinitions)

Definition at line 1396 of file databasedocument.cxx.

Referenced by impl_getDocumentContainer_throw(), and ODatabaseDocument().

◆ impl_reset_nothrow()

void dbaccess::ODatabaseDocument::impl_reset_nothrow ( )
private

resets everything

@precond m_pImpl is not <NULL>

Definition at line 405 of file databasedocument.cxx.

References clearObjectContainer(), DBG_UNHANDLED_EXCEPTION, Exception, m_eInitState, dbaccess::ModelDependentComponent::m_pImpl, m_xForms, m_xReports, and NotInitialized.

Referenced by initNew(), load(), and storeAsURL().

◆ impl_setInitialized()

void dbaccess::ODatabaseDocument::impl_setInitialized ( )
private

◆ impl_setInitializing()

void dbaccess::ODatabaseDocument::impl_setInitializing ( )
inlineprivate

tells the model it is being initialized now

Definition at line 487 of file databasedocument.hxx.

References Initializing, and m_eInitState.

Referenced by initNew(), load(), ODatabaseDocument(), and storeAsURL().

◆ impl_setModified_nothrow()

void dbaccess::ODatabaseDocument::impl_setModified_nothrow ( bool  _bModified,
DocumentGuard _rGuard 
)
private

sets our "modified" flag

will notify all our respective listeners, if the "modified" state actually changed

Parameters
_bModifiedthe (new) flag indicating whether the document is currently modified or not
_rGuardthe guard for our instance. At method entry, the guard must hold the lock. At the moment of method leave, the lock will be released. @precond our mutex is locked @postcond our mutex is not locked

Definition at line 1320 of file databasedocument.cxx.

References aEvent, dbaccess::DocumentGuard::clear(), m_aEventNotifier, m_aModifyListeners, dbaccess::ModelDependentComponent::m_pImpl, dbaccess::DocumentEventNotifier::notifyDocumentEventAsync(), and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().

Referenced by impl_storeAs_throw(), initNew(), load(), loadFromStorage(), and setModified().

◆ impl_storeAs_throw()

void dbaccess::ODatabaseDocument::impl_storeAs_throw ( const OUString &  _rURL,
const ::comphelper::NamedValueCollection _rArguments,
const StoreType  _eType,
DocumentGuard _rGuard 
)
private

stores the document to the given URL, rebases it to the respective new storage, if necessary, resets the modified flag, and notifies any listeners as required

Parameters
_rURLthe URL to store the document to
_rArgumentsarguments for storing the document (MediaDescriptor)
_eTypethe type of the store process (Save or SaveAs). The method will automatically notify the proper events for this type.
_rGuardthe instance lock to be released before doing synchronous notifications
Exceptions
css::io::IOException
css::uno::RuntimeException

Definition at line 1018 of file databasedocument.cxx.

References Any, dbaccess::DocumentGuard::clear(), clearObjectContainer(), Exception, impl_GetStorageOrCreateFor_throw(), impl_isInitializing(), impl_notifyStorageChange_nolck_nothrow(), impl_setInitialized(), impl_setModified_nothrow(), impl_storeToStorage_throw(), impl_throwIOExceptionCausedBySave_throw(), m_aEventNotifier, dbaccess::ModelDependentComponent::m_pImpl, m_xForms, m_xReports, dbaccess::DocumentEventNotifier::notifyDocumentEvent(), dbaccess::DocumentEventNotifier::notifyDocumentEventAsync(), dbaccess::DocumentGuard::reset(), SAVE, and SAVE_AS.

Referenced by store(), and storeAsURL().

◆ impl_storeToStorage_throw()

void dbaccess::ODatabaseDocument::impl_storeToStorage_throw ( const css::uno::Reference< css::embed::XStorage > &  _rxTargetStorage,
const css::uno::Sequence< css::beans::PropertyValue > &  _rMediaDescriptor,
DocumentGuard _rDocGuard 
) const
private

stores the document to the given storage

Note that the document is actually not rebased to this storage, it just stores a copy of itself to the given target storage.

Parameters
_rxTargetStoragedenotes the storage to store the document into
_rMediaDescriptorcontains additional parameters for storing the document
_rDocGuarda guard which holds the (only) lock to the document, and which will be temporarily released where necessary (e.g. for notifications, or calling into other components)
Exceptions
css::uno::IllegalArgumentExceptionif the given storage is <NULL>.
css::uno::RuntimeExceptionwhen any of the used operations throws it
css::io::IOExceptionwhen any of the used operations throws it, or any other exception occurs which is no RuntimeException and no IOException

Definition at line 1206 of file databasedocument.cxx.

References Exception, impl_isInitialized(), impl_writeStorage_throw(), and dbaccess::ModelDependentComponent::m_pImpl.

Referenced by impl_storeAs_throw(), initNew(), store(), storeToRecoveryFile(), storeToStorage(), and storeToURL().

◆ impl_throwIOExceptionCausedBySave_throw()

void dbaccess::ODatabaseDocument::impl_throwIOExceptionCausedBySave_throw ( const css::uno::Any &  i_rError,
std::u16string_view  i_rTargetURL 
) const
private

throws an IOException with the message as defined in the RID_STR_ERROR_WHILE_SAVING resource, wrapping the given caught non-IOException error

Definition at line 1007 of file databasedocument.cxx.

References dbaccess::extractExceptionMessage(), dbaccess::ResourceManager::loadString(), and dbaccess::ModelDependentComponent::m_pImpl.

Referenced by impl_storeAs_throw(), store(), and storeToURL().

◆ impl_writeStorage_throw()

void dbaccess::ODatabaseDocument::impl_writeStorage_throw ( const css::uno::Reference< css::embed::XStorage > &  _rxTargetStorage,
const ::comphelper::NamedValueCollection _rMediaDescriptor 
) const
private

◆ initNew()

void SAL_CALL dbaccess::ODatabaseDocument::initNew ( )
overridevirtual

◆ isModified()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::isModified ( )
overridevirtual

◆ isReadonly()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::isReadonly ( )
overridevirtual

◆ leaseNumber()

sal_Int32 SAL_CALL dbaccess::ODatabaseDocument::leaseNumber ( const css::uno::Reference< css::uno::XInterface > &  xComponent)
override

◆ load()

void SAL_CALL dbaccess::ODatabaseDocument::load ( const css::uno::Sequence< css::beans::PropertyValue > &  lArguments)
overridevirtual

◆ loadFromStorage()

void SAL_CALL dbaccess::ODatabaseDocument::loadFromStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescriptor 
)
overridevirtual

◆ lockControllers()

void SAL_CALL dbaccess::ODatabaseDocument::lockControllers ( )
overridevirtual

◆ notifyDocumentEvent()

void SAL_CALL dbaccess::ODatabaseDocument::notifyDocumentEvent ( const OUString &  EventName,
const css::uno::Reference< css::frame::XController2 > &  ViewController,
const css::uno::Any &  Supplement 
)
overridevirtual

◆ print()

void SAL_CALL dbaccess::ODatabaseDocument::print ( const css::uno::Sequence< css::beans::PropertyValue > &  xOptions)
overridevirtual

Definition at line 1391 of file databasedocument.cxx.

◆ queryInterface()

Any SAL_CALL dbaccess::ODatabaseDocument::queryInterface ( const css::uno::Type &  _rType)
overridevirtual

◆ recoverFromFile()

void SAL_CALL dbaccess::ODatabaseDocument::recoverFromFile ( const OUString &  i_SourceLocation,
const OUString &  i_SalvagedFile,
const css::uno::Sequence< css::beans::PropertyValue > &  i_MediaDescriptor 
)
overridevirtual

◆ release()

void SAL_CALL dbaccess::ODatabaseDocument::release ( )
overridevirtualnoexcept

Definition at line 211 of file databasedocument.cxx.

◆ releaseNumber()

void SAL_CALL dbaccess::ODatabaseDocument::releaseNumber ( ::sal_Int32  nNumber)
overridevirtual

◆ releaseNumberForComponent()

void SAL_CALL dbaccess::ODatabaseDocument::releaseNumberForComponent ( const css::uno::Reference< css::uno::XInterface > &  xComponent)
overridevirtual

◆ removeCloseListener()

void SAL_CALL dbaccess::ODatabaseDocument::removeCloseListener ( const css::uno::Reference< css::util::XCloseListener > &  Listener)
overridevirtual

◆ removeDocumentEventListener()

void SAL_CALL dbaccess::ODatabaseDocument::removeDocumentEventListener ( const css::uno::Reference< css::document::XDocumentEventListener > &  Listener)
overridevirtual

◆ removeEventListener() [1/2]

virtual void SAL_CALL dbaccess::ODatabaseDocument::removeEventListener ( const css::uno::Reference< css::document::XEventListener > &  aListener)
overridevirtual

◆ removeEventListener() [2/2]

virtual void SAL_CALL dbaccess::ODatabaseDocument::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ removeModifyListener()

void SAL_CALL dbaccess::ODatabaseDocument::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

◆ removeStorageChangeListener()

void SAL_CALL dbaccess::ODatabaseDocument::removeStorageChangeListener ( const css::uno::Reference< css::document::XStorageChangeListener > &  xListener)
overridevirtual

◆ removeTitleChangeListener()

void SAL_CALL dbaccess::ODatabaseDocument::removeTitleChangeListener ( const css::uno::Reference< css::frame::XTitleChangeListener > &  xListener)
overridevirtual

◆ setArgs()

void SAL_CALL dbaccess::ODatabaseDocument::setArgs ( const css::uno::Sequence< css::beans::PropertyValue > &  aArgs)
overridevirtual

Definition at line 809 of file databasedocument.cxx.

◆ setCurrentController()

void SAL_CALL dbaccess::ODatabaseDocument::setCurrentController ( const css::uno::Reference< css::frame::XController > &  Controller)
overridevirtual

◆ setModified()

void SAL_CALL dbaccess::ODatabaseDocument::setModified ( sal_Bool  bModified)
overridevirtual

◆ setPrinter()

void SAL_CALL dbaccess::ODatabaseDocument::setPrinter ( const css::uno::Sequence< css::beans::PropertyValue > &  aPrinter)
overridevirtual

Definition at line 1386 of file databasedocument.cxx.

◆ setTitle()

void SAL_CALL dbaccess::ODatabaseDocument::setTitle ( const OUString &  sTitle)
overridevirtual

◆ store()

void SAL_CALL dbaccess::ODatabaseDocument::store ( )
overridevirtual

◆ storeAsURL()

void SAL_CALL dbaccess::ODatabaseDocument::storeAsURL ( const OUString &  sURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArguments 
)
overridevirtual

◆ storeToRecoveryFile()

void SAL_CALL dbaccess::ODatabaseDocument::storeToRecoveryFile ( const OUString &  i_TargetLocation,
const css::uno::Sequence< css::beans::PropertyValue > &  i_MediaDescriptor 
)
overridevirtual

◆ storeToStorage()

void SAL_CALL dbaccess::ODatabaseDocument::storeToStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescriptor 
)
overridevirtual

◆ storeToURL()

void SAL_CALL dbaccess::ODatabaseDocument::storeToURL ( const OUString &  sURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArguments 
)
overridevirtual

◆ supportsService()

sal_Bool dbaccess::ODatabaseDocument::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1895 of file databasedocument.cxx.

References cppu::supportsService().

◆ switchToStorage()

void SAL_CALL dbaccess::ODatabaseDocument::switchToStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
overridevirtual

◆ unlockControllers()

void SAL_CALL dbaccess::ODatabaseDocument::unlockControllers ( )
overridevirtual

◆ wasModifiedSinceLastSave()

sal_Bool SAL_CALL dbaccess::ODatabaseDocument::wasModifiedSinceLastSave ( )
overridevirtual

◆ WriteThroughComponent() [1/2]

void dbaccess::ODatabaseDocument::WriteThroughComponent ( const css::uno::Reference< css::io::XOutputStream > &  xOutputStream,
const css::uno::Reference< css::lang::XComponent > &  xComponent,
const char *  pServiceName,
const css::uno::Sequence< css::uno::Any > &  rArguments,
const css::uno::Sequence< css::beans::PropertyValue > &  rMediaDesc 
) const
private

write a single output stream (to be called either directly or by WriteThroughComponent(...))

◆ WriteThroughComponent() [2/2]

void dbaccess::ODatabaseDocument::WriteThroughComponent ( const css::uno::Reference< css::lang::XComponent > &  xComponent,
const char *  pStreamName,
const char *  pServiceName,
const css::uno::Sequence< css::uno::Any > &  rArguments,
const css::uno::Sequence< css::beans::PropertyValue > &  rMediaDesc,
const css::uno::Reference< css::embed::XStorage > &  _xStorageToSaveTo 
) const
private

write a single XML stream into the package

Parameters
pStreamNamethe component we export
pServiceNamethe stream name
rArgumentsservice name of the component
rMediaDescthe argument (XInitialization)
_xStorageToSaveTooutput descriptor

Referenced by impl_writeStorage_throw().

Member Data Documentation

◆ m_aCloseListener

::comphelper::OInterfaceContainerHelper3<css::util::XCloseListener> dbaccess::ODatabaseDocument::m_aCloseListener
private

Definition at line 173 of file databasedocument.hxx.

Referenced by addCloseListener(), close(), disposing(), and removeCloseListener().

◆ m_aControllers

Controllers dbaccess::ODatabaseDocument::m_aControllers
private

◆ m_aEventNotifier

DocumentEventNotifier dbaccess::ODatabaseDocument::m_aEventNotifier
private

◆ m_aModifyListeners

::comphelper::OInterfaceContainerHelper3<css::util::XModifyListener> dbaccess::ODatabaseDocument::m_aModifyListeners
private

◆ m_aNumberedControllers

TNumberedController dbaccess::ODatabaseDocument::m_aNumberedControllers
private

Definition at line 191 of file databasedocument.hxx.

Referenced by impl_getUntitledHelper_throw().

◆ m_aStorageListeners

::comphelper::OInterfaceContainerHelper3<css::document::XStorageChangeListener> dbaccess::ODatabaseDocument::m_aStorageListeners
private

◆ m_aViewMonitor

ViewMonitor dbaccess::ODatabaseDocument::m_aViewMonitor
private

◆ m_bAllowDocumentScripting

bool dbaccess::ODatabaseDocument::m_bAllowDocumentScripting
private

◆ m_bClosing

bool dbaccess::ODatabaseDocument::m_bClosing
private

Definition at line 197 of file databasedocument.hxx.

Referenced by close(), and disconnectController().

◆ m_bEmbedded

bool dbaccess::ODatabaseDocument::m_bEmbedded
private

If XModel::attachResource() was called to inform us that the document is embedded into another one.

Definition at line 201 of file databasedocument.hxx.

Referenced by attachResource(), load(), and loadFromStorage().

◆ m_bHasBeenRecovered

bool dbaccess::ODatabaseDocument::m_bHasBeenRecovered
private

Definition at line 199 of file databasedocument.hxx.

Referenced by recoverFromFile(), and setCurrentController().

◆ m_eInitState

InitState dbaccess::ODatabaseDocument::m_eInitState
private

true if and only if the DatabaseDocument's "initNew" or "load" have been called (or, well, the document has be initialized implicitly - see storeAsURL

Definition at line 196 of file databasedocument.hxx.

Referenced by impl_isInitialized(), impl_isInitializing(), impl_reset_nothrow(), impl_setInitialized(), and impl_setInitializing().

◆ m_pEventContainer

std::unique_ptr<DocumentEvents> dbaccess::ODatabaseDocument::m_pEventContainer
private

Definition at line 176 of file databasedocument.hxx.

Referenced by getEvents().

◆ m_pEventExecutor

::rtl::Reference< DocumentEventExecutor > dbaccess::ODatabaseDocument::m_pEventExecutor
private

Definition at line 177 of file databasedocument.hxx.

Referenced by ODatabaseDocument().

◆ m_xCurrentController

css::uno::Reference< css::frame::XController > dbaccess::ODatabaseDocument::m_xCurrentController
private

◆ m_xForms

css::uno::WeakReference< css::container::XNameAccess > dbaccess::ODatabaseDocument::m_xForms
private

◆ m_xModuleManager

css::uno::Reference< css::frame::XModuleManager2 > dbaccess::ODatabaseDocument::m_xModuleManager
private

such module manager is used to classify new opened documents.

Definition at line 189 of file databasedocument.hxx.

Referenced by disposing(), and impl_getUntitledHelper_throw().

◆ m_xReports

css::uno::WeakReference< css::container::XNameAccess > dbaccess::ODatabaseDocument::m_xReports
private

◆ m_xScriptProvider

css::uno::WeakReference< css::script::provider::XScriptProvider > dbaccess::ODatabaseDocument::m_xScriptProvider
private

Definition at line 186 of file databasedocument.hxx.

Referenced by getScriptProvider().

◆ m_xTitleHelper

css::uno::Reference< css::frame::XTitle > dbaccess::ODatabaseDocument::m_xTitleHelper
private

Definition at line 190 of file databasedocument.hxx.

Referenced by disposing(), and impl_getTitleHelper_throw().

◆ m_xUIConfigurationManager

css::uno::Reference< css::ui::XUIConfigurationManager2> dbaccess::ODatabaseDocument::m_xUIConfigurationManager
private

Definition at line 170 of file databasedocument.hxx.

Referenced by disposing(), and getUIConfigurationManager2().


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