25#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
26#include <com/sun/star/sdbc/XConnection.hpp>
27#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp>
36 css::uno::Reference< css::sdbc::XConnection >
38 std::unique_ptr< ImageProvider >
50 typedef std::vector< TTableViewName >
TNames;
65 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
76 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
77 const css::uno::Sequence< OUString>& _rTables,
78 const css::uno::Sequence< OUString>& _rViews
83 std::unique_ptr<weld::TreeIter>
addedTable(
const OUString& _rName );
117 const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _rxMeta,
118 const OUString& _rTableName,
119 bool _bCheckName =
true
122 void implOnNewConnection(
const css::uno::Reference< css::sdbc::XConnection >& _rxConnection );
135 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
141 css::sdb::application::NamedDatabaseObject
std::vector< TTableViewName > TNames
std::unique_ptr< weld::TreeIter > addedTable(const OUString &_rName)
to be used if a foreign instance added a table
bool impl_getAndAssertMetaData(css::uno::Reference< css::sdbc::XDatabaseMetaData > &_out_rMetaData) const
std::unique_ptr< weld::TreeIter > getEntryByQualifiedName(const OUString &rName)
void implEmphasize(const weld::TreeIter &rEntry, bool _bChecked, bool _bUpdateDescendants=true, bool _bUpdateAncestors=true)
void checkWildcard(const weld::TreeIter &rEntry)
does a wildcard check of the given entry
OUString getQualifiedTableName(const weld::TreeIter &rEntry) const
returns the fully qualified name of a table entry
void UpdateTableList(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
fill the table list with the tables belonging to the connection described by the parameters
OTableTreeListBox(std::unique_ptr< weld::TreeView > xTreeView, bool bShowToggles)
void removedTable(const OUString &_rName)
to be used if a foreign instance removed a table
css::sdb::application::NamedDatabaseObject describeObject(const weld::TreeIter &rEntry)
returns a NamedDatabaseObject record which describes the given entry
void UpdateTableList(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Sequence< OUString > &_rTables, const css::uno::Sequence< OUString > &_rViews)
fill the table list with the tables and views determined by the two given containers.
bool haveVirtualRoot() const
bool isWildcardChecked(const weld::TreeIter &rEntry)
determine if the given entry is 'wildcard checked'
void checkedButton_noBroadcast(const weld::TreeIter &rEntry)
css::uno::Reference< css::sdbc::XConnection > m_xConnection
std::unique_ptr< weld::TreeIter > getAllObjectsEntry() const
void UpdateTableList(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const TNames &_rTables)
fill the table list with the tables and views determined by the two given containers
void SuppressEmptyFolders()
void implOnNewConnection(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
std::unique_ptr< weld::TreeIter > implAddEntry(const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_rxMeta, const OUString &_rTableName, bool _bCheckName=true)
adds the given entry to our list @precond our image provider must already have been reset to the conn...
std::unique_ptr< ImageProvider > m_xImageProvider
std::pair< OUString, bool > TTableViewName
TriState implDetermineState(const weld::TreeIter &rEntry)
bool isFolderEntry(const weld::TreeIter &rEntry) const
determines whether the given entry denotes a tables folder