LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dbaui::OColumnControlWindow Class Reference

#include <ColumnControlWindow.hxx>

Inheritance diagram for dbaui::OColumnControlWindow:
[legend]
Collaboration diagram for dbaui::OColumnControlWindow:
[legend]

Public Member Functions

 OColumnControlWindow (weld::Container *pParent, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
void setConnection (const css::uno::Reference< css::sdbc::XConnection > &_xCon)
 
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData () override
 
virtual css::uno::Reference< css::sdbc::XConnection > getConnection () override
 
virtual const OTypeInfoMapgetTypeInfo () const override
 
TOTypeInfoSP const & getDefaultTyp () const
 
- Public Member Functions inherited from dbaui::OFieldDescControl
 OFieldDescControl (weld::Container *pPage, OTableDesignHelpBar *pHelpBar)
 
virtual ~OFieldDescControl ()
 
void DisplayData (OFieldDescription *pFieldDescr)
 
void SaveData (OFieldDescription *pFieldDescr)
 
void SetControlText (sal_uInt16 nControlId, const OUString &rText)
 
void SetReadOnly (bool bReadOnly)
 
void Enable (bool bEnable)
 
void SetHelpId (const OUString &rId)
 
virtual bool isCutAllowed () override
 
virtual bool isCopyAllowed () override
 
virtual bool isPasteAllowed () override
 
virtual void cut () override
 
virtual void copy () override
 
virtual void paste () override
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void Init ()
 
void GrabFocus ()
 
bool HasChildPathFocus () const
 
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData ()=0
 
virtual css::uno::Reference< css::sdbc::XConnection > getConnection ()=0
 
OUString getControlDefault (const OFieldDescription *pFieldDescr, bool _bCheck=true) const
 
OUString CanonicalizeToControlDefault (const OFieldDescription *pFieldDescr, const OUString &rUserText) const
 
void setEditWidth (sal_Int32 _nWidth)
 
virtual bool isCutAllowed ()=0
 
virtual bool isCopyAllowed ()=0
 
virtual bool isPasteAllowed ()=0
 
virtual void copy ()=0
 
virtual void cut ()=0
 
virtual void paste ()=0
 

Protected Member Functions

virtual void ActivateAggregate (EControlType eType) override
 
virtual void DeactivateAggregate (EControlType eType) override
 
virtual css::lang::Locale GetLocale () const override
 
virtual css::uno::Reference< css::util::XNumberFormatter > GetFormatter () const override
 
virtual TOTypeInfoSP getTypeInfo (sal_Int32 _nPos) override
 
virtual bool isAutoIncrementValueEnabled () const override
 
virtual OUString getAutoIncrementValue () const override
 
virtual void CellModified (sal_Int32 nRow, sal_uInt16 nColId) override
 
- Protected Member Functions inherited from dbaui::OFieldDescControl
void saveCurrentFieldDescData ()
 
OFieldDescriptiongetCurrentFieldDescData ()
 
void setCurrentFieldDescData (OFieldDescription *_pDesc)
 
virtual void ActivateAggregate (EControlType eType)
 
virtual void DeactivateAggregate (EControlType eType)
 
virtual bool IsReadOnly ()
 
virtual css::uno::Reference< css::util::XNumberFormatter > GetFormatter () const =0
 
virtual css::lang::Locale GetLocale () const =0
 
virtual void CellModified (sal_Int32 nRow, sal_uInt16 nColId)=0
 
virtual void SetModified (bool bModified)
 
virtual TOTypeInfoSP getTypeInfo (sal_Int32 _nPos)=0
 
virtual const OTypeInfoMapgetTypeInfo () const =0
 
virtual bool isAutoIncrementValueEnabled () const =0
 
virtual OUString getAutoIncrementValue () const =0
 
OUString BoolStringPersistent (std::u16string_view rUIString) const
 
OUString BoolStringUI (const OUString &rPersistentString) const
 
const OPropColumnEditCtrlgetColumnCtrl () const
 
void implFocusLost (weld::Widget *_pWhich)
 
- Protected Member Functions inherited from dbaui::IClipboardTest
 ~IClipboardTest ()
 

Private Attributes

css::lang::Locale m_aLocale
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
 
OTypeInfoMap m_aDestTypeInfo
 
std::vector< OTypeInfoMap::iterator > m_aDestTypeInfoIndex
 
TOTypeInfoSP m_pTypeInfo
 
OUString m_sTypeNames
 
OUString m_sAutoIncrementValue
 
bool m_bAutoIncrementEnabled
 

Detailed Description

Definition at line 30 of file ColumnControlWindow.hxx.

Constructor & Destructor Documentation

◆ OColumnControlWindow()

OColumnControlWindow::OColumnControlWindow ( weld::Container pParent,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext 
)

Member Function Documentation

◆ ActivateAggregate()

void OColumnControlWindow::ActivateAggregate ( EControlType  eType)
overrideprotectedvirtual

◆ CellModified()

void OColumnControlWindow::CellModified ( sal_Int32  nRow,
sal_uInt16  nColId 
)
overrideprotectedvirtual

◆ DeactivateAggregate()

void OColumnControlWindow::DeactivateAggregate ( EControlType  eType)
overrideprotectedvirtual

◆ getAutoIncrementValue()

OUString OColumnControlWindow::getAutoIncrementValue ( ) const
overrideprotectedvirtual

Implements dbaui::OFieldDescControl.

Definition at line 167 of file ColumnControlWindow.cxx.

References m_sAutoIncrementValue.

◆ getConnection()

Reference< XConnection > OColumnControlWindow::getConnection ( )
overridevirtual

Implements dbaui::OFieldDescControl.

Definition at line 140 of file ColumnControlWindow.cxx.

References m_xConnection.

◆ getDefaultTyp()

TOTypeInfoSP const & OColumnControlWindow::getDefaultTyp ( ) const

Definition at line 172 of file ColumnControlWindow.cxx.

References m_pTypeInfo, m_sTypeNames, and dbaui::TYPE_OTHER.

Referenced by dbaui::OColumnPeer::setColumn().

◆ GetFormatter()

Reference< XNumberFormatter > OColumnControlWindow::GetFormatter ( ) const
overrideprotectedvirtual

Implements dbaui::OFieldDescControl.

Definition at line 103 of file ColumnControlWindow.cxx.

References Exception, m_xConnection, m_xContext, and m_xFormatter.

◆ GetLocale()

css::lang::Locale OColumnControlWindow::GetLocale ( ) const
overrideprotectedvirtual

Implements dbaui::OFieldDescControl.

Definition at line 98 of file ColumnControlWindow.cxx.

References m_aLocale.

◆ getMetaData()

Reference< XDatabaseMetaData > OColumnControlWindow::getMetaData ( )
overridevirtual

Implements dbaui::OFieldDescControl.

Definition at line 133 of file ColumnControlWindow.cxx.

References m_xConnection.

◆ getTypeInfo() [1/2]

virtual const OTypeInfoMap * dbaui::OColumnControlWindow::getTypeInfo ( ) const
overridevirtual

◆ getTypeInfo() [2/2]

virtual TOTypeInfoSP dbaui::OColumnControlWindow::getTypeInfo ( sal_Int32  _nPos)
overrideprotectedvirtual

◆ isAutoIncrementValueEnabled()

bool OColumnControlWindow::isAutoIncrementValueEnabled ( ) const
overrideprotectedvirtual

Implements dbaui::OFieldDescControl.

Definition at line 162 of file ColumnControlWindow.cxx.

References m_bAutoIncrementEnabled.

◆ setConnection()

void OColumnControlWindow::setConnection ( const css::uno::Reference< css::sdbc::XConnection > &  _xCon)

Member Data Documentation

◆ m_aDestTypeInfo

OTypeInfoMap dbaui::OColumnControlWindow::m_aDestTypeInfo
private

Definition at line 37 of file ColumnControlWindow.hxx.

Referenced by setConnection().

◆ m_aDestTypeInfoIndex

std::vector<OTypeInfoMap::iterator> dbaui::OColumnControlWindow::m_aDestTypeInfoIndex
private

Definition at line 38 of file ColumnControlWindow.hxx.

Referenced by setConnection().

◆ m_aLocale

css::lang::Locale dbaui::OColumnControlWindow::m_aLocale
private

Definition at line 32 of file ColumnControlWindow.hxx.

Referenced by GetLocale(), and OColumnControlWindow().

◆ m_bAutoIncrementEnabled

bool dbaui::OColumnControlWindow::m_bAutoIncrementEnabled
private

Definition at line 43 of file ColumnControlWindow.hxx.

Referenced by isAutoIncrementValueEnabled(), and setConnection().

◆ m_pTypeInfo

TOTypeInfoSP dbaui::OColumnControlWindow::m_pTypeInfo
mutableprivate

Definition at line 40 of file ColumnControlWindow.hxx.

Referenced by getDefaultTyp().

◆ m_sAutoIncrementValue

OUString dbaui::OColumnControlWindow::m_sAutoIncrementValue
private

Definition at line 42 of file ColumnControlWindow.hxx.

Referenced by getAutoIncrementValue(), and setConnection().

◆ m_sTypeNames

OUString dbaui::OColumnControlWindow::m_sTypeNames
private

Definition at line 41 of file ColumnControlWindow.hxx.

Referenced by getDefaultTyp(), and setConnection().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection> dbaui::OColumnControlWindow::m_xConnection
private

Definition at line 34 of file ColumnControlWindow.hxx.

Referenced by getConnection(), GetFormatter(), getMetaData(), and setConnection().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext> dbaui::OColumnControlWindow::m_xContext
private

Definition at line 33 of file ColumnControlWindow.hxx.

Referenced by GetFormatter().

◆ m_xFormatter

css::uno::Reference< css::util::XNumberFormatter > dbaui::OColumnControlWindow::m_xFormatter
mutableprivate

Definition at line 35 of file ColumnControlWindow.hxx.

Referenced by GetFormatter(), and setConnection().


The documentation for this class was generated from the following files: