LibreOffice Module dbaccess (master) 1
|
#include <documentdefinition.hxx>
Classes | |
struct | NotifierAccess |
Public Member Functions | |
ODocumentDefinition (const css::uno::Reference< css::uno::XInterface > &_rxContainer, const css::uno::Reference< css::uno::XComponentContext > &, const TContentPtr &_pImpl, bool _bForm) | |
void | initialLoad (const css::uno::Sequence< sal_Int8 > &i_rClassID, const css::uno::Sequence< css::beans::PropertyValue > &i_rCreationArgs, const css::uno::Reference< css::sdbc::XConnection > &i_rConnection) |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &o_rValue, sal_Int32 i_nHandle) const override |
virtual css::uno::Reference< css::util::XCloseable > SAL_CALL | getComponent () override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | open () override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | openDesign () override |
virtual void SAL_CALL | store () override |
virtual sal_Bool SAL_CALL | close () override |
virtual OUString SAL_CALL | getHierarchicalName () override |
virtual OUString SAL_CALL | composeHierarchicalName (const OUString &aRelativeName) override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual css::uno::Any SAL_CALL | execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override |
virtual void SAL_CALL | rename (const OUString &newName) override |
virtual void SAL_CALL | queryClosing (const css::lang::EventObject &Source, sal_Bool GetsOwnership) override |
virtual void SAL_CALL | notifyClosing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
css::uno::Reference< css::embed::XStorage > | getContainerStorage () const |
returns the forms/reports container storage, depending on m_bForm. More... | |
bool | save (bool _bApprove, const css::uno::Reference< css::awt::XTopWindow > &rDialogParent) |
void | saveAs () |
void | closeObject () |
bool | isModified () |
bool | isNewReport () const |
const css::uno::Reference< css::sdbc::XConnection > & | getConnection () const |
bool | prepareClose () |
prepares closing the document component More... | |
const OUString & | getCurrentName () const |
void | firePropertyChange (sal_Int32 i_nHandle, const css::uno::Any &i_rNewValue, const css::uno::Any &i_rOldValue, bool i_bVetoable, const NotifierAccess &) |
Public Member Functions inherited from dbaccess::OContentHelper | |
OContentHelper (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, TContentPtr _pImpl) | |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | getIdentifier () override |
virtual OUString SAL_CALL | getContentType () override |
virtual void SAL_CALL | addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual void SAL_CALL | removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual sal_Int32 SAL_CALL | createCommandIdentifier () override |
virtual css::uno::Any SAL_CALL | execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override |
virtual void SAL_CALL | abort (sal_Int32 CommandId) override |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
virtual void SAL_CALL | rename (const OUString &newName) override |
const ContentProperties & | getContentProperties () const |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties) |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
const TContentPtr & | getImpl () const |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ODocumentDefinition > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Public Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
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 void | fillReportData (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::util::XCloseable > &_rxComponent, const css::uno::Reference< css::sdbc::XConnection > &_rxActiveConnection) |
static OUString | GetDocumentServiceFromMediaType (const OUString &_rMediaType, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, css::uno::Sequence< sal_Int8 > &_rClassId) |
static OUString | GetDocumentServiceFromMediaType (const css::uno::Reference< css::embed::XStorage > &_rxContainerStorage, const OUString &_rEntityName, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, css::uno::Sequence< sal_Int8 > &_rClassId) |
Protected Member Functions | |
virtual | ~ODocumentDefinition () override |
Protected Member Functions inherited from dbaccess::OContentHelper | |
virtual void SAL_CALL | disposing () override |
void | notifyDataSourceModified () |
void | notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const |
This method can be used to propagate changes of property values. More... | |
OUString | impl_getHierarchicalName (bool _includingRootContainer) const |
virtual OUString | determineContentType () const =0 |
Protected Member Functions inherited from comphelper::OPropertyStateContainer | |
OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 _nHandle) const |
void | setPropertyToDefaultByHandle (sal_Int32 _nHandle) |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const=0 |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
sal_Int32 | getHandleForName (const OUString &_rPropertyName) |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
~ImplHelper4 () SAL_NOEXCEPT | |
Private Member Functions | |
void | impl_onActivateEmbeddedObject_nothrow (const bool i_bReactivated) |
does necessary initializations after our embedded object has been switched to ACTIVE More... | |
css::uno::Reference< css::lang::XComponent > | impl_openUI_nolck_throw (bool _bForEditing) |
opens the UI for this sub document More... | |
void | impl_store_throw () |
stores our document, if it's already loaded More... | |
bool | impl_close_throw () |
closes our document, if it's open More... | |
css::uno::Reference< css::util::XCloseable > | impl_getComponent_throw (const bool i_ForceCreate=true) |
returns our component, creates it if necessary More... | |
void | impl_showOrHideComponent_throw (const bool i_bShow) |
shows or hides our component More... | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override |
virtual void SAL_CALL | disposing () override |
virtual OUString | determineContentType () const override |
css::uno::Sequence< css::beans::PropertyValue > | fillLoadArgs (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const bool _bSuppressMacros, const bool _bReadOnly, const css::uno::Sequence< css::beans::PropertyValue > &i_rOpenCommandArguments, css::uno::Sequence< css::beans::PropertyValue > &_out_rEmbeddedObjectDescriptor) |
fills the load arguments More... | |
void | loadEmbeddedObject (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Sequence< sal_Int8 > &_aClassID, const css::uno::Sequence< css::beans::PropertyValue > &_rAdditionalArgs, const bool _bSuppressMacros, const bool _bReadOnly) |
loads the EmbeddedObject if not already loaded More... | |
void | loadEmbeddedObjectForPreview () |
loads the embedded object for preview. More... | |
void | updateDocumentTitle () |
searches for read-only flag in the args of the model and sets it to the given value, if the value was not found, it will be appended. More... | |
void | registerProperties () |
bool | objectSupportsEmbeddedScripts () const |
determines whether the document we represent supports embedded scripts and macros More... | |
void | onCommandGetDocumentProperties (css::uno::Any &_rProps) |
void | onCommandInsert (const OUString &_sURL, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) |
void | onCommandPreview (css::uno::Any &_rImage) |
css::uno::Any | onCommandOpenSomething (const css::uno::Any &_rArgument, const bool _bActivate, const css::uno::Reference< css::ucb::XCommandEnvironment > &_rxEnvironment) |
Static Private Member Functions | |
static void | impl_initFormEditView (const css::uno::Reference< css::frame::XController > &_rxController) |
initializes a newly created view/controller of a form which is displaying our embedded object More... | |
static void | impl_removeFrameFromDesktop_throw (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::frame::XFrame > &_rxFrame) |
removes the given frame from the desktop's frame collection More... | |
static void | separateOpenCommandArguments (const css::uno::Sequence< css::beans::PropertyValue > &i_rOpenCommandArguments, ::comphelper::NamedValueCollection &o_rDocumentLoadArgs, ::comphelper::NamedValueCollection &o_rEmbeddedObjectDescriptor) |
splits the given arguments to an "open*" command into arguments for loading the document, and arguments to be put into the EmbeddedObjectDescriptor More... | |
Private Attributes | |
css::uno::Reference< css::embed::XEmbeddedObject > | m_xEmbeddedObject |
css::uno::Reference< css::embed::XStateChangeListener > | m_xListener |
css::uno::Reference< css::sdbc::XConnection > | m_xLastKnownConnection |
rtl::Reference< OInterceptor > | m_pInterceptor |
bool | m_bForm |
bool | m_bOpenInDesign |
bool | m_bInExecute |
bool | m_bRemoveListener |
rtl::Reference< OEmbeddedClientHelper > | m_pClientHelper |
Additional Inherited Members | |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ODocumentDefinition > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from dbaccess::OContentHelper | |
::comphelper::OInterfaceContainerHelper3< css::ucb::XContentEventListener > | m_aContentListeners |
PropertyChangeListenerContainer | m_aPropertyChangeListeners |
css::uno::Reference< css::uno::XInterface > | m_xParentContainer |
const css::uno::Reference< css::uno::XComponentContext > | m_aContext |
const ::connectivity::SQLError | m_aErrorHelper |
TContentPtr | m_pImpl |
sal_uInt32 | m_nCommandId |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< ODocumentDefinition > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 59 of file documentdefinition.hxx.
|
overrideprotectedvirtual |
Definition at line 428 of file documentdefinition.cxx.
References dispose(), and m_pInterceptor.
dbaccess::ODocumentDefinition::ODocumentDefinition | ( | const css::uno::Reference< css::uno::XInterface > & | _rxContainer, |
const css::uno::Reference< css::uno::XComponentContext > & | , | ||
const TContentPtr & | _pImpl, | ||
bool | _bForm | ||
) |
Definition at line 406 of file documentdefinition.cxx.
References registerProperties().
|
overridevirtual |
Definition at line 1872 of file documentdefinition.cxx.
References Exception, impl_close_throw(), and cppu::BaseMutex::m_aMutex.
Referenced by queryClosing().
void dbaccess::ODocumentDefinition::closeObject | ( | ) |
Definition at line 443 of file documentdefinition.cxx.
References Exception, cppu::BaseMutex::m_aMutex, m_pClientHelper, and m_xEmbeddedObject.
Referenced by disposing(), and execute().
|
overridevirtual |
Definition at line 1896 of file documentdefinition.cxx.
References getHierarchicalName().
|
overrideprivatevirtual |
Implements comphelper::OPropertyArrayUsageHelper< ODocumentDefinition >.
Definition at line 531 of file documentdefinition.cxx.
References comphelper::OPropertyContainerHelper::describeProperties(), cppu::UnoType< typename T >::get(), PROPERTY_ID_PERSISTENT_PATH, and PROPERTY_PERSISTENT_PATH().
|
overrideprivatevirtual |
Implements dbaccess::OContentHelper.
Definition at line 1442 of file documentdefinition.cxx.
References getContainerStorage(), and dbaccess::OContentHelper::m_pImpl.
|
overrideprivatevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 460 of file documentdefinition.cxx.
References closeObject(), dbaccess::OContentHelper::disposing(), cppu::BaseMutex::m_aMutex, m_bRemoveListener, dbaccess::OContentHelper::m_pImpl, and m_xListener.
|
overridevirtual |
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 954 of file documentdefinition.cxx.
References aCommand, Any, ucbhelper::cancelCommandExecution(), closeObject(), dispose(), Environment, dbaccess::OContentHelper::execute(), getComponent(), getContainerStorage(), impl_close_throw(), impl_getComponent_throw(), impl_onActivateEmbeddedObject_nothrow(), impl_showOrHideComponent_throw(), impl_store_throw(), cppu::BaseMutex::m_aMutex, m_bInExecute, m_bOpenInDesign, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, onCommandGetDocumentProperties(), onCommandInsert(), onCommandOpenSomething(), and onCommandPreview().
|
private |
fills the load arguments
Definition at line 1466 of file documentdefinition.cxx.
References comphelper::NamedValueCollection::getNamedValues(), comphelper::NamedValueCollection::getPropertyValues(), dbaccess::OContentHelper::m_aContext, m_bRemoveListener, dbaccess::OContentHelper::m_pImpl, m_pInterceptor, objectSupportsEmbeddedScripts(), comphelper::NamedValueCollection::put(), and separateOpenCommandArguments().
Referenced by loadEmbeddedObject().
|
static |
Definition at line 2002 of file documentdefinition.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and comphelper::InitAnyPropertySequence().
Referenced by dbaccess::OInterceptor::dispatch(), and onCommandOpenSomething().
void dbaccess::ODocumentDefinition::firePropertyChange | ( | sal_Int32 | i_nHandle, |
const css::uno::Any & | i_rNewValue, | ||
const css::uno::Any & | i_rOldValue, | ||
bool | i_bVetoable, | ||
const NotifierAccess & | |||
) |
Definition at line 2069 of file documentdefinition.cxx.
Referenced by dbaccess::NameChangeNotifier::impl_fireEvent_throw().
|
overridevirtual |
Definition at line 1769 of file documentdefinition.cxx.
References impl_getComponent_throw(), and cppu::BaseMutex::m_aMutex.
Referenced by dbaccess::OInterceptor::dispatch(), execute(), impl_onActivateEmbeddedObject_nothrow(), isModified(), loadEmbeddedObject(), onCommandGetDocumentProperties(), onCommandOpenSomething(), onCommandPreview(), and updateDocumentTitle().
|
inline |
Definition at line 157 of file documentdefinition.hxx.
References m_xLastKnownConnection.
Referenced by dbaccess::OInterceptor::dispatch().
Reference< XStorage > dbaccess::ODocumentDefinition::getContainerStorage | ( | ) | const |
returns the forms/reports container storage, depending on m_bForm.
Our own storage inside this container storage is the one with the name as indicated by m_pImpl->m_aProps.sPersistentName.
Definition at line 1926 of file documentdefinition.cxx.
References dbaccess::ODatabaseModelImpl::Form, m_bForm, dbaccess::OContentHelper::m_pImpl, and dbaccess::ODatabaseModelImpl::Report.
Referenced by determineContentType(), execute(), loadEmbeddedObject(), onCommandInsert(), and saveAs().
|
inline |
Definition at line 182 of file documentdefinition.hxx.
References dbaccess::OContentHelper::m_pImpl.
|
static |
|
static |
Referenced by dbaccess::ODocumentContainer::createInstanceWithArguments(), and loadEmbeddedObject().
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 503 of file documentdefinition.cxx.
References dbaccess::ODatabaseModelImpl::Form, comphelper::OPropertyContainer::getFastPropertyValue(), dbaccess::ODatabaseModelImpl::getObjectContainerStorageName(), m_bForm, dbaccess::OContentHelper::m_pImpl, PROPERTY_ID_PERSISTENT_PATH, and dbaccess::ODatabaseModelImpl::Report.
|
overridevirtual |
Definition at line 1890 of file documentdefinition.cxx.
References dbaccess::OContentHelper::impl_getHierarchicalName(), and cppu::BaseMutex::m_aMutex.
Referenced by composeHierarchicalName().
|
overridevirtual |
Reimplemented from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >.
Definition at line 474 of file documentdefinition.cxx.
|
override |
Definition at line 526 of file documentdefinition.cxx.
References comphelper::OPropertyArrayUsageHelper< ODocumentDefinition >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overrideprivatevirtual |
Implements comphelper::OPropertyStateContainer.
Definition at line 1719 of file documentdefinition.cxx.
|
overridevirtual |
Definition at line 520 of file documentdefinition.cxx.
References getInfoHelper().
|
overridevirtual |
Reimplemented from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >.
Definition at line 479 of file documentdefinition.cxx.
References cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >::getTypes().
|
private |
closes our document, if it's open
Definition at line 1836 of file documentdefinition.cxx.
References m_xEmbeddedObject, and prepareClose().
|
private |
returns our component, creates it if necessary
Definition at line 1743 of file documentdefinition.cxx.
References m_xEmbeddedObject, and nState.
Referenced by execute(), getComponent(), impl_showOrHideComponent_throw(), loadEmbeddedObject(), onCommandOpenSomething(), and prepareClose().
|
staticprivate |
initializes a newly created view/controller of a form which is displaying our embedded object
Has only to be called if the respective embedded object has been loaded for design (and not for data entry)
_rxController | the controller which belongs to the XModel of our (active) embedded object |
Definition at line 704 of file documentdefinition.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, and Exception.
Referenced by impl_onActivateEmbeddedObject_nothrow().
|
private |
does necessary initializations after our embedded object has been switched to ACTIVE
Definition at line 580 of file documentdefinition.cxx.
References DBG_UNHANDLED_EXCEPTION, getComponent(), impl_initFormEditView(), impl_removeFrameFromDesktop_throw(), dbaccess::OContentHelper::m_aContext, m_bForm, m_bOpenInDesign, m_xEmbeddedObject, m_xListener, xController, xFrame, and xModel.
Referenced by execute(), impl_showOrHideComponent_throw(), and onCommandOpenSomething().
|
private |
opens the UI for this sub document
Definition at line 1788 of file documentdefinition.cxx.
References Any, Exception, dbaccess::OContentHelper::impl_getHierarchicalName(), cppu::BaseMutex::m_aMutex, m_bForm, m_bOpenInDesign, dbaccess::OContentHelper::m_pImpl, onCommandOpenSomething(), dbaccess::REPORT, and sName.
Referenced by open(), and openDesign().
|
staticprivate |
removes the given frame from the desktop's frame collection
css::uno::RuntimeException |
Definition at line 573 of file documentdefinition.cxx.
Referenced by impl_onActivateEmbeddedObject_nothrow().
|
private |
shows or hides our component
The embedded object must exist, and be in state LOADED, at least.
Definition at line 738 of file documentdefinition.cxx.
References impl_getComponent_throw(), impl_onActivateEmbeddedObject_nothrow(), and m_xEmbeddedObject.
Referenced by execute().
|
private |
stores our document, if it's already loaded
Definition at line 1826 of file documentdefinition.cxx.
References m_xEmbeddedObject, and dbaccess::OContentHelper::notifyDataSourceModified().
void dbaccess::ODocumentDefinition::initialLoad | ( | const css::uno::Sequence< sal_Int8 > & | i_rClassID, |
const css::uno::Sequence< css::beans::PropertyValue > & | i_rCreationArgs, | ||
const css::uno::Reference< css::sdbc::XConnection > & | i_rConnection | ||
) |
Definition at line 418 of file documentdefinition.cxx.
References loadEmbeddedObject().
bool dbaccess::ODocumentDefinition::isModified | ( | ) |
Definition at line 1933 of file documentdefinition.cxx.
References getComponent(), cppu::BaseMutex::m_aMutex, m_xEmbeddedObject, and xModel.
Referenced by prepareClose().
|
inline |
Definition at line 148 of file documentdefinition.hxx.
References m_bForm, and dbaccess::OContentHelper::m_pImpl.
Referenced by dbaccess::OInterceptor::addStatusListener(), and dbaccess::OInterceptor::dispatch().
|
private |
loads the EmbeddedObject if not already loaded
_aClassID | If set, it will be used to create the embedded object. |
Definition at line 1538 of file documentdefinition.cxx.
References aClassID, DBA_RES, DBG_UNHANDLED_EXCEPTION, DEFAULT_HEIGHT, DEFAULT_WIDTH, Exception, fillLoadArgs(), getComponent(), getContainerStorage(), dbaccess::OContentHelper::getContentType(), dbaccess::getDataSource(), GetDocumentServiceFromMediaType(), comphelper::NamedValueCollection::getPropertyValues(), comphelper::MimeConfigurationHelper::GetSequenceClassID(), impl_getComponent_throw(), dbaccess::OContentHelper::m_aContext, m_bForm, m_pClientHelper, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, m_xLastKnownConnection, dbaccess::OContentHelper::m_xParentContainer, comphelper::NamedValueCollection::merge(), sDocumentService, separateOpenCommandArguments(), SO3_RPT_CLASSID_90, SO3_SW_CLASSID, and xModel.
Referenced by initialLoad(), loadEmbeddedObjectForPreview(), and onCommandOpenSomething().
|
inlineprivate |
loads the embedded object for preview.
Macros will be suppressed, and the document will be read-only.
Definition at line 295 of file documentdefinition.hxx.
References loadEmbeddedObject().
Referenced by onCommandGetDocumentProperties(), and onCommandPreview().
|
overridevirtual |
Definition at line 2061 of file documentdefinition.cxx.
|
private |
determines whether the document we represent supports embedded scripts and macros
Definition at line 1430 of file documentdefinition.cxx.
References dbaccess::OContentHelper::m_pImpl, and dbaccess::ODatabaseModelImpl::SubDocument.
Referenced by fillLoadArgs().
|
private |
Definition at line 1724 of file documentdefinition.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getComponent(), loadEmbeddedObjectForPreview(), and m_xEmbeddedObject.
Referenced by execute().
|
private |
css::uno::Exception |
Definition at line 1151 of file documentdefinition.cxx.
References Any, ucbhelper::cancelCommandExecution(), Environment, Exception, getContainerStorage(), dbaccess::OContentHelper::m_aContext, cppu::BaseMutex::m_aMutex, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, comphelper::makePropertyValue(), and PROPERTY_URL().
Referenced by execute().
|
private |
Definition at line 770 of file documentdefinition.cxx.
References aArguments, Any, ucbhelper::cancelCommandExecution(), fillReportData(), getComponent(), comphelper::NamedValueCollection::getOrDefault(), comphelper::NamedValueCollection::getPropertyValues(), impl_getComponent_throw(), impl_onActivateEmbeddedObject_nothrow(), loadEmbeddedObject(), dbaccess::OContentHelper::m_aContext, m_bForm, m_bInExecute, m_bOpenInDesign, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, m_xLastKnownConnection, dbaccess::ODatabaseModelImpl::NONE, PROPERTY_ACTIVE_CONNECTION(), comphelper::NamedValueCollection::put(), comphelper::NamedValueCollection::remove(), updateDocumentTitle(), and xModel.
Referenced by execute(), and impl_openUI_nolck_throw().
|
private |
Definition at line 1695 of file documentdefinition.cxx.
References Exception, getComponent(), loadEmbeddedObjectForPreview(), and m_xEmbeddedObject.
Referenced by execute().
|
overridevirtual |
Definition at line 1847 of file documentdefinition.cxx.
References impl_openUI_nolck_throw().
|
overridevirtual |
Definition at line 1852 of file documentdefinition.cxx.
References impl_openUI_nolck_throw().
bool dbaccess::ODocumentDefinition::prepareClose | ( | ) |
prepares closing the document component
The method suspends the controller associated with the document, and saves the document if necessary.
Definition at line 1945 of file documentdefinition.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_getComponent_throw(), isModified(), m_xEmbeddedObject, save(), xController, xFrame, and xModel.
Referenced by impl_close_throw().
|
overridevirtual |
Definition at line 2048 of file documentdefinition.cxx.
References close().
|
private |
Definition at line 489 of file documentdefinition.cxx.
References m_pImpl, PROPERTY_AS_TEMPLATE(), PROPERTY_ID_AS_TEMPLATE, PROPERTY_ID_IS_FORM, PROPERTY_ID_NAME, PROPERTY_ID_PERSISTENT_NAME, PROPERTY_IS_FORM(), PROPERTY_NAME(), and PROPERTY_PERSISTENT_NAME().
Referenced by ODocumentDefinition().
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 1901 of file documentdefinition.cxx.
References dbaccess::OContentHelper::m_aErrorHelper, cppu::BaseMutex::m_aMutex, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, connectivity::SQLError::raiseException(), and updateDocumentTitle().
Referenced by saveAs().
bool dbaccess::ODocumentDefinition::save | ( | bool | _bApprove, |
const css::uno::Reference< css::awt::XTopWindow > & | rDialogParent | ||
) |
Definition at line 1207 of file documentdefinition.cxx.
References Any, DBA_RES, Exception, dbaccess::OContentHelper::m_aContext, cppu::BaseMutex::m_aMutex, m_bForm, m_bOpenInDesign, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, dbaccess::OContentHelper::m_xParentContainer, dbaccess::OContentHelper::notifyDataSourceModified(), TOOLS_WARN_EXCEPTION, and updateDocumentTitle().
Referenced by dbaccess::OInterceptor::dispatch(), prepareClose(), and saveAs().
void dbaccess::ODocumentDefinition::saveAs | ( | ) |
Definition at line 1294 of file documentdefinition.cxx.
References aArguments, Any, DBG_UNHANDLED_EXCEPTION, Exception, getContainerStorage(), comphelper::InitAnyPropertySequence(), dbaccess::OContentHelper::m_aContext, cppu::BaseMutex::m_aMutex, m_bOpenInDesign, dbaccess::OContentHelper::m_pImpl, m_xEmbeddedObject, dbaccess::OContentHelper::m_xParentContainer, dbaccess::OContentHelper::notifyDataSourceModified(), PROPERTY_AS_TEMPLATE(), PROPERTY_NAME(), PROPERTY_PERSISTENT_NAME(), rename(), save(), SERVICE_SDB_DOCUMENTDEFINITION, TOOLS_WARN_EXCEPTION, and updateDocumentTitle().
Referenced by dbaccess::OInterceptor::dispatch().
|
staticprivate |
splits the given arguments to an "open*" command into arguments for loading the document, and arguments to be put into the EmbeddedObjectDescriptor
Any values already present in o_rDocumentLoadArgs
and o_rEmbeddedObjectDescriptor
will be overwritten by values from i_rOpenCommandArguments
, if applicable, otherwise they will be preserved.
i_rOpenCommandArguments | the arguments passed to the "open*" command at the content |
o_rDocumentLoadArgs | the arguments to be passed when actually loading the embedded document. |
o_rEmbeddedObjectDescriptor | the EmbeddedObjectDescriptor to be passed when initializing the embedded object |
Definition at line 1447 of file documentdefinition.cxx.
References comphelper::NamedValueCollection::get(), comphelper::NamedValueCollection::has(), comphelper::NamedValueCollection::merge(), comphelper::NamedValueCollection::put(), comphelper::NamedValueCollection::remove(), and u.
Referenced by fillLoadArgs(), and loadEmbeddedObject().
|
overridevirtual |
Definition at line 1857 of file documentdefinition.cxx.
References Exception, impl_store_throw(), and cppu::BaseMutex::m_aMutex.
|
private |
searches for read-only flag in the args of the model and sets it to the given value, if the value was not found, it will be appended.
_bReadOnly | If <TRUE> the document will be switched to readonly mode |
Definition at line 2023 of file documentdefinition.cxx.
References DBA_RES, getComponent(), m_bForm, dbaccess::OContentHelper::m_pImpl, and sName.
Referenced by onCommandOpenSomething(), rename(), save(), and saveAs().
|
private |
Definition at line 70 of file documentdefinition.hxx.
Referenced by getContainerStorage(), getFastPropertyValue(), impl_onActivateEmbeddedObject_nothrow(), impl_openUI_nolck_throw(), isNewReport(), loadEmbeddedObject(), onCommandOpenSomething(), save(), and updateDocumentTitle().
|
private |
Definition at line 72 of file documentdefinition.hxx.
Referenced by execute(), and onCommandOpenSomething().
|
private |
Definition at line 71 of file documentdefinition.hxx.
Referenced by execute(), impl_onActivateEmbeddedObject_nothrow(), impl_openUI_nolck_throw(), onCommandOpenSomething(), save(), and saveAs().
|
private |
Definition at line 73 of file documentdefinition.hxx.
Referenced by disposing(), and fillLoadArgs().
|
private |
Definition at line 74 of file documentdefinition.hxx.
Referenced by closeObject(), and loadEmbeddedObject().
|
private |
Definition at line 69 of file documentdefinition.hxx.
Referenced by fillLoadArgs(), and ~ODocumentDefinition().
|
private |
Definition at line 65 of file documentdefinition.hxx.
Referenced by closeObject(), execute(), impl_close_throw(), impl_getComponent_throw(), impl_onActivateEmbeddedObject_nothrow(), impl_showOrHideComponent_throw(), impl_store_throw(), isModified(), loadEmbeddedObject(), onCommandGetDocumentProperties(), onCommandInsert(), onCommandOpenSomething(), onCommandPreview(), prepareClose(), rename(), save(), and saveAs().
|
private |
Definition at line 67 of file documentdefinition.hxx.
Referenced by getConnection(), loadEmbeddedObject(), and onCommandOpenSomething().
|
private |
Definition at line 66 of file documentdefinition.hxx.
Referenced by disposing(), and impl_onActivateEmbeddedObject_nothrow().