LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | List of all members
DbComboBox Class Reference

#include <gridcell.hxx>

Inheritance diagram for DbComboBox:
[legend]
Collaboration diagram for DbComboBox:
[legend]

Public Member Functions

 DbComboBox (DbGridColumn &_rColumn)
 
virtual void Init (vcl::Window &rParent, const css::uno::Reference< css::sdbc::XRowSet > &xCursor) override
 
virtual OUString GetFormatText (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, Color **ppColor=nullptr) override
 
virtual void UpdateFromField (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) override
 
virtual ::svt::CellControllerRef CreateController () const override
 
void SetList (const css::uno::Any &rItems)
 
- Public Member Functions inherited from DbCellControl
 DbCellControl (DbGridColumn &_rColumn)
 
virtual ~DbCellControl () override
 
vcl::WindowGetWindow () const
 
bool isAlignedController () const
 
void AlignControl (sal_Int16 nAlignment)
 
void SetTextLineColor ()
 
void SetTextLineColor (const Color &_rColor)
 
bool Commit ()
 
virtual void Update ()
 
virtual void PaintFieldToCell (OutputDevice &rDev, const tools::Rectangle &rRect, const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter)
 
virtual void PaintCell (OutputDevice &_rDev, const tools::Rectangle &_rRect)
 
void ImplInitWindow (vcl::Window const &rParent, const InitWindowFacet _eInitWhat)
 
double GetValue (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) const
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener
 OPropertyChangeListener (::osl::Mutex &_rMutex)
 
virtual ~OPropertyChangeListener ()
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 

Protected Member Functions

virtual bool commitControl () override
 commits the content of the control (e.g. More...
 
virtual void updateFromModel (css::uno::Reference< css::beans::XPropertySet > _rxModel) override
 updates the current content of the control (e.g. More...
 
virtual void implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel) override
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &evt) override
 
- Protected Member Functions inherited from DbCellControl
const css::uno::Reference< css::sdbc::XRowSet > & getCursor () const
 
bool isTransparent () const
 
void setTransparent (bool _bSet)
 
void setAlignedController (bool _bAlign)
 
bool isValuePropertyLocked () const
 determined whether or not the value property is locked More...
 
void lockValueProperty ()
 locks the listening at the value property. More...
 
void unlockValueProperty ()
 unlocks the listening at the value property More...
 
void doPropertyListening (const OUString &_rPropertyName)
 
void implValuePropertyChanged ()
 
void invalidatedController ()
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 

Additional Inherited Members

- Protected Attributes inherited from DbCellControl
DbGridColumnm_rColumn
 
VclPtr< vcl::Windowm_pPainter
 
VclPtr< vcl::Windowm_pWindow
 
- Protected Attributes inherited from FmMutexHelper
::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 455 of file gridcell.hxx.

Constructor & Destructor Documentation

DbComboBox::DbComboBox ( DbGridColumn _rColumn)

Member Function Documentation

void DbComboBox::_propertyChanged ( const css::beans::PropertyChangeEvent &  evt)
overrideprotectedvirtual

Reimplemented from DbCellControl.

Definition at line 2406 of file gridcell.cxx.

References DbCellControl::_propertyChanged(), FM_PROP_STRINGITEMLIST, and SetList().

bool DbComboBox::commitControl ( )
overrideprotectedvirtual

commits the content of the control (e.g.

the text of an edit field) into the column model (e.g. the "Text" property of the model).

To be overwritten in derived classes.

See also
updateFromModel

Implements DbCellControl.

Definition at line 2504 of file gridcell.cxx.

References FM_PROP_TEXT, DbGridColumn::getModel(), vcl::Window::GetText(), DbCellControl::m_pWindow, DbCellControl::m_rColumn, and makeAny().

CellControllerRef DbComboBox::CreateController ( ) const
overridevirtual

Implements DbCellControl.

Definition at line 2471 of file gridcell.cxx.

References VclPtr< vcl::Window >::get(), and DbCellControl::m_pWindow.

OUString DbComboBox::GetFormatText ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter,
Color **  ppColor = nullptr 
)
overridevirtual

Implements DbCellControl.

Definition at line 2477 of file gridcell.cxx.

References dbtools::FormattedColumnValue::getFormattedValue().

Referenced by UpdateFromField().

void DbComboBox::implAdjustGenericFieldSetting ( const css::uno::Reference< css::beans::XPropertySet > &  _rxModel)
overrideprotectedvirtual

Reimplemented from DbCellControl.

Definition at line 2436 of file gridcell.cxx.

References DBG_ASSERT, FM_PROP_LINECOUNT, VclPtr< vcl::Window >::get(), getINT16(), and DbCellControl::m_pWindow.

Referenced by Init().

void DbComboBox::Init ( vcl::Window rParent,
const css::uno::Reference< css::sdbc::XRowSet > &  xCursor 
)
overridevirtual
void DbComboBox::SetList ( const css::uno::Any &  rItems)
void DbComboBox::UpdateFromField ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)
overridevirtual

Implements DbCellControl.

Definition at line 2486 of file gridcell.cxx.

References GetFormatText(), DbCellControl::m_pWindow, and vcl::Window::SetText().

void DbComboBox::updateFromModel ( css::uno::Reference< css::beans::XPropertySet >  _rxModel)
overrideprotectedvirtual

updates the current content of the control (e.g.

the text of an edit field) from the column model (e.g. the "Text" property of the model).

To be overwritten in derived classes.

NULL != _rxModel NULL != m_pWindow

See also
commitControl

Implements DbCellControl.

Definition at line 2492 of file gridcell.cxx.

References FM_PROP_TEXT, VclPtr< vcl::Window >::get(), DbCellControl::m_pWindow, SELECTION_MAX, and SELECTION_MIN.


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