22#include <osl/diagnose.h>
23#include <com/sun/star/sdbc/DataType.hpp>
32OTableFieldDesc::OTableFieldDesc()
33 :m_pTabWindow(nullptr)
40 ,m_nColumnId(sal_uInt16(-1))
48 , m_pTabWindow(nullptr)
54 :m_pTabWindow(nullptr)
61 ,m_nColumnId(sal_uInt16(-1))
119 struct SelectPropertyValueAsString
121 OUString operator()(
const PropertyValue& i_rPropValue )
const
124 OSL_VERIFY( i_rPropValue.Value >>= sValue );
148 if ( i_bIncludingCriteria )
156 SelectPropertyValueAsString()
172 o_rSettings.
put(
"OrderDir",
static_cast<sal_Int32
>(
m_eOrderDir) );
177 if ( !i_bIncludingCriteria )
185 auto pCriteria = aCriteria.getArray();
188 pCriteria[c].Name =
"Criterion_" + OUString::number( c );
189 pCriteria[c].Value <<= criteria;
193 o_rSettings.
put(
"Criteria", aCriteria );
bool put(const OUString &_rValueName, const VALUE_TYPE &_rValue)
VALUE_TYPE getOrDefault(const OUString &_rValueName, const VALUE_TYPE &_rDefault) const
sal_Int32 GetFieldIndex() const
const std::vector< OUString > & GetCriteria() const
std::vector< OUString > m_aCriteria
const OUString & GetAlias() const
vcl::Window * GetTabWindow() const
sal_Int32 GetFunctionType() const
void Save(::comphelper::NamedValueCollection &o_rSettings, const bool i_bIncludingCriteria)
ETableFieldType m_eFieldType
OUString m_aFieldAlias
column alias
void SetCriteria(sal_uInt16 nIdx, const OUString &rCrit)
const OUString & GetFieldAlias() const
virtual ~OTableFieldDesc() override
void Load(const css::beans::PropertyValue &i_rSettings, const bool i_bIncludingCriteria)
VclPtr< vcl::Window > m_pTabWindow
OTableFieldDesc & operator=(const OTableFieldDesc &_aField)
OUString m_aFunctionName
contains the function name (only if m_eFunctionType != FKT_NONE)
const OUString & GetFunction() const
EOrderDir GetOrderDir() const
ETableFieldType GetFieldType() const
sal_Int32 m_eFunctionType
const OUString & GetTable() const
void SetTable(const OUString &rT)
OUString m_aAliasName
table range
sal_Int32 GetDataType() const
void SetField(const OUString &rF)
OUString GetCriteria(sal_uInt16 nIdx) const
OUString m_aFieldName
column
sal_Int32 GetColWidth() const
const OUString & GetField() const