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

#include <TableWindowData.hxx>

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

Public Member Functions

 OTableWindowData (const css::uno::Reference< css::beans::XPropertySet > &_xTable, OUString _sComposedName, OUString strTableName, OUString sWinName)
 
virtual ~OTableWindowData () override
 
bool init (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, bool _bAllowQueries)
 late constructor More...
 
const OUString & GetComposedName () const
 
const OUString & GetTableName () const
 
const OUString & GetWinName () const
 
const PointGetPosition () const
 
const SizeGetSize () const
 
bool IsShowAll () const
 
bool isQuery () const
 
bool isValid () const
 
bool HasPosition () const
 
bool HasSize () const
 
void SetWinName (const OUString &rWinName)
 
void SetPosition (const Point &rPos)
 
void SetSize (const Size &rSize)
 
void ShowAll (bool bAll)
 
css::uno::Reference< css::beans::XPropertySetgetTable () const
 
css::uno::Reference< css::container::XIndexAccess > getKeys () const
 
css::uno::Reference< css::container::XNameAccess > getColumns () const
 
virtual void _disposing (const css::lang::EventObject &_rSource) override
 

Private Member Functions

void listen ()
 

Private Attributes

mutable::osl::Mutex m_aMutex
 
css::uno::Reference< css::beans::XPropertySetm_xTable
 
css::uno::Reference< css::container::XIndexAccess > m_xKeys
 
css::uno::Reference< css::container::XNameAccess > m_xColumns
 
OUString m_aTableName
 
OUString m_aWinName
 
OUString m_sComposedName
 
Point m_aPosition
 
Size m_aSize
 
bool m_bShowAll
 
bool m_bIsQuery
 
bool m_bIsValid
 

Additional Inherited Members

- Protected Member Functions inherited from utl::OEventListenerAdapter
 OEventListenerAdapter ()
 
virtual ~OEventListenerAdapter ()
 
void startComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopAllComponentListening ()
 
virtual void _disposing (const css::lang::EventObject &_rSource)=0
 

Detailed Description

Definition at line 32 of file TableWindowData.hxx.

Constructor & Destructor Documentation

◆ OTableWindowData()

OTableWindowData::OTableWindowData ( const css::uno::Reference< css::beans::XPropertySet > &  _xTable,
OUString  _sComposedName,
OUString  strTableName,
OUString  sWinName 
)
explicit

Definition at line 40 of file TableWindowData.cxx.

References listen(), m_aSize, m_aTableName, and m_aWinName.

◆ ~OTableWindowData()

OTableWindowData::~OTableWindowData ( )
overridevirtual

Member Function Documentation

◆ _disposing()

void OTableWindowData::_disposing ( const css::lang::EventObject &  _rSource)
overridevirtual

Implements utl::OEventListenerAdapter.

Definition at line 77 of file TableWindowData.cxx.

References m_aMutex, m_xColumns, m_xKeys, and m_xTable.

◆ getColumns()

css::uno::Reference< css::container::XNameAccess > dbaui::OTableWindowData::getColumns ( ) const
inline

Definition at line 86 of file TableWindowData.hxx.

References m_aMutex, and m_xColumns.

◆ GetComposedName()

const OUString & dbaui::OTableWindowData::GetComposedName ( ) const
inline

Definition at line 68 of file TableWindowData.hxx.

References m_sComposedName.

◆ getKeys()

css::uno::Reference< css::container::XIndexAccess > dbaui::OTableWindowData::getKeys ( ) const
inline

Definition at line 85 of file TableWindowData.hxx.

References m_aMutex, and m_xKeys.

◆ GetPosition()

const Point & dbaui::OTableWindowData::GetPosition ( ) const
inline

Definition at line 71 of file TableWindowData.hxx.

References m_aPosition.

◆ GetSize()

const Size & dbaui::OTableWindowData::GetSize ( ) const
inline

Definition at line 72 of file TableWindowData.hxx.

References m_aSize.

◆ getTable()

css::uno::Reference< css::beans::XPropertySet > dbaui::OTableWindowData::getTable ( ) const
inline

Definition at line 84 of file TableWindowData.hxx.

References m_aMutex, and m_xTable.

◆ GetTableName()

const OUString & dbaui::OTableWindowData::GetTableName ( ) const
inline

Definition at line 69 of file TableWindowData.hxx.

References m_aTableName.

◆ GetWinName()

const OUString & dbaui::OTableWindowData::GetWinName ( ) const
inline

Definition at line 70 of file TableWindowData.hxx.

References m_aWinName.

Referenced by dbaui::OQueryTableWindowData::GetAliasName().

◆ HasPosition()

bool OTableWindowData::HasPosition ( ) const

Definition at line 67 of file TableWindowData.cxx.

References m_aPosition, Point::X(), and Point::Y().

◆ HasSize()

bool OTableWindowData::HasSize ( ) const

Definition at line 72 of file TableWindowData.cxx.

References Size::Height(), m_aSize, and Size::Width().

◆ init()

bool OTableWindowData::init ( const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
bool  _bAllowQueries 
)

late constructor

Parameters
_xConnection
_bAllowQuerieswhen true, queries are allowed
Returns
false if the table was unaccessible otherwise true

Definition at line 86 of file TableWindowData.cxx.

References listen(), m_aMutex, m_bIsQuery, m_bIsValid, m_sComposedName, m_xColumns, and m_xTable.

◆ isQuery()

bool dbaui::OTableWindowData::isQuery ( ) const
inline

Definition at line 74 of file TableWindowData.hxx.

References m_bIsQuery.

◆ IsShowAll()

bool dbaui::OTableWindowData::IsShowAll ( ) const
inline

Definition at line 73 of file TableWindowData.hxx.

References m_bShowAll.

◆ isValid()

bool dbaui::OTableWindowData::isValid ( ) const
inline

Definition at line 75 of file TableWindowData.hxx.

References m_bIsValid.

◆ listen()

void OTableWindowData::listen ( )
private

◆ SetPosition()

void dbaui::OTableWindowData::SetPosition ( const Point rPos)
inline

Definition at line 80 of file TableWindowData.hxx.

References m_aPosition.

◆ SetSize()

void dbaui::OTableWindowData::SetSize ( const Size rSize)
inline

Definition at line 81 of file TableWindowData.hxx.

References m_aSize.

◆ SetWinName()

void dbaui::OTableWindowData::SetWinName ( const OUString &  rWinName)
inline

Definition at line 79 of file TableWindowData.hxx.

References m_aWinName.

Referenced by dbaui::OQueryTableWindowData::SetAliasName().

◆ ShowAll()

void dbaui::OTableWindowData::ShowAll ( bool  bAll)
inline

Definition at line 82 of file TableWindowData.hxx.

References m_bShowAll.

Member Data Documentation

◆ m_aMutex

mutable::osl::Mutex dbaui::OTableWindowData::m_aMutex
private

Definition at line 34 of file TableWindowData.hxx.

Referenced by _disposing(), getColumns(), getKeys(), getTable(), and init().

◆ m_aPosition

Point dbaui::OTableWindowData::m_aPosition
private

Definition at line 46 of file TableWindowData.hxx.

Referenced by GetPosition(), HasPosition(), and SetPosition().

◆ m_aSize

Size dbaui::OTableWindowData::m_aSize
private

Definition at line 47 of file TableWindowData.hxx.

Referenced by GetSize(), HasSize(), and SetSize().

◆ m_aTableName

OUString dbaui::OTableWindowData::m_aTableName
private

Definition at line 43 of file TableWindowData.hxx.

Referenced by GetTableName(), and OTableWindowData().

◆ m_aWinName

OUString dbaui::OTableWindowData::m_aWinName
private

Definition at line 44 of file TableWindowData.hxx.

Referenced by GetWinName(), OTableWindowData(), and SetWinName().

◆ m_bIsQuery

bool dbaui::OTableWindowData::m_bIsQuery
private

Definition at line 49 of file TableWindowData.hxx.

Referenced by init(), and isQuery().

◆ m_bIsValid

bool dbaui::OTableWindowData::m_bIsValid
private

Definition at line 50 of file TableWindowData.hxx.

Referenced by init(), and isValid().

◆ m_bShowAll

bool dbaui::OTableWindowData::m_bShowAll
private

Definition at line 48 of file TableWindowData.hxx.

Referenced by IsShowAll(), and ShowAll().

◆ m_sComposedName

OUString dbaui::OTableWindowData::m_sComposedName
private

Definition at line 45 of file TableWindowData.hxx.

Referenced by GetComposedName(), and init().

◆ m_xColumns

css::uno::Reference< css::container::XNameAccess > dbaui::OTableWindowData::m_xColumns
private

Definition at line 41 of file TableWindowData.hxx.

Referenced by _disposing(), getColumns(), init(), and listen().

◆ m_xKeys

css::uno::Reference< css::container::XIndexAccess> dbaui::OTableWindowData::m_xKeys
private

Definition at line 40 of file TableWindowData.hxx.

Referenced by _disposing(), getKeys(), and listen().

◆ m_xTable

css::uno::Reference< css::beans::XPropertySet > dbaui::OTableWindowData::m_xTable
private

Definition at line 39 of file TableWindowData.hxx.

Referenced by _disposing(), getTable(), init(), listen(), and ~OTableWindowData().


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