LibreOffice Module dbaccess (master) 1
|
#include <JoinController.hxx>
Public Member Functions | |
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 |
Static Public Member Functions | |
static void | SaveTabWinPosSize (OTableWindow const *pTabWin, tools::Long nOffsetX, tools::Long nOffsetY) |
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 |
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 |
Protected Attributes | |
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 40 of file JoinController.hxx.
|
overrideprotectedvirtual |
Definition at line 122 of file JoinController.cxx.
dbaui::OJoinController::OJoinController | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rM | ) |
Definition at line 117 of file JoinController.cxx.
|
pure virtual |
determines whether or not it's allowed for queries to participate in the game
Implemented in dbaui::OQueryController, and dbaui::ORelationController.
Referenced by dbaui::AddTableDialogContext::allowQueries().
|
pure virtual |
determines whether or not it's allowed for database views to participate in the game
Implemented in dbaui::OQueryController, and dbaui::ORelationController.
Referenced by dbaui::AddTableDialogContext::allowViews().
|
inline |
just returns the internal member and clears it
Definition at line 132 of file JoinController.hxx.
References m_aExceptionInfo.
|
protected |
Definition at line 394 of file JoinController.cxx.
References dbaui::OJoinTableView::createTableWindowData(), getJoinView(), and dbaui::OJoinDesignView::getTableView().
Referenced by loadTableWindow().
|
overrideprotectedvirtual |
Reimplemented in dbaui::OQueryController, and dbaui::ORelationController.
Definition at line 284 of file JoinController.cxx.
References ID_BROWSER_ADDTABLE, ID_BROWSER_EDITDOC, ID_BROWSER_REDO, ID_BROWSER_SAVEDOC, and ID_BROWSER_UNDO.
Referenced by dbaui::OQueryController::describeSupportedFeatures(), and dbaui::ORelationController::describeSupportedFeatures().
|
overridevirtual |
Reimplemented from dbaui::OSingleDocumentController.
Definition at line 46 of file singledoccontroller.cxx.
|
overridevirtual |
Reimplemented from dbaui::OSingleDocumentController.
Reimplemented in dbaui::OQueryController.
Definition at line 131 of file JoinController.cxx.
References dbaui::OSingleDocumentController::disposing(), m_vTableConnectionData, m_vTableData, m_xAddTableDialog, and RET_CLOSE.
Referenced by dbaui::OQueryController::disposing().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OSingleDocumentController.
Reimplemented in dbaui::OQueryController, and dbaui::ORelationController.
Definition at line 211 of file JoinController.cxx.
References dbaui::OSingleDocumentController::Execute(), getJoinView(), getView(), ID_BROWSER_ADDTABLE, ID_BROWSER_EDITDOC, m_xAddTableDialog, reset(), RET_CANCEL, RET_CLOSE, RET_NO, runDialogAsync(), saveModified(), and dbaui::OJoinDesignView::setReadOnly().
Referenced by dbaui::OQueryController::Execute(), and dbaui::ORelationController::Execute().
|
inline |
Definition at line 82 of file JoinController.hxx.
References m_xAddTableDialog.
|
virtual |
provides access to the OJoinDesignView belonging to the controller, which might or might not be the direct view (getView)
Reimplemented in dbaui::OQueryController.
Definition at line 126 of file JoinController.cxx.
References getView().
Referenced by dbaui::AddTableDialogContext::allowAddition(), createTableWindowData(), Execute(), GetState(), dbaui::AddTableDialogContext::getTableView(), and loadTableWindows().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OSingleDocumentController.
Reimplemented in dbaui::OQueryController, and dbaui::ORelationController.
Definition at line 175 of file JoinController.cxx.
References dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, dbaui::OAddTableDlg::getDialogTitleForContext(), getJoinView(), dbaui::OSingleDocumentController::GetState(), dbaui::OJoinDesignView::getTableView(), getView(), ID_BROWSER_ADDTABLE, ID_BROWSER_EDITDOC, impl_getDialogContext(), dbaui::OJoinTableView::IsAddAllowed(), m_xAddTableDialog, and dbaui::FeatureState::sTitle.
Referenced by dbaui::OQueryController::GetState(), and dbaui::ORelationController::GetState().
|
inline |
Definition at line 81 of file JoinController.hxx.
References m_vTableConnectionData.
|
inline |
Definition at line 80 of file JoinController.hxx.
References m_vTableData.
Referenced by dbaui::OQueryTableView::AddTabWin(), and dbaui::OJoinTableView::RemoveTabWin().
|
protected |
Definition at line 200 of file JoinController.cxx.
References m_pDialogContext.
Referenced by GetState(), and runDialogAsync().
|
overridevirtual |
Reimplemented in dbaui::OQueryController.
Definition at line 154 of file JoinController.cxx.
Referenced by dbaui::OQueryController::impl_onModifyChanged().
|
protected |
loads the information for one window.
_rTable | The properties which comes from the layout information. |
Definition at line 337 of file JoinController.cxx.
References createTableWindowData(), m_aMinimumTableViewSize, m_vTableData, pData, sComposedName, Point::setX(), Point::setY(), Point::X(), and Point::Y().
Referenced by loadTableWindows().
|
protected |
loads the information for the windows.
i_rViewSettings | The properties which comes from the layout information. |
Definition at line 315 of file JoinController.cxx.
References getJoinView(), dbaui::OJoinDesignView::getScrollHelper(), loadTableWindow(), m_aMinimumTableViewSize, m_vTableData, and dbaui::OScrollWindowHelper::resetRange().
Referenced by dbaui::ORelationController::loadLayoutInformation(), and dbaui::OQueryController::loadViewSettings().
|
overridevirtual |
Reimplemented in dbaui::OQueryController.
Definition at line 147 of file JoinController.cxx.
References m_xAddTableDialog.
Referenced by dbaui::OQueryController::reconnect().
void dbaui::OJoinController::removeConnectionData | ( | const TTableConnectionData::value_type & | _pData | ) |
erase the data in the data vector
_pData | the data which should be erased |
Definition at line 279 of file JoinController.cxx.
References m_vTableConnectionData.
|
protectedpure virtual |
Implemented in dbaui::OQueryController, and dbaui::ORelationController.
Referenced by Execute().
void dbaui::OJoinController::runDialogAsync | ( | ) |
Definition at line 252 of file JoinController.cxx.
References impl_getDialogContext(), m_xAddTableDialog, and weld::DialogController::runAsync().
Referenced by Execute().
|
protectedpure virtual |
Implemented in dbaui::OQueryController, and dbaui::ORelationController.
|
protected |
saves the TableWindows structure in a sequence of property values
_rViewProps | Contains the new sequence. |
Definition at line 367 of file JoinController.cxx.
References comphelper::NamedValueCollection::getPropertyValues(), i, m_vTableData, and comphelper::NamedValueCollection::put().
Referenced by dbaui::ORelationController::Execute(), and dbaui::OQueryController::saveViewSettings().
|
static |
Definition at line 160 of file JoinController.cxx.
References Point::AdjustX(), Point::AdjustY(), dbaui::OTableWindow::GetData(), vcl::Window::GetPosPixel(), vcl::Window::GetSizePixel(), and pData.
Referenced by SaveTabWinsPosSize(), and dbaui::OJoinDesignView::SaveTabWinUIConfig().
void dbaui::OJoinController::SaveTabWinsPosSize | ( | OJoinTableView::OTableWindowMap * | pTabWinList, |
tools::Long | nOffsetX, | ||
tools::Long | nOffsetY | ||
) |
Definition at line 266 of file JoinController.cxx.
References m_vTableData, and SaveTabWinPosSize().
Referenced by dbaui::OQueryDesignView::SaveUIConfig().
|
inline |
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
Definition at line 125 of file JoinController.hxx.
References m_aExceptionInfo.
Definition at line 296 of file JoinController.cxx.
References getMutex(), getView(), RET_CANCEL, and saveModified().
|
protected |
Definition at line 46 of file JoinController.hxx.
Referenced by clearOccurredError(), and setErrorOccurred().
|
protected |
Definition at line 50 of file JoinController.hxx.
Referenced by loadTableWindow(), and loadTableWindows().
|
protected |
Definition at line 49 of file JoinController.hxx.
Referenced by impl_getDialogContext().
|
protected |
Definition at line 43 of file JoinController.hxx.
Referenced by disposing(), dbaui::OQueryController::Execute(), getTableConnectionData(), dbaui::ORelationController::mergeData(), and removeConnectionData().
|
protected |
Definition at line 44 of file JoinController.hxx.
Referenced by disposing(), dbaui::ORelationController::existsTable(), dbaui::OQueryController::GetState(), dbaui::ORelationController::GetState(), getTableWindowData(), loadTableWindow(), loadTableWindows(), dbaui::ORelationController::mergeData(), dbaui::OQueryController::saveModified(), saveTableWindows(), and SaveTabWinsPosSize().
|
protected |
Definition at line 48 of file JoinController.hxx.
Referenced by disposing(), Execute(), getAddTableDialog(), GetState(), reconnect(), and runDialogAsync().