LibreOffice Module dbaccess (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dbaui::OJoinController Class Referenceabstract

#include <JoinController.hxx>

Inheritance diagram for dbaui::OJoinController:
[legend]
Collaboration diagram for dbaui::OJoinController:
[legend]

Public Member Functions

 OJoinController (const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
TTableWindowDatagetTableWindowData ()
 
TTableConnectionDatagetTableConnectionData ()
 
OAddTableDlggetAddTableDialog () 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 OJoinDesignViewgetJoinView ()
 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
SfxUndoManagerGetUndoManager () 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
 
AddTableDialogContextimpl_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< OAddTableDlgm_xAddTableDialog
 
std::unique_ptr< AddTableDialogContextm_pDialogContext
 
Point m_aMinimumTableViewSize
 

Detailed Description

Definition at line 40 of file JoinController.hxx.

Constructor & Destructor Documentation

◆ ~OJoinController()

dbaui::OJoinController::~OJoinController ( )
overrideprotectedvirtual

Definition at line 122 of file JoinController.cxx.

◆ OJoinController()

dbaui::OJoinController::OJoinController ( const css::uno::Reference< css::uno::XComponentContext > &  _rM)

Definition at line 117 of file JoinController.cxx.

Member Function Documentation

◆ allowQueries()

virtual bool dbaui::OJoinController::allowQueries ( ) const
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().

◆ allowViews()

virtual bool dbaui::OJoinController::allowViews ( ) const
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().

◆ clearOccurredError()

::dbtools::SQLExceptionInfo dbaui::OJoinController::clearOccurredError ( )
inline

just returns the internal member and clears it

Definition at line 132 of file JoinController.hxx.

References m_aExceptionInfo.

◆ createTableWindowData()

TTableWindowData::value_type dbaui::OJoinController::createTableWindowData ( const OUString &  _sComposedName,
const OUString &  _sTableName,
const OUString &  _sWindowName 
)
protected

◆ describeSupportedFeatures()

void dbaui::OJoinController::describeSupportedFeatures ( )
overrideprotectedvirtual

◆ disposing() [1/2]

void SAL_CALL dbaui::OSingleDocumentController::disposing ( )
overridevirtual

Reimplemented from dbaui::OSingleDocumentController.

Definition at line 46 of file singledoccontroller.cxx.

◆ disposing() [2/2]

void dbaui::OJoinController::disposing ( )
overridevirtual

◆ Execute()

void dbaui::OJoinController::Execute ( sal_uInt16  nId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overrideprotectedvirtual

◆ getAddTableDialog()

OAddTableDlg * dbaui::OJoinController::getAddTableDialog ( ) const
inline

Definition at line 82 of file JoinController.hxx.

References m_xAddTableDialog.

◆ getJoinView()

OJoinDesignView * dbaui::OJoinController::getJoinView ( )
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().

◆ GetState()

FeatureState dbaui::OJoinController::GetState ( sal_uInt16  nId) const
overrideprotectedvirtual

◆ getTableConnectionData()

TTableConnectionData & dbaui::OJoinController::getTableConnectionData ( )
inline

Definition at line 81 of file JoinController.hxx.

References m_vTableConnectionData.

◆ getTableWindowData()

TTableWindowData & dbaui::OJoinController::getTableWindowData ( )
inline

◆ impl_getDialogContext()

AddTableDialogContext & dbaui::OJoinController::impl_getDialogContext ( ) const
protected

Definition at line 200 of file JoinController.cxx.

References m_pDialogContext.

Referenced by GetState(), and runDialogAsync().

◆ impl_onModifyChanged()

void dbaui::OJoinController::impl_onModifyChanged ( )
overridevirtual

Reimplemented in dbaui::OQueryController.

Definition at line 154 of file JoinController.cxx.

Referenced by dbaui::OQueryController::impl_onModifyChanged().

◆ loadTableWindow()

void dbaui::OJoinController::loadTableWindow ( const ::comphelper::NamedValueCollection i_rTableWindowSettings)
protected

loads the information for one window.

Parameters
_rTableThe 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().

◆ loadTableWindows()

void dbaui::OJoinController::loadTableWindows ( const ::comphelper::NamedValueCollection i_rViewSettings)
protected

loads the information for the windows.

Parameters
i_rViewSettingsThe 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().

◆ reconnect()

void dbaui::OJoinController::reconnect ( bool  _bUI)
overridevirtual

Reimplemented in dbaui::OQueryController.

Definition at line 147 of file JoinController.cxx.

References m_xAddTableDialog.

Referenced by dbaui::OQueryController::reconnect().

◆ removeConnectionData()

void dbaui::OJoinController::removeConnectionData ( const TTableConnectionData::value_type &  _pData)

erase the data in the data vector

Parameters
_pDatathe data which should be erased

Definition at line 279 of file JoinController.cxx.

References m_vTableConnectionData.

◆ reset()

virtual void dbaui::OJoinController::reset ( )
protectedpure virtual

Implemented in dbaui::OQueryController, and dbaui::ORelationController.

Referenced by Execute().

◆ runDialogAsync()

void dbaui::OJoinController::runDialogAsync ( )

◆ saveModified()

virtual short dbaui::OJoinController::saveModified ( )
protectedpure virtual

Implemented in dbaui::OQueryController, and dbaui::ORelationController.

Referenced by Execute(), and suspend().

◆ saveTableWindows()

void dbaui::OJoinController::saveTableWindows ( ::comphelper::NamedValueCollection o_rViewSettings) const
protected

saves the TableWindows structure in a sequence of property values

Parameters
_rViewPropsContains 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().

◆ SaveTabWinPosSize()

void dbaui::OJoinController::SaveTabWinPosSize ( OTableWindow const *  pTabWin,
tools::Long  nOffsetX,
tools::Long  nOffsetY 
)
static

◆ SaveTabWinsPosSize()

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().

◆ setErrorOccurred()

void dbaui::OJoinController::setErrorOccurred ( const ::dbtools::SQLExceptionInfo _rInfo)
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.

◆ suspend()

sal_Bool SAL_CALL dbaui::OJoinController::suspend ( sal_Bool  bSuspend)
overridevirtual

Definition at line 296 of file JoinController.cxx.

References getMutex(), getView(), RET_CANCEL, and saveModified().

Member Data Documentation

◆ m_aExceptionInfo

::dbtools::SQLExceptionInfo dbaui::OJoinController::m_aExceptionInfo
protected

Definition at line 46 of file JoinController.hxx.

Referenced by clearOccurredError(), and setErrorOccurred().

◆ m_aMinimumTableViewSize

Point dbaui::OJoinController::m_aMinimumTableViewSize
protected

Definition at line 50 of file JoinController.hxx.

Referenced by loadTableWindow(), and loadTableWindows().

◆ m_pDialogContext

std::unique_ptr< AddTableDialogContext > dbaui::OJoinController::m_pDialogContext
protected

Definition at line 49 of file JoinController.hxx.

Referenced by impl_getDialogContext().

◆ m_vTableConnectionData

TTableConnectionData dbaui::OJoinController::m_vTableConnectionData
protected

◆ m_vTableData

TTableWindowData dbaui::OJoinController::m_vTableData
protected

◆ m_xAddTableDialog

std::shared_ptr<OAddTableDlg> dbaui::OJoinController::m_xAddTableDialog
protected

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