24#include <osl/diagnose.h>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/sdbc/SQLException.hpp>
40OQueryTableWindow::OQueryTableWindow(
vcl::Window* pParent,
const TTableWindowData::value_type& pTabWinData)
65 TTableWindowData::value_type pWinData =
GetData();
81 sAliasName = sAliasName.replaceAll(
"\"",
"");
85 m_xTitle->SetText( pWinData->GetWinName() );
104 _pUserData =
nullptr;
114 OSL_ENSURE(pInf !=
nullptr,
"OQueryTableWindow::OnEntryDoubleClicked : field doesn't have FieldInfo !");
118 aInfo->SetTabWindow(
this);
129 OSL_ENSURE(
m_xListBox !=
nullptr,
"OQueryTableWindow::ExistsField : doesn't have css::form::ListBox !");
130 OSL_ENSURE(rInfo.is(),
"OQueryTableWindow::ExistsField: invalid argument for OTableFieldDescRef!");
132 bool bExists =
false;
136 std::unique_ptr<weld::TreeIter> xEntry(rTreeView.
make_iterator());
145 if (bCase(strFieldName, rTreeView.
get_text(*xEntry)))
148 assert(pInf &&
"OQueryTableWindow::ExistsField : field doesn't have FieldInfo !");
150 rInfo->SetTabWindow(
this);
151 rInfo->SetField(strFieldName);
#define ID_BROWSER_QUERY_EXECUTE
OJoinController & getController() const
OJoinDesignView * getDesignView() const
sal_Int32 CountTableAlias(const OUString &rName, sal_Int32 &rMax)
how many tables with a certain alias do I already have?
virtual bool Init() override
bool ExistsField(const OUString &strFieldName, OTableFieldDescRef const &rInfo)
OUString m_strInitialAlias
virtual void OnEntryDoubleClicked(weld::TreeIter &rEntry) override
bool ExistsAVisitedConn() const
virtual void * createUserData(const css::uno::Reference< css::beans::XPropertySet > &_xColumn, bool _bPrimaryKey) override
creates user information that will be append at the ListBoxentry
virtual void deleteUserData(void *&_pUserData) override
delete the user data with the equal type as created within createUserData
OUString const & GetAliasName() const
void SetAliasName(const OUString &strNewAlias)
sal_Int32 GetDataType() const
void SetKey(ETableFieldType bKey)
void SetDataType(sal_Int32 eTyp)
OJoinDesignView * getDesignView()
OJoinTableView * getTableView()
const TTableWindowData::value_type & GetData() const
VclPtr< OTableWindowListBox > m_xListBox
css::uno::Reference< css::beans::XPropertySet > GetTable() const
OUString const & GetTableName() const
VclPtr< OTableWindowTitle > m_xTitle
void SetHelpId(const OUString &)
virtual std::unique_ptr< TreeIter > make_iterator(const TreeIter *pOrig=nullptr) const=0
virtual int get_iter_index_in_parent(const TreeIter &rIter) const=0
virtual OUString get_text(int row, int col=-1) const=0
virtual bool get_iter_first(TreeIter &rIter) const=0
virtual bool iter_next(TreeIter &rIter) const=0
virtual OUString get_id(int pos) const=0
constexpr OUStringLiteral HID_CTL_QRYDGNTAB
constexpr OUStringLiteral PROPERTY_TYPE(u"Type")
constexpr OUStringLiteral PROPERTY_NAME(u"Name")