24#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
25#include <com/sun/star/util/XNumberFormatter.hpp>
33#define COLUMN_DESCRIPTION 4
35#define FIELD_FIRST_VIRTUAL_COLUMN 5
37#define FIELD_PROPERTY_REQUIRED 5
38#define FIELD_PROPERTY_NUMTYPE 6
39#define FIELD_PROPERTY_AUTOINC 7
40#define FIELD_PROPERTY_DEFAULT 8
41#define FIELD_PROPERTY_TEXTLEN 9
42#define FIELD_PROPERTY_LENGTH 10
43#define FIELD_PROPERTY_SCALE 11
44#define FIELD_PROPERTY_BOOL_DEFAULT 12
45#define FIELD_PROPERTY_FORMAT 13
46#define FIELD_PROPERTY_COLUMNNAME 14
47#define FIELD_PROPERTY_TYPE 15
48#define FIELD_PROPERTY_AUTOINCREMENT 16
52 class OTableDesignHelpBar;
53 class OPropListBoxCtrl;
55 class OPropNumericEditCtrl;
56 class OFieldDescription;
57 class OPropColumnEditCtrl;
88 std::unique_ptr<OPropNumericEditCtrl>
m_xScale;
92 std::unique_ptr<OPropListBoxCtrl>
m_xType;
136 virtual css::uno::Reference< css::util::XNumberFormatter >
GetFormatter()
const = 0;
150 OUString
BoolStringUI(
const OUString& rPersistentString)
const;
164 void SetControlText( sal_uInt16 nControlId,
const OUString& rText );
174 virtual void cut()
override;
175 virtual void copy()
override;
176 virtual void paste()
override;
189 virtual css::uno::Reference< css::sdbc::XDatabaseMetaData>
getMetaData() = 0;
virtual bool isCopyAllowed() override
virtual void ActivateAggregate(EControlType eType)
weld::Widget * m_pActFocusWindow
void connect_focus_in(const Link< weld::Widget &, void > &rLink)
DECL_LINK(ChangeHdl, weld::ComboBox &, void)
bool HasChildPathFocus() const
virtual ~OFieldDescControl()
void SaveData(OFieldDescription *pFieldDescr)
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< weld::Label > m_xDefaultText
weld::Widget * m_pLastFocusWindow
std::unique_ptr< OPropListBoxCtrl > m_xType
DECL_LINK(FormatClickHdl, weld::Button &, void)
std::unique_ptr< OPropNumericEditCtrl > m_xLength
bool IsFocusInEditableWidget() const
DECL_LINK(HelpFocusOut, weld::Widget &, void)
std::unique_ptr< OPropNumericEditCtrl > CreateNumericControl(const OUString &rId, TranslateId pHelpId, short _nProperty, const OUString &_sHelpId)
OUString BoolStringPersistent(std::u16string_view rUIString) const
virtual void SetModified(bool bModified)
virtual void copy() override
OUString getControlDefault(const OFieldDescription *pFieldDescr, bool _bCheck=true) const
OFieldDescription * getCurrentFieldDescData()
virtual TOTypeInfoSP getTypeInfo(sal_Int32 _nPos)=0
DECL_LINK(OnControlFocusLost, weld::Widget &, void)
std::unique_ptr< OPropNumericEditCtrl > m_xScale
void SetReadOnly(bool bReadOnly)
Link< weld::Widget &, void > m_aControlFocusIn
virtual void paste() override
virtual void CellModified(sal_Int32 nRow, sal_uInt16 nColId)=0
virtual bool isAutoIncrementValueEnabled() const =0
void SetHelpId(const OUString &rId)
std::unique_ptr< weld::Label > m_xTypeText
void saveCurrentFieldDescData()
virtual css::uno::Reference< css::sdbc::XConnection > getConnection()=0
OFieldDescription * pActFieldDescr
virtual void cut() override
void setEditWidth(sal_Int32 _nWidth)
std::unique_ptr< OPropListBoxCtrl > m_xRequired
std::unique_ptr< weld::Label > m_xTextLenText
std::unique_ptr< weld::Label > m_xScaleText
std::unique_ptr< weld::Container > m_xContainer
DECL_LINK(OnControlFocusGot, weld::Widget &, void)
std::unique_ptr< weld::Label > m_xColumnNameText
virtual bool IsReadOnly()
virtual bool isPasteAllowed() override
virtual OUString getAutoIncrementValue() const =0
std::unique_ptr< weld::Label > m_xNumTypeText
std::unique_ptr< weld::Label > m_xAutoIncrementText
void DisplayData(OFieldDescription *pFieldDescr)
std::unique_ptr< OPropListBoxCtrl > m_xNumType
void UpdateFormatSample(OFieldDescription const *pFieldDescr)
OFieldDescControl(weld::Container *pPage, OTableDesignHelpBar *pHelpBar)
std::unique_ptr< OPropNumericEditCtrl > m_xTextLen
std::unique_ptr< weld::Label > m_xAutoIncrementValueText
TOTypeInfoSP m_pPreviousType
OUString BoolStringUI(const OUString &rPersistentString) const
std::unique_ptr< weld::Button > m_xFormat
void SetControlText(sal_uInt16 nControlId, const OUString &rText)
std::unique_ptr< weld::Label > m_xFormatText
virtual bool isCutAllowed() override
void setCurrentFieldDescData(OFieldDescription *_pDesc)
const OPropColumnEditCtrl * getColumnCtrl() const
bool isTextFormat(const OFieldDescription *_pFieldDescr, sal_uInt32 &_nFormatKey) const
std::unique_ptr< OPropListBoxCtrl > m_xBoolDefault
void implFocusLost(weld::Widget *_pWhich)
virtual const OTypeInfoMap * getTypeInfo() const =0
std::unique_ptr< weld::Label > m_xBoolDefaultText
std::unique_ptr< OPropColumnEditCtrl > m_xColumnName
void InitializeControl(weld::Widget *_pControl, const OUString &_sHelpId)
std::unique_ptr< OPropEditCtrl > m_xFormatSample
std::unique_ptr< weld::Label > m_xRequiredText
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData()=0
std::unique_ptr< OPropEditCtrl > m_xDefault
std::unique_ptr< OPropEditCtrl > m_xAutoIncrementValue
void Enable(bool bEnable)
std::unique_ptr< weld::Label > m_xLengthText
std::unique_ptr< OPropListBoxCtrl > m_xAutoIncrement
OUString CanonicalizeToControlDefault(const OFieldDescription *pFieldDescr, const OUString &rUserText) const
virtual void DeactivateAggregate(EControlType eType)
virtual css::lang::Locale GetLocale() const =0
virtual css::uno::Reference< css::util::XNumberFormatter > GetFormatter() const =0
OTableDesignHelpBar * m_pHelp
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
std::shared_ptr< OTypeInfo > TOTypeInfoSP