21#include <osl/diagnose.h>
22#include <com/sun/star/sdb/XQueriesSupplier.hpp>
23#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
24#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
25#include <com/sun/star/sdbcx/XKeysSupplier.hpp>
26#include <com/sun/star/container/XNameAccess.hpp>
27#include <com/sun/star/container/XIndexAccess.hpp>
28#include <com/sun/star/lang/XComponent.hpp>
41 ,OUString _sComposedName
45 ,m_aTableName(
std::move( sTableName ))
46 ,m_aWinName(
std::move( sWinName ))
47 ,m_sComposedName(
std::move(_sComposedName))
48 ,m_aPosition(
Point(-1,-1) )
63 if ( xComponent.is() )
79 ::osl::MutexGuard aGuard(
m_aMutex );
88 OSL_ENSURE(!
m_xTable.is(),
"We are already connected to a table!");
90 ::osl::MutexGuard aGuard(
m_aMutex );
94 bool bIsKnownQuery = _bAllowQueries && xQueries->hasByName(
m_sComposedName );
102 else if ( bIsKnownTable )
113 return xColumnsAsIndex.is() && ( xColumnsAsIndex->getCount() > 0 );
123 if ( xComponent.is() )
128 if ( xColumnsSups.is() )
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
css::uno::Reference< css::beans::XPropertySet > m_xTable
mutable::osl::Mutex m_aMutex
css::uno::Reference< css::container::XIndexAccess > m_xKeys
virtual void _disposing(const css::lang::EventObject &_rSource) override
css::uno::Reference< css::container::XNameAccess > m_xColumns
virtual ~OTableWindowData() override
bool init(const css::uno::Reference< css::sdbc::XConnection > &_xConnection, bool _bAllowQueries)
late constructor
void startComponentListening(const css::uno::Reference< css::lang::XComponent > &_rxComp)
void stopComponentListening(const css::uno::Reference< css::lang::XComponent > &_rxComp)