LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::ORelationController Class Reference

#include <RelationController.hxx>

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

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

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
 
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
 

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::WaitObjectm_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< OAddTableDlgm_xAddTableDialog
 
std::unique_ptr< AddTableDialogContextm_pDialogContext
 
Point m_aMinimumTableViewSize
 

Detailed Description

Definition at line 33 of file RelationController.hxx.

Constructor & Destructor Documentation

◆ ORelationController()

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

Definition at line 86 of file RelationController.cxx.

◆ ~ORelationController()

ORelationController::~ORelationController ( )
overridevirtual

Definition at line 94 of file RelationController.cxx.

Member Function Documentation

◆ allowQueries()

bool ORelationController::allowQueries ( ) const
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.

◆ allowViews()

bool ORelationController::allowViews ( ) const
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.

◆ Construct()

bool ORelationController::Construct ( vcl::Window pParent)
overridevirtual

Definition at line 212 of file RelationController.cxx.

◆ DECL_LINK()

dbaui::ORelationController::DECL_LINK ( OnThreadFinished  ,
void *  ,
void   
)
private

◆ describeSupportedFeatures()

void ORelationController::describeSupportedFeatures ( )
overrideprotectedvirtual

◆ Execute()

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

◆ existsTable()

TTableWindowData::value_type ORelationController::existsTable ( std::u16string_view  _rComposedTableName) const
protected

Definition at line 495 of file RelationController.cxx.

References dbaui::OJoinController::m_vTableData.

Referenced by mergeData().

◆ getImplementationName()

OUString SAL_CALL ORelationController::getImplementationName ( )
overridevirtual

Definition at line 76 of file RelationController.cxx.

◆ getPrivateTitle()

OUString ORelationController::getPrivateTitle ( ) const
overrideprivatevirtual

◆ GetState()

FeatureState ORelationController::GetState ( sal_uInt16  nId) const
overrideprotectedvirtual

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL ORelationController::getSupportedServiceNames ( )
overridevirtual

Definition at line 81 of file RelationController.cxx.

◆ impl_initialize()

void ORelationController::impl_initialize ( )
overrideprivatevirtual

◆ loadData()

void ORelationController::loadData ( )
protected

◆ loadLayoutInformation()

void ORelationController::loadLayoutInformation ( )
protected

◆ mergeData()

void ORelationController::mergeData ( const TTableConnectionData _aConnectionData)

◆ reset()

void ORelationController::reset ( )
overrideprivatevirtual

◆ saveModified()

short ORelationController::saveModified ( )
overrideprivatevirtual

Member Data Documentation

◆ m_bRelationsPossible

bool dbaui::ORelationController::m_bRelationsPossible
private

Definition at line 38 of file RelationController.hxx.

Referenced by GetState(), and impl_initialize().

◆ m_nThreadEvent

sal_uLong dbaui::ORelationController::m_nThreadEvent
private

Definition at line 37 of file RelationController.hxx.

Referenced by impl_initialize(), loadData(), and mergeData().

◆ m_xTables

css::uno::Reference< css::container::XNameAccess > dbaui::ORelationController::m_xTables
private

Definition at line 35 of file RelationController.hxx.

Referenced by impl_initialize(), and loadData().

◆ m_xWaitObject

std::unique_ptr<weld::WaitObject> dbaui::ORelationController::m_xWaitObject
private

Definition at line 36 of file RelationController.hxx.

Referenced by loadData().


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