LibreOffice Module dbaccess (master) 1
|
#include <RelationController.hxx>
Public Member Functions | |
ORelationController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
virtual | ~ORelationController () override |
void | mergeData (const TTableConnectionData &_aConnectionData) |
virtual bool | Construct (vcl::Window *pParent) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual bool | allowViews () const override |
determines whether or not it's allowed for database views to participate in the game More... | |
virtual bool | allowQueries () const override |
determines whether or not it's allowed for queries to participate in the game More... | |
Public Member Functions inherited from dbaui::OJoinController | |
OJoinController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
TTableWindowData & | getTableWindowData () |
TTableConnectionData & | getTableConnectionData () |
OAddTableDlg * | getAddTableDialog () const |
virtual void | reconnect (bool _bUI) override |
virtual void | impl_onModifyChanged () override |
virtual bool | allowViews () const =0 |
determines whether or not it's allowed for database views to participate in the game More... | |
virtual bool | allowQueries () const =0 |
determines whether or not it's allowed for queries to participate in the game More... | |
virtual OJoinDesignView * | getJoinView () |
provides access to the OJoinDesignView belonging to the controller, which might or might not be the direct view (getView) More... | |
void | removeConnectionData (const TTableConnectionData::value_type &_pData) |
erase the data in the data vector More... | |
void | SaveTabWinsPosSize (OJoinTableView::OTableWindowMap *pTabWinList, tools::Long nOffsetX, tools::Long nOffsetY) |
virtual void SAL_CALL | disposing () override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool bSuspend) override |
void | setErrorOccurred (const ::dbtools::SQLExceptionInfo &_rInfo) |
only defines a method to save a SQLException in d&d methods to show the error at a later state set the internal member m_aExceptionInfo to _rInfo More... | |
::dbtools::SQLExceptionInfo | clearOccurredError () |
just returns the internal member and clears it More... | |
void | runDialogAsync () |
virtual void SAL_CALL | disposing () override |
Public Member Functions inherited from dbaui::OSingleDocumentController | |
SfxUndoManager & | GetUndoManager () const |
need for undo's and redo's More... | |
void | ClearUndoManager () |
complete clears the Undo/Redo stacks More... | |
void | addUndoActionAndInvalidate (std::unique_ptr< SfxUndoAction > pAction) |
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO and REDO slot More... | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL | getUndoManager () override |
Protected Member Functions | |
virtual void | describeSupportedFeatures () override |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
void | loadData () |
TTableWindowData::value_type | existsTable (std::u16string_view _rComposedTableName) const |
void | loadLayoutInformation () |
Protected Member Functions inherited from dbaui::OJoinController | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
void | loadTableWindows (const ::comphelper::NamedValueCollection &i_rViewSettings) |
loads the information for the windows. More... | |
void | loadTableWindow (const ::comphelper::NamedValueCollection &i_rTableWindowSettings) |
loads the information for one window. More... | |
void | saveTableWindows (::comphelper::NamedValueCollection &o_rViewSettings) const |
saves the TableWindows structure in a sequence of property values More... | |
virtual | ~OJoinController () override |
TTableWindowData::value_type | createTableWindowData (const OUString &_sComposedName, const OUString &_sTableName, const OUString &_sWindowName) |
virtual short | saveModified ()=0 |
virtual void | reset ()=0 |
virtual void | describeSupportedFeatures () override |
AddTableDialogContext & | impl_getDialogContext () const |
Protected Member Functions inherited from dbaui::OSingleDocumentController | |
OSingleDocumentController (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
virtual | ~OSingleDocumentController () override |
virtual void SAL_CALL | disposing () override |
Private Member Functions | |
virtual short | saveModified () override |
virtual void | reset () override |
virtual void | impl_initialize () override |
virtual OUString | getPrivateTitle () const override |
DECL_LINK (OnThreadFinished, void *, void) | |
Private Attributes | |
css::uno::Reference< css::container::XNameAccess > | m_xTables |
std::unique_ptr< weld::WaitObject > | m_xWaitObject |
sal_uLong | m_nThreadEvent |
bool | m_bRelationsPossible |
Additional Inherited Members | |
Static Public Member Functions inherited from dbaui::OJoinController | |
static void | SaveTabWinPosSize (OTableWindow const *pTabWin, tools::Long nOffsetX, tools::Long nOffsetY) |
Protected Attributes inherited from dbaui::OJoinController | |
TTableConnectionData | m_vTableConnectionData |
TTableWindowData | m_vTableData |
::dbtools::SQLExceptionInfo | m_aExceptionInfo |
std::shared_ptr< OAddTableDlg > | m_xAddTableDialog |
std::unique_ptr< AddTableDialogContext > | m_pDialogContext |
Point | m_aMinimumTableViewSize |
Definition at line 33 of file RelationController.hxx.
ORelationController::ORelationController | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rM | ) |
Definition at line 86 of file RelationController.cxx.
|
overridevirtual |
Definition at line 94 of file RelationController.cxx.
|
overridevirtual |
determines whether or not it's allowed for queries to participate in the game
Implements dbaui::OJoinController.
Definition at line 543 of file RelationController.cxx.
|
overridevirtual |
determines whether or not it's allowed for database views to participate in the game
Implements dbaui::OJoinController.
Definition at line 538 of file RelationController.cxx.
|
overridevirtual |
Definition at line 212 of file RelationController.cxx.
|
private |
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 233 of file RelationController.cxx.
References dbaui::OJoinController::describeSupportedFeatures().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 118 of file RelationController.cxx.
References Any, dbaui::checkDataSourceAvailable(), DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, dbaui::OJoinController::Execute(), dbaccess::getDataSource(), getPropertyValue(), comphelper::NamedValueCollection::getPropertyValues(), getView(), ID_BROWSER_SAVEDOC, PROPERTY_LAYOUTINFORMATION(), PROPERTY_NAME(), weld::DialogController::run(), and dbaui::OJoinController::saveTableWindows().
Referenced by saveModified().
|
protected |
Definition at line 495 of file RelationController.cxx.
References dbaui::OJoinController::m_vTableData.
Referenced by mergeData().
|
overridevirtual |
Definition at line 76 of file RelationController.cxx.
|
overrideprivatevirtual |
Definition at line 206 of file RelationController.cxx.
References dbaccess::getDataSource(), dbaui::getStrippedDatabaseName(), and sName.
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 98 of file RelationController.cxx.
References dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, dbaui::OJoinController::GetState(), ID_BROWSER_SAVEDOC, m_bRelationsPossible, and dbaui::OJoinController::m_vTableData.
|
overridevirtual |
Definition at line 81 of file RelationController.cxx.
|
overrideprivatevirtual |
Definition at line 162 of file RelationController.cxx.
References DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, getConnection(), LINK, loadData(), loadLayoutInformation(), m_bRelationsPossible, m_nThreadEvent, m_xTables, Application::PostUserEvent(), and weld::DialogController::run().
|
protected |
Definition at line 450 of file RelationController.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getConnection(), m_nThreadEvent, m_xTables, m_xWaitObject, MAX_THREADS, nCount, showError(), and dbtools::DatabaseMetaData::supportsThreads().
Referenced by impl_initialize().
|
protected |
Definition at line 506 of file RelationController.cxx.
References Exception, dbaccess::getDataSource(), dbaui::OJoinController::loadTableWindows(), and PROPERTY_LAYOUTINFORMATION().
Referenced by impl_initialize(), and reset().
void ORelationController::mergeData | ( | const TTableConnectionData & | _aConnectionData | ) |
Definition at line 404 of file RelationController.cxx.
References existsTable(), getMutex(), LINK, m_nThreadEvent, dbaui::OJoinController::m_vTableConnectionData, dbaui::OJoinController::m_vTableData, and Application::PostUserEvent().
|
overrideprivatevirtual |
Implements dbaui::OJoinController.
Definition at line 526 of file RelationController.cxx.
References getView(), dbaui::ODataView::initialize(), vcl::Window::Invalidate(), and loadLayoutInformation().
|
overrideprivatevirtual |
Implements dbaui::OJoinController.
Definition at line 219 of file RelationController.cxx.
References Application::CreateBuilder(), Execute(), ID_BROWSER_SAVEDOC, and RET_YES.
|
private |
Definition at line 38 of file RelationController.hxx.
Referenced by GetState(), and impl_initialize().
|
private |
Definition at line 37 of file RelationController.hxx.
Referenced by impl_initialize(), loadData(), and mergeData().
|
private |
Definition at line 35 of file RelationController.hxx.
Referenced by impl_initialize(), and loadData().
|
private |
Definition at line 36 of file RelationController.hxx.
Referenced by loadData().