LibreOffice Module dbaccess (master) 1
|
#include <AppController.hxx>
Public Types | |
typedef std::vector< css::uno::Reference< css::container::XContainer > > | TContainerVector |
Public Member Functions | |
OApplicationController (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | attachFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool bSuspend) override |
virtual sal_Bool SAL_CALL | attachModel (const css::uno::Reference< css::frame::XModel > &xModel) override |
virtual css::uno::Reference< css::frame::XModel > SAL_CALL | getModel () override |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual css::uno::Reference< css::sdbc::XDataSource > SAL_CALL | getDataSource () override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getApplicationMainWindow () override |
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL | getActiveConnection () override |
virtual css::uno::Sequence< css::uno::Reference< css::lang::XComponent > > SAL_CALL | getSubComponents () override |
virtual sal_Bool SAL_CALL | isConnected () override |
virtual void SAL_CALL | connect () override |
virtual css::beans::Pair< ::sal_Int32, OUString > SAL_CALL | identifySubComponent (const css::uno::Reference< css::lang::XComponent > &SubComponent) override |
virtual sal_Bool SAL_CALL | closeSubComponents () override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | loadComponent (::sal_Int32 ObjectType, const OUString &ObjectName, sal_Bool ForEditing) override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | loadComponentWithArguments (::sal_Int32 ObjectType, const OUString &ObjectName, sal_Bool ForEditing, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | createComponent (::sal_Int32 ObjectType, css::uno::Reference< css::lang::XComponent > &o_DocumentDefinition) override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | createComponentWithArguments (::sal_Int32 ObjectType, const css::uno::Sequence< css::beans::PropertyValue > &Arguments, css::uno::Reference< css::lang::XComponent > &o_DocumentDefinition) override |
virtual void SAL_CALL | registerContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &Interceptor) override |
virtual void SAL_CALL | releaseContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &Interceptor) override |
virtual sal_Bool SAL_CALL | select (const css::uno::Any &xSelection) override |
virtual css::uno::Any SAL_CALL | getSelection () override |
virtual void SAL_CALL | addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
virtual void SAL_CALL | removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
const SharedConnection & | ensureConnection (::dbtools::SQLExceptionInfo *_pErrorInfo=nullptr) |
retrieves the current connection, creates it if necessary More... | |
const SharedConnection & | getConnection () const |
retrieves the current connection More... | |
bool | isConnected () const |
determines whether we're currently connected to the database More... | |
void | refreshTables () |
refreshes the tables More... | |
bool | onEntryDoubleClick (const weld::TreeView &rTree) |
called when an entry in a tree list box has been double-clicked More... | |
bool | onContainerSelect (ElementType _eType) |
called when a container (category) in the application view has been selected More... | |
void | onSelectionChanged () |
called when an entry in a tree view has been selected More... | |
void | onCopyEntry () |
called when a "Copy" command is executed in a tree view More... | |
void | onPasteEntry () |
called when a "Paste" command is executed in a tree view More... | |
void | onDeleteEntry () |
called when a "Delete" command is executed in a tree view More... | |
void | previewChanged (sal_Int32 _nMode) |
called when the preview mode was changed More... | |
void | containerFound (const css::uno::Reference< css::container::XContainer > &_xContainer) |
called when an object container of any kind was found during enumerating tree view elements More... | |
virtual bool | isDataSourceReadOnly () const override |
checks if the selected data source is read only More... | |
virtual bool | requestQuickHelp (const void *pUserData, OUString &rText) const override |
requests a quick help text to display More... | |
virtual bool | requestDrag (const weld::TreeIter &rEntry) override |
handler for StartDrag requests More... | |
virtual sal_Int8 | queryDrop (const AcceptDropEvent &_rEvt, const DataFlavorExVector &_rFlavors) override |
check whether or not a drop request should be accepted More... | |
virtual sal_Int8 | executeDrop (const ExecuteDropEvent &_rEvt) override |
execute a drop request More... | |
virtual OUString | getContextMenuResourceName () const override |
returns the context menu resource name for the control More... | |
virtual IController & | getCommandController () override |
returns the controller which is responsible for providing states of certain features, and executing them. More... | |
virtual ::comphelper::OInterfaceContainerHelper2 * | getContextMenuInterceptors () override |
returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception More... | |
virtual css::uno::Any | getCurrentSelection (weld::TreeView &rControl) const override |
returns the current selection in the given control More... | |
virtual vcl::Window * | getMenuParent () const override |
virtual void | adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const override |
adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent More... | |
void | OnInvalidateClipboard () |
DECL_LINK (OnClipboardChanged, TransferableDataHelper *, void) | |
DECL_LINK (OnAsyncDrop, void *, void) | |
DECL_LINK (OnCreateWithPilot, void *, void) | |
DECL_LINK (OnSelectContainer, void *, void) | |
void | OnFirstControllerConnected () |
Public Member Functions inherited from dbaui::OGenericUnoController | |
const css::uno::Reference< css::uno::XComponentContext > & | getORB () const |
ODataView * | getView () const |
weld::Window * | getFrameWeld () const |
void | setView (const VclPtr< ODataView > &i_rView) |
void | clearView () |
void | showError (const ::dbtools::SQLExceptionInfo &_rInfo) |
void | InvalidateFeature (sal_uInt16 nId, const css::uno::Reference< css::frame::XStatusListener > &xListener=nullptr, bool _bForceBroadcast=false) |
void | InvalidateAll () |
InvalidateAll invalidates all features currently known. More... | |
virtual bool | Construct (vcl::Window *pParent) |
virtual void | executeUnChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
executes the given command without checking if it is allowed More... | |
virtual void | executeChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
executes the given command only when it is allowed More... | |
virtual void | executeUnChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
executes the given command without checking if it is allowed More... | |
virtual void | executeChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
executes the given command only when it is allowed More... | |
virtual bool | isCommandEnabled (sal_uInt16 _nCommandId) const override |
checks if the given Command is enabled More... | |
virtual bool | isCommandEnabled (const OUString &_rCompleteCommandURL) const override |
checks if the given Command is enabled More... | |
virtual bool | isDataSourceReadOnly () const override |
checks if the selected data source is read only More... | |
virtual css::uno::Reference< css::frame::XController > | getXController () override |
provides access to the model of the controller More... | |
virtual bool | interceptUserInput (const NotifyEvent &_rEvent) override |
allows interception of user input, aka mouse clicks and key events More... | |
bool | isCommandChecked (sal_uInt16 _nCommandId) const |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getComponentWindow () override |
virtual OUString SAL_CALL | getViewControllerName () override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getCreationArguments () override |
virtual css::uno::Reference< css::ui::XSidebarProvider > SAL_CALL | getSidebar () override |
virtual void SAL_CALL | attachFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override |
virtual sal_Bool SAL_CALL | attachModel (const css::uno::Reference< css::frame::XModel > &xModel) override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool bSuspend) override=0 |
virtual css::uno::Any SAL_CALL | getViewData () override |
virtual void SAL_CALL | restoreViewData (const css::uno::Any &Data) override |
virtual css::uno::Reference< css::frame::XModel > SAL_CALL | getModel () override |
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL | getFrame () override |
virtual void SAL_CALL | dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual void SAL_CALL | addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &aListener, const css::util::URL &aURL) override |
virtual void SAL_CALL | removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &aListener, const css::util::URL &aURL) override |
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL | getSlaveDispatchProvider () override |
virtual void SAL_CALL | setSlaveDispatchProvider (const css::uno::Reference< css::frame::XDispatchProvider > &_xNewProvider) override |
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL | getMasterDispatchProvider () override |
virtual void SAL_CALL | setMasterDispatchProvider (const css::uno::Reference< css::frame::XDispatchProvider > &_xNewProvider) override |
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL | queryDispatch (const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override |
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL | queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &aDescripts) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | frameAction (const css::frame::FrameActionEvent &aEvent) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override=0 |
virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL | getSupportedCommandGroups () override |
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL | getConfigurableDispatchInformation (::sal_Int16) 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 void SAL_CALL | addKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override |
virtual void SAL_CALL | removeKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override |
virtual void SAL_CALL | addMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override |
virtual void SAL_CALL | removeMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override |
virtual void | executeUnChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0 |
executes the given command without checking if it is allowed More... | |
virtual void | executeChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0 |
executes the given command only when it is allowed More... | |
virtual void | executeUnChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0 |
executes the given command without checking if it is allowed More... | |
virtual void | executeChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0 |
executes the given command only when it is allowed More... | |
virtual bool | isCommandEnabled (sal_uInt16 _nCommandId) const =0 |
checks if the given Command is enabled More... | |
virtual bool | isCommandEnabled (const OUString &_rCompleteCommandURL) const =0 |
checks if the given Command is enabled More... | |
virtual bool | isDataSourceReadOnly () const =0 |
checks if the selected data source is read only More... | |
virtual css::uno::Reference< css::frame::XController > | getXController ()=0 |
provides access to the model of the controller More... | |
virtual bool | interceptUserInput (const NotifyEvent &_rEvent)=0 |
allows interception of user input, aka mouse clicks and key events More... | |
virtual void SAL_CALL | acquire () noexcept=0 |
virtual void SAL_CALL | release () noexcept=0 |
Public Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
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 |
virtual bool | requestQuickHelp (const void *pUserData, OUString &rText) const =0 |
requests a quick help text to display More... | |
virtual bool | requestDrag (const weld::TreeIter &rEntry)=0 |
handler for StartDrag requests More... | |
virtual sal_Int8 | queryDrop (const AcceptDropEvent &_rEvt, const DataFlavorExVector &_rFlavors)=0 |
check whether or not a drop request should be accepted More... | |
virtual sal_Int8 | executeDrop (const ExecuteDropEvent &_rEvt)=0 |
execute a drop request More... | |
virtual OUString | getContextMenuResourceName () const =0 |
returns the context menu resource name for the control More... | |
virtual IController & | getCommandController ()=0 |
returns the controller which is responsible for providing states of certain features, and executing them. More... | |
virtual ::comphelper::OInterfaceContainerHelper2 * | getContextMenuInterceptors ()=0 |
returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception More... | |
virtual css::uno::Any | getCurrentSelection (weld::TreeView &rControl) const =0 |
returns the current selection in the given control More... | |
virtual vcl::Window * | getMenuParent () const =0 |
virtual void | adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const =0 |
adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent More... | |
Protected Member Functions | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual void | onLoadedMenu (const css::uno::Reference< css::frame::XLayoutManager > &_xLayoutManager) override |
called when our menu has been loaded into our frame, can be used to load sub toolbars More... | |
virtual css::uno::Reference< css::frame::XModel > | getPrivateModel () const override |
virtual | ~OApplicationController () override |
void | disconnect () |
disconnects from our XConnection, and cleans up this connection More... | |
virtual bool | Construct (vcl::Window *pParent) override |
virtual void | describeSupportedFeatures () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | disposing () override |
css::uno::Reference< css::sdbc::XConnection > | connect (const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource) |
css::uno::Reference< css::sdbc::XConnection > | connect (const OUString &_rsDataSourceName, const OUString &_rContextInformation, ::dbtools::SQLExceptionInfo *_pErrorInfo) |
Protected Member Functions inherited from dbaui::OGenericUnoController | |
::cppu::OBroadcastHelper & | getBroadcastHelper () |
OGenericUnoController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
OGenericUnoController ()=delete | |
const ::comphelper::NamedValueCollection & | getInitParams () const |
void | closeTask () |
virtual void | loadMenu (const css::uno::Reference< css::frame::XFrame > &_xFrame) |
virtual void | onLoadedMenu (const css::uno::Reference< css::frame::XLayoutManager > &_xLayoutManager) |
called when our menu has been loaded into our frame, can be used to load sub toolbars More... | |
virtual void | describeSupportedFeatures () |
virtual FeatureState | GetState (sal_uInt16 nId) const |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) |
void | implDescribeSupportedFeature (const OUString &_rCommandURL, sal_uInt16 _nFeatureId, sal_Int16 _nCommandGroup=css::frame::CommandGroup::INTERNAL) |
describes a feature supported by the controller More... | |
bool | isFeatureSupported (sal_Int32 _nId) |
returns <TRUE> if the feature is supported, otherwise <FALSE> More... | |
css::util::URL | getURLForId (sal_Int32 _nId) const |
bool | isUserDefinedFeature (const OUString &_rFeatureURL) const |
determines whether the given feature URL denotes a user-defined feature More... | |
css::uno::Reference< css::sdbc::XConnection > | connect (const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource) |
css::uno::Reference< css::sdbc::XConnection > | connect (const OUString &_rsDataSourceName, const OUString &_rContextInformation, ::dbtools::SQLExceptionInfo *_pErrorInfo) |
void | startConnectionListening (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection) |
void | stopConnectionListening (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection) |
css::uno::Reference< css::awt::XWindow > | getTopMostContainerWindow () const |
return the container window of the top most frame More... | |
virtual void | impl_initialize () |
virtual OUString | getPrivateTitle () const |
css::uno::Reference< css::frame::XTitle > | impl_getTitleHelper_throw (bool bCreateIfNecessary=true) |
virtual css::uno::Reference< css::frame::XModel > | getPrivateModel () const |
virtual void | startFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame) |
virtual void | stopFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame) |
void | releaseNumberForComponent () |
virtual | ~OGenericUnoController () override |
::osl::Mutex & | getMutex () const |
Protected Member Functions inherited from comphelper::SharedMutexBase | |
SharedMutexBase () | |
~SharedMutexBase () | |
::osl::Mutex & | getMutex () const |
SharedMutex & | getSharedMutex () const |
Protected Member Functions inherited from dbaui::IController | |
~IController () | |
Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
~ImplHelper5 () SAL_NOEXCEPT | |
Protected Member Functions inherited from dbaui::IControlActionListener | |
~IControlActionListener () | |
Protected Member Functions inherited from dbaui::IContextMenuProvider | |
~IContextMenuProvider () | |
Private Types | |
typedef std::map< ElementType, std::vector< OUString > > | SelectionByElementType |
Private Member Functions | |
OApplicationView * | getContainer () const |
OUString | getDatabaseName () const |
returns the database name More... | |
OUString | getStrippedDatabaseName () const |
returns the stripped database name. More... | |
css::uno::Reference< css::lang::XComponent > | openElementWithArguments (const OUString &_sName, ElementType _eType, ElementOpenMode _eOpenMode, sal_uInt16 _nInstigatorCommand, const ::comphelper::NamedValueCollection &_rAdditionalArguments) |
opens a new sub frame with a table/query/form/report/view, passing additional arguments More... | |
css::uno::Reference< css::lang::XComponent > | newElement (ElementType _eType, const ::comphelper::NamedValueCollection &i_rAdditionalArguments, css::uno::Reference< css::lang::XComponent > &o_rDocumentDefinition) |
opens a new frame for creation or auto pilot More... | |
void | newElementWithPilot (ElementType _eType) |
creates a new database object, using an auto pilot More... | |
void | convertToView (const OUString &_sName) |
converts the query to a view More... | |
bool | isConnectionReadOnly () const |
checks if the connection for the selected data source is read only. More... | |
void | getSelectionElementNames (std::vector< OUString > &_rNames) const |
fills the list with the selected entries. More... | |
void | deleteEntries () |
deletes the entries selected. More... | |
void | renameEntry () |
renames the selected entry in the detail page More... | |
void | deleteObjects (ElementType _eType, const std::vector< OUString > &_rList, bool _bConfirm) |
deletes queries, forms, or reports More... | |
void | deleteTables (const std::vector< OUString > &_rList) |
deletes tables. More... | |
rtl::Reference< TransferableHelper > | copyObject () |
copies the current object into clipboard More... | |
bool | copySQLObject (ODataClipboard &rExchange) |
fills rExchange with current object if it's a Table or Query More... | |
bool | copyDocObject (svx::OComponentTransferable &rExchange) |
fills rExchange with current object if it's a Form or Report More... | |
css::uno::Reference< css::container::XNameAccess > | getElements (ElementType _eType) |
returns the nameaccess More... | |
std::unique_ptr< OLinkedDocumentsAccess > | getDocumentsAccess (ElementType _eType) |
returns the document access for the specific type More... | |
css::uno::Reference< css::container::XNameContainer > | getQueryDefinitions () const |
returns the query definitions of the active data source. More... | |
void | pasteFormat (SotClipboardFormatId _nFormatId) |
pastes a special format from the system clipboard to the currently selected object types More... | |
bool | paste (ElementType _eType, const svx::ODataAccessDescriptor &_rPasteData, const OUString &_sParentFolder=OUString(), bool _bMove=false) |
pastes a query, form or report into the data source More... | |
const TransferableDataHelper & | getViewClipboard () const |
returns the system clipboard. More... | |
bool | isTableFormat () const |
returns <TRUE> if the clipboard supports a table format, otherwise <FALSE>. More... | |
void | addContainerListener (const css::uno::Reference< css::container::XNameAccess > &_xCollection) |
adds a listener to the current name access. More... | |
void | openDialog (const OUString &_sServiceName) |
opens a uno dialog with the currently selected data source as initialize argument More... | |
void | askToReconnect () |
when the settings of the data source changed, it opens a dialog which ask to close all depending documents, then recreate the connection. More... | |
void | onDocumentOpened (const OUString &_rName, const sal_Int32 _nType, const ElementOpenMode _eMode, const css::uno::Reference< css::lang::XComponent > &_xDocument, const css::uno::Reference< css::lang::XComponent > &_xDefinition) |
remember a newly opened sub document for later access More... | |
bool | insertHierarchyElement (ElementType _eType, const OUString &_sParentFolder, bool _bCollection=true, const css::uno::Reference< css::ucb::XContent > &_xContent=css::uno::Reference< css::ucb::XContent >(), bool _bMove=false) |
Inserts a new object into the hierarchy given be the type. More... | |
bool | isRenameDeleteAllowed (ElementType _eType, bool _bDelete) const |
checks if delete command or rename command is allowed More... | |
void | doAction (sal_uInt16 _nId, ElementOpenMode _eOpenMode) |
all selected entries will be opened, or edited, or converted to a view More... | |
OUString | getCurrentlySelectedName (sal_Int32 &_rnCommandType) const |
returns the currently selected table or query name. More... | |
void | showPreviewFor (const ElementType _eType, const OUString &_sName) |
shows the preview for the given entry More... | |
void | onAttachedFrame () |
called we were attached to a frame More... | |
bool | impl_isAlterableView_nothrow (const OUString &_rTableOrViewName) const |
determines whether the given table name denotes a view which can be altered More... | |
void | impl_validateObjectTypeAndName_throw (const sal_Int32 _nObjectType, const ::std::optional< OUString > &i_rObjectName) |
verifies the object type denotes a valid DatabaseObject, and the object name denotes an existing object of this type. More... | |
Static Private Member Functions | |
static ElementType | getElementType (const css::uno::Reference< css::container::XContainer > &_xContainer) |
return the element type for given container More... | |
static void | getSupportedFormats (ElementType _eType, std::vector< SotClipboardFormatId > &_rFormatIds) |
fills the vector with all supported formats More... | |
Private Attributes | |
OTableCopyHelper::DropDescriptor | m_aAsyncDrop |
SharedConnection | m_xDataSourceConnection |
css::uno::Reference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
TransferableDataHelper | m_aSystemClipboard |
css::uno::Reference< css::beans::XPropertySet > | m_xDataSource |
css::uno::Reference< css::frame::XModel > | m_xModel |
::comphelper::OInterfaceContainerHelper2 | m_aContextMenuInterceptors |
TContainerVector | m_aCurrentContainers |
::rtl::Reference< SubComponentManager > | m_pSubComponentManager |
::dbaccess::ODsnTypeCollection | m_aTypeCollection |
OTableCopyHelper | m_aTableCopyHelper |
rtl::Reference< TransferableClipboardListener > | m_pClipboardNotifier |
ImplSVEvent * | m_nAsyncDrop |
OAsynchronousLink | m_aSelectContainerEvent |
PreviewMode | m_ePreviewMode |
ElementType | m_eCurrentType |
bool | m_bNeedToReconnect |
bool | m_bSuspended |
std::unique_ptr< SelectionNotifier > | m_pSelectionNotifier |
SelectionByElementType | m_aPendingSelection |
Additional Inherited Members | |
Static Public Member Functions inherited from dbaui::OGenericUnoController | |
static css::uno::Reference< css::frame::XLayoutManager > | getLayoutManager (const css::uno::Reference< css::frame::XFrame > &_xFrame) |
get the layout manager More... | |
Protected Types inherited from dbaui::OGenericUnoController | |
typedef std::map< sal_uInt16, FeatureState > | StateCache |
typedef std::vector< DispatchTarget > | Dispatch |
Static Protected Member Functions inherited from dbaui::OGenericUnoController | |
static bool | isUserDefinedFeature (const sal_uInt16 nFeatureId) |
determines whether the given feature ID denotes a user-defined feature More... | |
Protected Attributes inherited from dbaui::OGenericUnoController | |
::std::deque< FeatureListener > | m_aFeaturesToInvalidate |
std::mutex | m_aFeatureMutex |
StateCache | m_aStateCache |
Dispatch | m_arrStatusListener |
OAsynchronousLink | m_aAsyncInvalidateAll |
OAsynchronousLink | m_aAsyncCloseTask |
css::uno::Reference< css::util::XURLTransformer > | m_xUrlTransformer |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
ControllerFrame | m_aCurrentFrame |
css::uno::Reference< css::frame::XDispatchProvider > | m_xSlaveDispatcher |
css::uno::Reference< css::frame::XDispatchProvider > | m_xMasterDispatcher |
css::uno::Reference< css::sdb::XDatabaseContext > | m_xDatabaseContext |
css::uno::Reference< css::frame::XTitle > | m_xTitleHelper |
bool | m_bPreview |
bool | m_bReadOnly |
bool | m_bCurrentlyModified: 1 |
bool | m_bExternalTitle: 1 |
Definition at line 85 of file AppController.hxx.
|
private |
Definition at line 127 of file AppController.hxx.
typedef std::vector< css::uno::Reference< css::container::XContainer > > dbaui::OApplicationController::TContainerVector |
Definition at line 92 of file AppController.hxx.
|
overrideprotectedvirtual |
Definition at line 263 of file AppController.cxx.
References dbaui::OGenericUnoController::clearView(), dbaui::OGenericUnoController::dispose(), and m_refCount.
|
explicit |
Definition at line 247 of file AppController.cxx.
References getMutex(), LINK, and NONE.
|
private |
adds a listener to the current name access.
_xCollection | The collection where we want to listen on. |
Definition at line 1962 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and m_aCurrentContainers.
Referenced by onContainerSelect().
|
overridevirtual |
Definition at line 2675 of file AppController.cxx.
References m_pSelectionNotifier.
|
overridevirtual |
adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent
Implements dbaui::IContextMenuProvider.
Definition at line 2275 of file AppController.cxx.
References dbaui::OApplicationView::adjustMenuPosition(), and getContainer().
|
private |
when the settings of the data source changed, it opens a dialog which ask to close all depending documents, then recreate the connection.
The SolarMutex has to be locked before calling this.
Definition at line 503 of file AppControllerGen.cxx.
References dbaui::OApplicationDetailView::clearPages(), closeSubComponents(), Application::CreateMessageDialog(), DBA_RES, disconnect(), dbaui::E_NONE, eType, getContainer(), dbaui::OApplicationView::getDetailView(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getFrameWeld(), m_bNeedToReconnect, m_eCurrentType, m_pSubComponentManager, RET_YES, and dbaui::OApplicationView::selectContainer().
Referenced by Execute().
|
overridevirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 2538 of file AppController.cxx.
References dbaui::OGenericUnoController::attachFrame(), dbaui::OGenericUnoController::getFrame(), dbaui::OGenericUnoController::getMutex(), and onAttachedFrame().
Referenced by disposing().
|
overridevirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 2548 of file AppController.cxx.
References aLayoutInfo, DBG_UNHANDLED_EXCEPTION, Exception, getContainer(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::getView(), INFO_PREVIEW, m_ePreviewMode, m_xDataSource, m_xModel, PROPERTY_LAYOUTINFORMATION(), PROPERTY_URL(), PROPERTY_USER(), and dbaui::OApplicationView::switchPreview().
|
overridevirtual |
Definition at line 346 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), and m_pSubComponentManager.
Referenced by askToReconnect(), and suspend().
|
overridevirtual |
Definition at line 313 of file AppControllerGen.cxx.
References DBA_RES, dbtools::SQLExceptionInfo::doThrow(), ensureConnection(), getStrippedDatabaseName(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), and dbtools::SQLExceptionInfo::isValid().
Referenced by ensureConnection().
|
protected |
|
protected |
Definition at line 335 of file genericcontroller.cxx.
References Any.
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 388 of file AppController.cxx.
References dbaui::OGenericUnoController::clearView(), dbaui::ODataView::Construct(), dbaui::OGenericUnoController::Construct(), TransferableDataHelper::CreateFromSystemClipboard(), Exception, getContainer(), dbaui::OGenericUnoController::getORB(), dbaui::OGenericUnoController::getView(), LINK, m_aSystemClipboard, m_ePreviewMode, m_pClipboardNotifier, dbaui::OGenericUnoController::setView(), vcl::Window::Show(), and TransferableDataHelper::StartClipboardListening().
void dbaui::OApplicationController::containerFound | ( | const css::uno::Reference< css::container::XContainer > & | _xContainer | ) |
called when an object container of any kind was found during enumerating tree view elements
Definition at line 2638 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and m_aCurrentContainers.
Referenced by elementInserted(), and dbaui::OAppDetailPageHelper::fillNames().
|
private |
converts the query to a view
_sName | The name of the query. |
Definition at line 85 of file AppControllerGen.cxx.
References Any, dbaui::createDefaultName(), dbaui::createView(), DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::E_TABLE, dbaui::OApplicationView::elementAdded(), Exception, dbaui::OSaveAsDlg::getCatalog(), getConnection(), getContainer(), dbaui::OGenericUnoController::getFrameWeld(), dbaui::OSaveAsDlg::getName(), dbaui::OGenericUnoController::getORB(), dbaui::OSaveAsDlg::getSchema(), getToken(), NONE, RET_OK, weld::DialogController::run(), sCatalog, dbaui::OGenericUnoController::showError(), sName, sSchema, and dbaccess::TABLE.
Referenced by doAction().
|
private |
fills rExchange with current object if it's a Form or Report
Definition at line 534 of file AppControllerDnD.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_REPORT, eType, Exception, getContainer(), getDatabaseName(), getElements(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getMutex(), getSelectionElementNames(), dbaui::OGenericUnoController::showError(), and svx::OComponentTransferable::Update().
Referenced by copyObject(), and requestDrag().
|
private |
copies the current object into clipboard
Definition at line 574 of file AppControllerDnD.cxx.
References copyDocObject(), copySQLObject(), DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, Exception, getContainer(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getMutex(), and dbaui::OGenericUnoController::showError().
Referenced by Execute().
|
private |
fills rExchange with current object if it's a Table or Query
Definition at line 483 of file AppControllerDnD.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_QUERY, dbaui::E_TABLE, ensureConnection(), eType, Exception, getContainer(), getDatabaseName(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getMutex(), dbaui::getNumberFormatter(), dbaui::OGenericUnoController::getORB(), dbaui::OApplicationView::getQualifiedName(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbaccess::QUERY, dbaui::OGenericUnoController::showError(), sName, dbaccess::TABLE, and dbaui::ODataClipboard::Update().
Referenced by copyObject(), and requestDrag().
|
overridevirtual |
Definition at line 444 of file AppControllerGen.cxx.
References createComponentWithArguments().
|
overridevirtual |
Definition at line 449 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), impl_validateObjectTypeAndName_throw(), and newElement().
Referenced by createComponent().
dbaui::OApplicationController::DECL_LINK | ( | OnAsyncDrop | , |
void * | , | ||
void | |||
) |
dbaui::OApplicationController::DECL_LINK | ( | OnClipboardChanged | , |
TransferableDataHelper * | , | ||
void | |||
) |
dbaui::OApplicationController::DECL_LINK | ( | OnCreateWithPilot | , |
void * | , | ||
void | |||
) |
dbaui::OApplicationController::DECL_LINK | ( | OnSelectContainer | , |
void * | , | ||
void | |||
) |
|
private |
deletes the entries selected.
Definition at line 262 of file AppControllerDnD.cxx.
References deleteObjects(), deleteTables(), dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, getContainer(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getMutex(), and getSelectionElementNames().
Referenced by Execute().
|
private |
deletes queries, forms, or reports
_eType | the type of the objects |
_rList | The names of the elements to delete |
_bConfirm | determines whether the user must confirm the deletion |
Definition at line 165 of file AppControllerDnD.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_QUERY, svtools::QueryDeleteDlg_Impl::EnableAllButton(), Exception, getElements(), dbaui::OGenericUnoController::getFrameWeld(), m_pSubComponentManager, nCount, svtools::QUERYDELETE_ALL, svtools::QUERYDELETE_YES, and dbaui::OGenericUnoController::showError().
Referenced by deleteEntries().
|
private |
deletes tables.
_rList | The list of tables. |
Definition at line 79 of file AppControllerDnD.cxx.
References dbaui::askForUserAction(), Application::CreateMessageDialog(), DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::E_TABLE, ensureConnection(), Exception, dbaui::OGenericUnoController::getFrameWeld(), dbtools::SQLExceptionInfo::isValid(), m_pSubComponentManager, RET_ALL, RET_YES, dbaui::OGenericUnoController::showError(), and sMessage.
Referenced by deleteEntries().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 1350 of file AppController.cxx.
References dbaui::OGenericUnoController::describeSupportedFeatures(), ID_APP_NEW_QUERY_AUTO_PILOT, ID_BROWSER_SAVEASDOC, ID_BROWSER_SAVEDOC, ID_BROWSER_SORTDOWN, ID_BROWSER_SORTUP, ID_BROWSER_UNDO, ID_DIRECT_SQL, ID_DOCUMENT_CREATE_REPWIZ, ID_NEW_QUERY_DESIGN, ID_NEW_QUERY_SQL, ID_NEW_TABLE_DESIGN, ID_NEW_TABLE_DESIGN_AUTO_PILOT, ID_NEW_VIEW_DESIGN, and dbaui::OGenericUnoController::implDescribeSupportedFeature().
|
protected |
disconnects from our XConnection, and cleans up this connection
Definition at line 277 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, and Exception.
Referenced by askToReconnect(), and disposing().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 300 of file AppController.cxx.
References Application::AddToRecentDocumentList(), SvtHistoryOptions::AppendItem(), attachFrame(), aURL, dbaui::OGenericUnoController::clearView(), DBG_UNHANDLED_EXCEPTION, disconnect(), dbaui::OGenericUnoController::disposing(), Exception, getContainer(), comphelper::NamedValueCollection::getOrDefault(), dbaui::getStandardDatabaseFilter(), getStrippedDatabaseName(), dbaui::OGenericUnoController::getView(), m_aCurrentContainers, m_pClipboardNotifier, m_pSelectionNotifier, m_pSubComponentManager, m_xDataSource, m_xModel, INetURLObject::NONE, PROPERTY_INFO(), PROPERTY_ISPASSWORDREQUIRED(), PROPERTY_LAYOUTINFORMATION(), PROPERTY_SUPPRESSVERSIONCL(), PROPERTY_TABLEFILTER(), PROPERTY_TABLETYPEFILTER(), PROPERTY_URL(), PROPERTY_USER(), dbaui::OApplicationView::showPreview(), u, and xFrame.
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
|
private |
all selected entries will be opened, or edited, or converted to a view
_nId | The slot which should be executed. |
_eOpenMode | Defines the mode of opening. |
Definition at line 663 of file AppControllerGen.cxx.
References aArguments, SfxMailModel::AttachDocument(), convertToView(), DBG_UNHANDLED_EXCEPTION, dbaui::E_REPORT, eOpenMode, eType, Exception, getContainer(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getFrame(), getSelectionElementNames(), SfxMailModel::IsEmpty(), dbaui::Mail, dbaui::Normal, openElementWithArguments(), SfxMailModel::Send(), SfxMailModel::SEND_MAIL_OK, and xModel.
Referenced by Execute().
|
overridevirtual |
Definition at line 1463 of file AppController.cxx.
References containerFound(), dbaui::E_FORM, dbaui::E_REPORT, dbaui::E_TABLE, dbaui::OApplicationView::elementAdded(), ensureConnection(), eType, getContainer(), getElementType(), dbaui::OGenericUnoController::getMutex(), m_aCurrentContainers, and sName.
|
overridevirtual |
Definition at line 1499 of file AppController.cxx.
References dbaui::E_FORM, dbaui::E_REPORT, dbaui::E_TABLE, dbaui::OApplicationView::elementRemoved(), ensureConnection(), eType, getContainer(), getElementType(), dbaui::OGenericUnoController::getMutex(), m_aCurrentContainers, and sName.
|
overridevirtual |
Definition at line 1533 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), eType, Exception, getContainer(), getElementType(), dbaui::OGenericUnoController::getMutex(), m_aCurrentContainers, m_xMetaData, and sName.
const SharedConnection & dbaui::OApplicationController::ensureConnection | ( | ::dbtools::SQLExceptionInfo * | _pErrorInfo = nullptr | ) |
retrieves the current connection, creates it if necessary
If an error occurs, then this is either stored in the location pointed to by <arg>_pErrorInfo</arg>, or, if _pErrorInfo
is <NULL>, then the error is displayed to the user.
DO NOT CALL with getMutex() held!!
Definition at line 293 of file AppControllerDnD.cxx.
References comp, connect(), DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, getDatabaseName(), dbaui::OGenericUnoController::getFrameWeld(), dbaui::OGenericUnoController::getMutex(), getStrippedDatabaseName(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbtools::SQLExceptionInfo::isValid(), m_xDataSourceConnection, m_xMetaData, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), and dbaui::OGenericUnoController::showError().
Referenced by connect(), copySQLObject(), deleteTables(), elementInserted(), elementRemoved(), elementReplaced(), Execute(), executeDrop(), getDocumentsAccess(), newElement(), onContainerSelect(), openElementWithArguments(), paste(), pasteFormat(), refreshTables(), renameEntry(), and showPreviewFor().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 931 of file AppController.cxx.
References sfx2::FileDialogHelper::AddFilter(), askToReconnect(), SfxMailModel::AttachDocument(), aURL, sfx2::FileDialogHelper::BaseSaveAs, dbaui::OAsynchronousLink::Call(), copyObject(), SvxAbstractDialogFactory::Create(), dbaui::DatabaseObjectView::createNew(), dbaui::OApplicationView::cut(), DBG_UNHANDLED_EXCEPTION, deleteEntries(), dbaui::Design, doAction(), dbaui::Document, dbaui::DocumentInfo, dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), ERRCODE_NONE, eType, Exception, sfx2::FileDialogHelper::Execute(), dbaui::OGenericUnoController::Execute(), getContainer(), getDatabaseName(), getElements(), dbaui::OApplicationView::getElementType(), getElementType(), dbaui::ControllerFrame::getFrame(), dbaui::OGenericUnoController::getFrame(), dbaui::OGenericUnoController::getFrameWeld(), getModel(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::getORB(), sfx2::FileDialogHelper::GetPath(), dbaui::OApplicationView::getQualifiedName(), getSelectionElementNames(), dbaui::getStandardDatabaseFilter(), getSupportedFormats(), TransferableDataHelper::GetTransferable(), dbaui::OGenericUnoController::getView(), getViewClipboard(), TransferableDataHelper::HasFormat(), ID_APP_NEW_QUERY_AUTO_PILOT, ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_PASTE, ID_BROWSER_SAVEASDOC, ID_BROWSER_SAVEDOC, ID_BROWSER_SORTDOWN, ID_BROWSER_SORTUP, ID_DIRECT_SQL, ID_DOCUMENT_CREATE_REPWIZ, ID_NEW_QUERY_DESIGN, ID_NEW_QUERY_SQL, ID_NEW_TABLE_DESIGN, ID_NEW_TABLE_DESIGN_AUTO_PILOT, ID_NEW_VIEW_DESIGN, ID_NEW_VIEW_DESIGN_AUTO_PILOT, insertHierarchyElement(), vcl::Window::Invalidate(), dbaui::OGenericUnoController::InvalidateAll(), dbaui::OGenericUnoController::InvalidateFeature(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbaui::OGenericUnoController::isUserDefinedFeature(), LINK, dbaui::OGenericUnoController::m_aCurrentFrame, m_aSelectContainerEvent, m_aTableCopyHelper, dbaui::OGenericUnoController::m_bCurrentlyModified, dbaui::OGenericUnoController::m_bReadOnly, m_ePreviewMode, m_pSubComponentManager, m_xDataSource, m_xModel, dbaui::OGenericUnoController::m_xUrlTransformer, dbaui::Mail, newElement(), dbaui::NONE, INetURLObject::NONE, dbaui::Normal, onDocumentOpened(), openDialog(), paste(), pasteFormat(), dbaui::OTableCopyHelper::pasteTable(), vcl::Window::PostUserEvent(), PROPERTY_GRAPHICAL_DESIGN(), comphelper::NamedValueCollection::put(), refreshTables(), renameEntry(), dbaui::OTableCopyHelper::ResetTableNameForAppend(), dbaui::OApplicationView::selectAll(), dbaui::OApplicationView::selectContainer(), SfxMailModel::Send(), SfxMailModel::SEND_MAIL_OK, SERVICE_SDB_DIRECTSQLDIALOG, sfx2::FileDialogHelper::SetContext(), sfx2::FileDialogHelper::SetCurrentFilter(), sfx2::FileDialogHelper::SetDisplayDirectory(), dbaui::OTableCopyHelper::SetTableNameForAppend(), sName, dbaui::OApplicationView::sortDown(), dbaui::OApplicationView::sortUp(), dbaui::OApplicationView::switchPreview(), and URL.
Referenced by onCopyEntry(), onLoadedMenu(), onPasteEntry(), and suspend().
|
overridevirtual |
execute a drop request
Implements dbaui::IControlActionListener.
Definition at line 2363 of file AppController.cxx.
References dbaui::OTableCopyHelper::DropDescriptor::aDroppedData, dbaui::OTableCopyHelper::DropDescriptor::aUrl, dbaui::OTableCopyHelper::DropDescriptor::bError, dbaui::OTableCopyHelper::DropDescriptor::bHtml, svx::ODataAccessDescriptor::clear(), dbaui::OTableCopyHelper::copyTagTable(), DND_ACTION_COPY, DND_ACTION_NONE, dbaui::E_FORM, dbaui::E_NONE, ensureConnection(), getContainer(), TransferableDataHelper::GetDataFlavorExVector(), getElements(), dbaui::OApplicationView::getElementType(), dbaui::OApplicationView::getEntry(), dbaui::OApplicationView::getQualifiedName(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), LINK, m_aAsyncDrop, m_aTableCopyHelper, m_nAsyncDrop, ExecuteDropEvent::maDropEvent, ExecuteDropEvent::maPosPixel, ExecuteDropEvent::mnAction, dbaui::OTableCopyHelper::DropDescriptor::nAction, dbaui::OTableCopyHelper::DropDescriptor::nType, Application::PostUserEvent(), PROPERTY_NAME(), Application::RemoveUserEvent(), and sName.
|
overridevirtual |
Definition at line 301 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::getTyped(), and m_xDataSourceConnection.
|
overridevirtual |
Definition at line 287 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getFrame(), dbaui::OGenericUnoController::getMutex(), and xFrame.
|
overridevirtual |
returns the controller which is responsible for providing states of certain features, and executing them.
Implements dbaui::IContextMenuProvider.
Definition at line 2253 of file AppController.cxx.
|
inline |
retrieves the current connection
Definition at line 444 of file AppController.hxx.
References m_xDataSourceConnection.
Referenced by convertToView(), getElements(), GetState(), openDialog(), paste(), and renameEntry().
|
private |
Definition at line 1457 of file AppController.cxx.
References dbaui::OGenericUnoController::getView().
Referenced by adjustMenuPosition(), askToReconnect(), attachModel(), Construct(), convertToView(), copyDocObject(), copyObject(), copySQLObject(), deleteEntries(), disposing(), doAction(), elementInserted(), elementRemoved(), elementReplaced(), Execute(), executeDrop(), getCurrentlySelectedName(), getCurrentSelection(), getMenuParent(), getSelection(), getSelectionElementNames(), GetState(), isRenameDeleteAllowed(), newElement(), newElementWithPilot(), onContainerSelect(), onDeleteEntry(), onEntryDoubleClick(), onLoadedMenu(), onSelectionChanged(), openDialog(), openElementWithArguments(), pasteFormat(), propertyChange(), queryDrop(), refreshTables(), renameEntry(), requestDrag(), select(), and showPreviewFor().
|
overridevirtual |
returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception
Implements dbaui::IContextMenuProvider.
Definition at line 2258 of file AppController.cxx.
References m_aContextMenuInterceptors.
|
overridevirtual |
returns the context menu resource name for the control
Supposed to be a valid name from uiconfig/<module>/popupmenu folder.
Implements dbaui::IContextMenuProvider.
Definition at line 2248 of file AppController.cxx.
|
private |
returns the currently selected table or query name.
Definition at line 2654 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_QUERY, dbaui::E_TABLE, Exception, getContainer(), dbaui::OApplicationView::getElementType(), getElementType(), dbaui::OApplicationView::getQualifiedName(), dbaccess::QUERY, sName, and dbaccess::TABLE.
Referenced by newElementWithPilot().
|
overridevirtual |
returns the current selection in the given control
This selection is used for filling a ContextMenuExecuteEvent event for the given control.
Implements dbaui::IContextMenuProvider.
Definition at line 2263 of file AppController.cxx.
References Any, dbaui::OApplicationView::describeCurrentSelectionForControl(), and getContainer().
|
private |
returns the database name
Definition at line 536 of file AppControllerGen.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xDataSource, and PROPERTY_NAME().
Referenced by copyDocObject(), copySQLObject(), ensureConnection(), Execute(), getDocumentsAccess(), getSelection(), openDialog(), openElementWithArguments(), pasteFormat(), and showPreviewFor().
|
overridevirtual |
Definition at line 280 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), and m_xDataSource.
|
private |
returns the document access for the specific type
_eType | the type |
Definition at line 463 of file AppControllerDnD.cxx.
References dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), getDatabaseName(), getElements(), dbaui::OGenericUnoController::getFrameWeld(), and dbaui::OGenericUnoController::getORB().
Referenced by newElement(), newElementWithPilot(), and openElementWithArguments().
|
private |
returns the nameaccess
Definition at line 404 of file AppControllerDnD.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, Exception, getConnection(), getQueryDefinitions(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), m_xDataSourceConnection, and m_xModel.
Referenced by copyDocObject(), deleteObjects(), Execute(), executeDrop(), getDocumentsAccess(), impl_validateObjectTypeAndName_throw(), insertHierarchyElement(), isRenameDeleteAllowed(), onContainerSelect(), queryDrop(), refreshTables(), renameEntry(), and showPreviewFor().
|
staticprivate |
return the element type for given container
_xContainer | The container where the element type has to be found |
Definition at line 716 of file AppControllerGen.cxx.
References dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, SERVICE_NAME_FORM_COLLECTION, SERVICE_NAME_REPORT_COLLECTION, and SERVICE_SDBCX_TABLES.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), Execute(), getCurrentlySelectedName(), getSelection(), GetState(), onEntryDoubleClick(), refreshTables(), and renameEntry().
|
overridevirtual |
Implements dbaui::OGenericUnoController.
Definition at line 141 of file AppController.cxx.
References SERVICE_SDB_APPLICATIONCONTROLLER.
|
overridevirtual |
Implements dbaui::IContextMenuProvider.
Definition at line 2270 of file AppController.cxx.
References getContainer(), and dbaui::OApplicationView::getMenuParent().
|
overridevirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 2462 of file AppController.cxx.
References m_xModel.
|
inlineoverrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 377 of file AppController.hxx.
References m_xModel.
|
private |
returns the query definitions of the active data source.
Definition at line 800 of file AppControllerDnD.cxx.
References m_xDataSource.
Referenced by getElements(), and paste().
|
overridevirtual |
Definition at line 2801 of file AppController.cxx.
References Any, dbaui::OApplicationView::describeCurrentSelectionForType(), dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, getContainer(), getDatabaseName(), getElementType(), and dbaui::OGenericUnoController::getMutex().
|
private |
fills the list with the selected entries.
Definition at line 453 of file AppControllerDnD.cxx.
References getContainer(), dbaui::OGenericUnoController::getMutex(), and dbaui::OApplicationView::getSelectionElementNames().
Referenced by copyDocObject(), deleteEntries(), doAction(), Execute(), GetState(), isRenameDeleteAllowed(), and renameEntry().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 523 of file AppController.cxx.
References dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, dbaccess::ODsnTypeCollection::cutPrefix(), DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::Document, dbaui::DocumentInfo, dbaui::AdvancedSettingsDialog::doesHaveAnyAdvancedSettings(), dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, Exception, dbaccess::ODsnTypeCollection::extractHostNamePort(), svt::OFileNotation::get(), getConnection(), getContainer(), dbaui::OApplicationView::getElementCount(), dbaui::OApplicationView::getElementType(), getElementType(), dbaui::OApplicationView::getPreviewMode(), dbaui::OApplicationView::getSelectionCount(), getSelectionElementNames(), dbaui::OGenericUnoController::GetState(), dbaccess::ODsnTypeCollection::getType(), dbaccess::ODsnTypeCollection::getTypeDisplayName(), getViewClipboard(), TransferableDataHelper::HasFormat(), ID_APP_NEW_QUERY_AUTO_PILOT, ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_PASTE, ID_BROWSER_SAVEASDOC, ID_BROWSER_SAVEDOC, ID_BROWSER_SORTDOWN, ID_BROWSER_SORTUP, ID_BROWSER_UNDO, ID_DIRECT_SQL, ID_DOCUMENT_CREATE_REPWIZ, ID_NEW_QUERY_DESIGN, ID_NEW_QUERY_SQL, ID_NEW_TABLE_DESIGN, ID_NEW_TABLE_DESIGN_AUTO_PILOT, ID_NEW_VIEW_DESIGN, ID_NEW_VIEW_DESIGN_AUTO_PILOT, impl_isAlterableView_nothrow(), dbaui::OApplicationView::isALeafSelected(), isConnected(), isConnectionReadOnly(), dbaui::OApplicationView::isCutAllowed(), isDataSourceReadOnly(), dbaccess::ODsnTypeCollection::isEmbeddedDatabase(), dbaccess::ODsnTypeCollection::isFileSystemBased(), dbaui::OApplicationView::isFilled(), SvtModuleOptions::IsModuleInstalled(), isRenameDeleteAllowed(), dbaccess::ODsnTypeCollection::isShowPropertiesEnabled(), dbaui::OApplicationView::isSortUp(), isTableFormat(), m_aTypeCollection, dbaui::OGenericUnoController::m_bReadOnly, dbaui::OGenericUnoController::m_xContext, m_xDataSource, m_xModel, svt::OFileNotation::N_SYSTEM, nCount, dbaui::NONE, PROPERTY_URL(), PROPERTY_USER(), dbaui::FeatureState::sTitle, SvtPathOptions::SubstituteVariable(), u, and SvtModuleOptions::WRITER.
|
private |
returns the stripped database name.
Definition at line 553 of file AppControllerGen.cxx.
References dbaui::getStrippedDatabaseName(), and m_xDataSource.
Referenced by connect(), disposing(), ensureConnection(), and suspend().
|
overridevirtual |
Definition at line 295 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), and m_pSubComponentManager.
|
staticprivate |
fills the vector with all supported formats
_eType | The type for which we need the formats |
_rFormatIds | The vector to be filled up. |
Definition at line 811 of file AppControllerDnD.cxx.
References dbaui::E_QUERY, and dbaui::E_TABLE.
Referenced by Execute().
|
overridevirtual |
Implements dbaui::OGenericUnoController.
Definition at line 146 of file AppController.cxx.
|
inlineprivate |
returns the system clipboard.
Definition at line 266 of file AppController.hxx.
References m_aSystemClipboard.
Referenced by Execute(), GetState(), isTableFormat(), and pasteFormat().
|
overridevirtual |
Definition at line 328 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), m_pSubComponentManager, nType, and sName.
|
private |
determines whether the given table name denotes a view which can be altered
Definition at line 1717 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), and m_xDataSourceConnection.
Referenced by GetState(), and openElementWithArguments().
|
private |
verifies the object type denotes a valid DatabaseObject, and the object name denotes an existing object of this type.
Throws if not.
Definition at line 372 of file AppControllerGen.cxx.
References getElements(), isConnected(), dbaccess::QUERY, connectivity::SQLError::raiseException(), dbaccess::REPORT, and dbaccess::TABLE.
Referenced by createComponentWithArguments(), and loadComponentWithArguments().
|
private |
Inserts a new object into the hierarchy given be the type.
_eType | Where to insert the new item. |
_sParentFolder | The name of the parent folder if it exists. |
_xContent | The content to insert. |
_bMove | if <TRUE> the name of the content must be inserted without any change, otherwise not. |
Definition at line 583 of file AppControllerGen.cxx.
References dbaui::E_FORM, getElements(), dbaui::OGenericUnoController::getFrameWeld(), dbaui::OGenericUnoController::getORB(), and dbaui::insertHierarchyElement().
|
inline |
determines whether we're currently connected to the database
Definition at line 447 of file AppController.hxx.
References utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), and m_xDataSourceConnection.
|
overridevirtual |
Definition at line 307 of file AppControllerGen.cxx.
References dbaui::OGenericUnoController::getMutex(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), and m_xDataSourceConnection.
Referenced by GetState(), and impl_validateObjectTypeAndName_throw().
|
private |
checks if the connection for the selected data source is read only.
If the connection doesn't exist, <TRUE> will be returned.
Definition at line 386 of file AppControllerDnD.cxx.
References DBG_UNHANDLED_EXCEPTION, and m_xMetaData.
Referenced by GetState(), isRenameDeleteAllowed(), and queryDrop().
|
overridevirtual |
checks if the selected data source is read only
Reimplemented from dbaui::OGenericUnoController.
Definition at line 380 of file AppControllerDnD.cxx.
References m_xModel.
Referenced by GetState(), isRenameDeleteAllowed(), previewChanged(), and queryDrop().
|
private |
checks if delete command or rename command is allowed
_eType | The element type. |
_bDelete | If <TRUE> then the delete command should be checked. |
Definition at line 596 of file AppControllerGen.cxx.
References dbaui::E_TABLE, eType, Exception, getContainer(), getElements(), dbaui::OApplicationView::getElementType(), dbaui::OApplicationView::getSelectionCount(), getSelectionElementNames(), dbaui::OApplicationView::isALeafSelected(), isConnectionReadOnly(), and isDataSourceReadOnly().
Referenced by GetState().
|
private |
returns <TRUE> if the clipboard supports a table format, otherwise <FALSE>.
Definition at line 828 of file AppControllerDnD.cxx.
References getViewClipboard(), and dbaui::OTableCopyHelper::isTableFormat().
Referenced by GetState().
|
overridevirtual |
Definition at line 419 of file AppControllerGen.cxx.
References loadComponentWithArguments().
|
overridevirtual |
Definition at line 425 of file AppControllerGen.cxx.
References dbaui::Design, dbaui::OGenericUnoController::getMutex(), impl_validateObjectTypeAndName_throw(), dbaui::Normal, and openElementWithArguments().
Referenced by loadComponent().
|
private |
opens a new frame for creation or auto pilot
_eType | Defines the type to open |
i_rAdditionalArguments | Additional arguments to pass when creating the component |
Definition at line 1908 of file AppController.cxx.
References aHelper, dbaui::Design, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), getContainer(), getDocumentsAccess(), dbaui::OGenericUnoController::getFrame(), dbaui::OGenericUnoController::getORB(), ID_FORM_NEW_TEXT, ID_REPORT_NEW_TEXT, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), m_xDataSource, and onDocumentOpened().
Referenced by createComponentWithArguments(), and Execute().
|
private |
creates a new database object, using an auto pilot
_eType | Defines the type of the object to create @precond Our mutex must not be locked. |
Definition at line 1863 of file AppController.cxx.
References aHelper, dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, getContainer(), getCurrentlySelectedName(), getDocumentsAccess(), and dbaui::OGenericUnoController::getFrame().
|
private |
called we were attached to a frame
In particular, this is called after the controller has been announced to the model (XModel::connectController)
Definition at line 2467 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xModel, OnFirstControllerConnected(), xController, and xModel.
Referenced by attachFrame().
bool dbaui::OApplicationController::onContainerSelect | ( | ElementType | _eType | ) |
called when a container (category) in the application view has been selected
_pTree | The tree list box. |
Definition at line 1611 of file AppController.cxx.
References addContainerListener(), comphelper::containerToSequence(), dbaui::OApplicationDetailView::createPage(), dbaui::OApplicationDetailView::createTablesPage(), dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_TABLE, ensureConnection(), Exception, getContainer(), dbaui::OApplicationView::getDetailView(), getElements(), dbaui::OGenericUnoController::getFrame(), dbaui::OGenericUnoController::getLayoutManager(), dbaui::OGenericUnoController::InvalidateAll(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), m_aPendingSelection, m_eCurrentType, m_pSelectionNotifier, and dbaui::OApplicationView::selectElements().
Referenced by dbaui::OApplicationSwapWindow::onContainerSelected().
void dbaui::OApplicationController::onCopyEntry | ( | ) |
called when a "Copy" command is executed in a tree view
Definition at line 2213 of file AppController.cxx.
References Execute(), and ID_BROWSER_COPY.
void dbaui::OApplicationController::onDeleteEntry | ( | ) |
called when a "Delete" command is executed in a tree view
Definition at line 2223 of file AppController.cxx.
References dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, dbaui::OGenericUnoController::executeChecked(), getContainer(), dbaui::OApplicationView::getElementType(), and nId.
|
private |
remember a newly opened sub document for later access
Definition at line 559 of file AppControllerGen.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_pSubComponentManager, and PROPERTY_NAME().
Referenced by Execute(), newElement(), and openElementWithArguments().
bool dbaui::OApplicationController::onEntryDoubleClick | ( | const weld::TreeView & | rTree | ) |
called when an entry in a tree list box has been double-clicked
_rTree | The tree list box. |
Definition at line 1685 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, weld::TreeView::get_cursor(), getContainer(), getElementType(), dbaui::OApplicationView::isLeaf(), weld::TreeView::make_iterator(), dbaui::Normal, and openElementWithArguments().
void dbaui::OApplicationController::OnFirstControllerConnected | ( | ) |
Definition at line 2493 of file AppController.cxx.
References Any, DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, dbaui::OGenericUnoController::getORB(), comphelper::NamedValueCollection::getOrDefault(), m_xModel, and u.
Referenced by onAttachedFrame().
void dbaui::OApplicationController::OnInvalidateClipboard | ( | ) |
Definition at line 2205 of file AppController.cxx.
References ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_PASTE, and dbaui::OGenericUnoController::InvalidateFeature().
|
overrideprotectedvirtual |
called when our menu has been loaded into our frame, can be used to load sub toolbars
_xLayoutManager | The layout manager. |
Reimplemented from dbaui::OGenericUnoController.
Definition at line 636 of file AppControllerGen.cxx.
References dbaui::OApplicationView::createIconAutoMnemonics(), Execute(), getContainer(), dbaui::OGenericUnoController::InvalidateAll(), dbaui::OApplicationView::setTaskExternalMnemonics(), and u.
void dbaui::OApplicationController::onPasteEntry | ( | ) |
called when a "Paste" command is executed in a tree view
Definition at line 2218 of file AppController.cxx.
References Execute(), and ID_BROWSER_PASTE.
void dbaui::OApplicationController::onSelectionChanged | ( | ) |
called when an entry in a tree view has been selected
_pEntry | the selected entry |
Definition at line 2133 of file AppController.cxx.
References eType, getContainer(), dbaui::OApplicationView::getElementType(), dbaui::OApplicationView::getQualifiedName(), dbaui::OApplicationView::getSelectionCount(), dbaui::OGenericUnoController::InvalidateAll(), dbaui::OApplicationView::isALeafSelected(), m_pSelectionNotifier, showPreviewFor(), and sName.
Referenced by dbaui::OAppDetailPageHelper::switchPreview().
|
private |
opens a uno dialog with the currently selected data source as initialize argument
_sServiceName | The service name of the dialog to be executed. |
Definition at line 149 of file AppControllerGen.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, getConnection(), getContainer(), getDatabaseName(), dbaui::OGenericUnoController::getFrameWeld(), VCLUnoHelper::GetInterface(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::getORB(), vcl::Window::GetParent(), dbaui::OGenericUnoController::getTopMostContainerWindow(), dbaui::OGenericUnoController::getView(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), makeAny(), and PROPERTY_ACTIVE_CONNECTION().
Referenced by Execute().
|
private |
opens a new sub frame with a table/query/form/report/view, passing additional arguments
Definition at line 1742 of file AppController.cxx.
References aArguments, aHelper, Any, dbaui::Design, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), getContainer(), getDatabaseName(), getDocumentsAccess(), dbaui::ControllerFrame::getFrame(), dbaui::OGenericUnoController::getORB(), impl_isAlterableView_nothrow(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbaui::OGenericUnoController::m_aCurrentFrame, m_pSubComponentManager, m_xDataSource, onDocumentOpened(), PROPERTY_GRAPHICAL_DESIGN(), PROPERTY_SHOWMENU(), and dbaui::OApplicationView::showPreview().
Referenced by doAction(), loadComponentWithArguments(), and onEntryDoubleClick().
|
private |
pastes a query, form or report into the data source
_eType | The type of the object to paste. |
_rPasteData | The data descriptor. |
_sParentFolder | The name of the parent folder if it exists. |
_bMove | if <TRUE> the name of the content must be inserted without any change, otherwise not. |
Definition at line 616 of file AppControllerDnD.cxx.
References AdditionalDescription, Any, aSeq, DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::E_QUERY, ensureConnection(), Exception, getConnection(), svx::ODataAccessDescriptor::getDataSource(), dbaui::getDataSourceByName(), dbaui::OGenericUnoController::getFrameWeld(), dbaui::OSaveAsDlg::getName(), dbaui::OGenericUnoController::getORB(), getQueryDefinitions(), svx::ODataAccessDescriptor::has(), insertHierarchyElement(), dbaui::DynamicTableOrQueryNameCheck::isNameValid(), PROPERTY_COMMAND(), PROPERTY_ESCAPE_PROCESSING(), dbaccess::QUERY, RET_OK, weld::DialogController::run(), SAL_WARN, dbaui::OGenericUnoController::showError(), dbaccess::TABLE, and TitlePasteAs.
Referenced by Execute(), and pasteFormat().
|
private |
pastes a special format from the system clipboard to the currently selected object types
_nFormatId | The format to be copied. |
Definition at line 126 of file AppControllerGen.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_TABLE, ensureConnection(), eType, Exception, getContainer(), getDatabaseName(), dbaui::OApplicationView::getElementType(), getViewClipboard(), m_aTableCopyHelper, paste(), and dbaui::OTableCopyHelper::pasteTable().
Referenced by Execute().
void dbaui::OApplicationController::previewChanged | ( | sal_Int32 | _nMode | ) |
called when the preview mode was changed
Definition at line 476 of file AppControllerGen.cxx.
References aLayoutInfo, Any, DBG_UNHANDLED_EXCEPTION, Exception, dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::InvalidateFeature(), isDataSourceReadOnly(), m_xDataSource, and PROPERTY_LAYOUTINFORMATION().
Referenced by dbaui::OAppDetailPageHelper::switchPreview().
|
overridevirtual |
Definition at line 232 of file AppControllerGen.cxx.
References dbaui::E_FORM, dbaui::E_REPORT, dbaui::OApplicationView::elementReplaced(), eType, getContainer(), dbaui::OApplicationView::getElementType(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::InvalidateFeature(), m_bNeedToReconnect, m_xModel, dbaui::OGenericUnoController::modified(), PROPERTY_NAME(), PROPERTY_URL(), and PROPERTY_USER().
|
overridevirtual |
check whether or not a drop request should be accepted
Implements dbaui::IControlActionListener.
Definition at line 2320 of file AppController.cxx.
References DND_ACTION_COPY, DND_ACTION_COPYMOVE, DND_ACTION_NONE, dbaui::E_FORM, dbaui::E_NONE, dbaui::E_REPORT, dbaui::E_TABLE, eType, getContainer(), getElements(), dbaui::OApplicationView::getElementType(), dbaui::OApplicationView::getEntry(), dbaui::OApplicationView::getQualifiedName(), isConnectionReadOnly(), isDataSourceReadOnly(), AcceptDropEvent::maPosPixel, AcceptDropEvent::mnAction, and sName.
void dbaui::OApplicationController::refreshTables | ( | ) |
refreshes the tables
Definition at line 210 of file AppControllerGen.cxx.
References dbaui::OApplicationDetailView::clearPages(), dbaui::OApplicationDetailView::createTablesPage(), dbaui::E_TABLE, ensureConnection(), Exception, getContainer(), dbaui::OApplicationView::getDetailView(), getElements(), getElementType(), and dbaui::OGenericUnoController::getFrameWeld().
Referenced by Execute().
|
overridevirtual |
Definition at line 465 of file AppControllerGen.cxx.
References comphelper::OInterfaceContainerHelper2::addInterface(), and m_aContextMenuInterceptors.
|
overridevirtual |
Definition at line 471 of file AppControllerGen.cxx.
References m_aContextMenuInterceptors, and comphelper::OInterfaceContainerHelper2::removeInterface().
|
overridevirtual |
Definition at line 2680 of file AppController.cxx.
References m_pSelectionNotifier.
|
private |
renames the selected entry in the detail page
Definition at line 1984 of file AppController.cxx.
References Any, DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, dbaui::OApplicationView::elementReplaced(), ensureConnection(), eType, Exception, getConnection(), getContainer(), getElements(), dbaui::OApplicationView::getElementType(), getElementType(), dbaui::OGenericUnoController::getFrameWeld(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::getORB(), getSelectionElementNames(), m_xMetaData, PROPERTY_NAME(), dbaccess::QUERY, RET_OK, sCatalog, dbaui::OGenericUnoController::showError(), sName, sSchema, dbaccess::TABLE, and TitleRename.
Referenced by Execute().
|
overridevirtual |
handler for StartDrag requests
Implements dbaui::IControlActionListener.
Definition at line 2285 of file AppController.cxx.
References copyDocObject(), copySQLObject(), DBG_UNHANDLED_EXCEPTION, dbaui::E_QUERY, dbaui::E_TABLE, eType, Exception, getContainer(), dbaui::TreeListBox::GetDataTransfer(), dbaui::OApplicationView::getDetailView(), dbaui::OApplicationView::getElementType(), dbaui::OApplicationView::getSelectionCount(), and dbaui::OApplicationDetailView::getTreeWindow().
|
overridevirtual |
requests a quick help text to display
Implements dbaui::IControlActionListener.
Definition at line 2280 of file AppController.cxx.
|
overridevirtual |
Definition at line 2685 of file AppController.cxx.
References dbaui::OAsynchronousLink::CancelCall(), comphelper::containerToSequence(), DBA_RES, dbaui::E_FORM, dbaui::E_NONE, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, getContainer(), dbaui::OGenericUnoController::getMutex(), dbaui::OGenericUnoController::getView(), m_aPendingSelection, m_aSelectContainerEvent, m_eCurrentType, nType, pObject, dbaccess::QUERY, dbaccess::REPORT, dbaui::OApplicationView::selectContainer(), dbaui::OApplicationView::selectElements(), sMessage, and dbaccess::TABLE.
|
private |
shows the preview for the given entry
Definition at line 2154 of file AppController.cxx.
References DBG_UNHANDLED_EXCEPTION, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, ensureConnection(), Exception, getContainer(), getDatabaseName(), getElements(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), m_ePreviewMode, dbaui::NONE, dbaui::OGenericUnoController::showError(), and dbaui::OApplicationView::showPreview().
Referenced by onSelectionChanged().
Implements dbaui::OGenericUnoController.
Definition at line 464 of file AppController.cxx.
References Any, closeSubComponents(), Execute(), ExecuteQuerySaveDocument(), dbaui::OGenericUnoController::getFrameWeld(), getModel(), dbaui::OGenericUnoController::getMutex(), getStrippedDatabaseName(), dbaui::OGenericUnoController::getView(), ID_BROWSER_SAVEDOC, m_bSuspended, m_xModel, RET_CANCEL, and RET_YES.
|
private |
Definition at line 96 of file AppController.hxx.
Referenced by executeDrop().
|
private |
Definition at line 108 of file AppController.hxx.
Referenced by getContextMenuInterceptors(), registerContextMenuInterceptor(), and releaseContextMenuInterceptor().
|
private |
Definition at line 110 of file AppController.hxx.
Referenced by addContainerListener(), containerFound(), disposing(), elementInserted(), elementRemoved(), and elementReplaced().
|
private |
Definition at line 128 of file AppController.hxx.
Referenced by onContainerSelect(), and select().
|
private |
Definition at line 119 of file AppController.hxx.
|
private |
Definition at line 102 of file AppController.hxx.
Referenced by Construct(), and getViewClipboard().
|
private |
Definition at line 115 of file AppController.hxx.
Referenced by Execute(), executeDrop(), and pasteFormat().
|
private |
Definition at line 114 of file AppController.hxx.
Referenced by GetState().
|
private |
Definition at line 122 of file AppController.hxx.
Referenced by askToReconnect(), and propertyChange().
|
private |
Definition at line 123 of file AppController.hxx.
Referenced by suspend().
|
private |
Definition at line 121 of file AppController.hxx.
Referenced by askToReconnect(), onContainerSelect(), and select().
|
private |
Definition at line 120 of file AppController.hxx.
Referenced by attachModel(), Construct(), Execute(), and showPreviewFor().
|
private |
Definition at line 118 of file AppController.hxx.
Referenced by executeDrop().
|
private |
Definition at line 117 of file AppController.hxx.
Referenced by Construct(), and disposing().
|
private |
Definition at line 126 of file AppController.hxx.
Referenced by addSelectionChangeListener(), disposing(), onContainerSelect(), onSelectionChanged(), and removeSelectionChangeListener().
|
private |
Definition at line 112 of file AppController.hxx.
Referenced by askToReconnect(), closeSubComponents(), deleteObjects(), deleteTables(), disposing(), Execute(), getSubComponents(), identifySubComponent(), onDocumentOpened(), and openElementWithArguments().
|
private |
Definition at line 104 of file AppController.hxx.
Referenced by attachModel(), disposing(), Execute(), getDatabaseName(), getDataSource(), getQueryDefinitions(), GetState(), getStrippedDatabaseName(), newElement(), openElementWithArguments(), and previewChanged().
|
private |
Definition at line 98 of file AppController.hxx.
Referenced by ensureConnection(), getActiveConnection(), getConnection(), getElements(), impl_isAlterableView_nothrow(), and isConnected().
|
private |
Definition at line 100 of file AppController.hxx.
Referenced by elementReplaced(), ensureConnection(), isConnectionReadOnly(), and renameEntry().
|
private |
Definition at line 106 of file AppController.hxx.
Referenced by attachModel(), disposing(), Execute(), getElements(), getModel(), getPrivateModel(), GetState(), isDataSourceReadOnly(), onAttachedFrame(), OnFirstControllerConnected(), propertyChange(), and suspend().