LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DbFilterField Class Referencefinal

#include <gridcell.hxx>

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

Public Member Functions

 DbFilterField (const css::uno::Reference< css::uno::XComponentContext > &rxContext, DbGridColumn &_rColumn)
 
virtual ~DbFilterField () override
 
virtual void Init (vcl::Window &rParent, const css::uno::Reference< css::sdbc::XRowSet > &xCursor) override
 
virtual ::svt::CellControllerRef CreateController () const override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect) override
 
virtual void Update () 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
 
const OUString & GetText () const
 
void SetText (const OUString &rText)
 
void SetCommitHdl (const Link< DbFilterField &, void > &rLink)
 
- 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 PaintFieldToCell (OutputDevice &rDev, const tools::Rectangle &rRect, const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter)
 
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)
 

Private 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...
 
void SetList (const css::uno::Any &rItems, bool bComboBox)
 
void CreateControl (vcl::Window *pParent, const css::uno::Reference< css::beans::XPropertySet > &xModel)
 
 DECL_LINK (OnClick, VclPtr< CheckBox >, void)
 

Private Attributes

css::uno::Sequence< OUString > m_aValueList
 
OUString m_aText
 
Link< DbFilterField &, voidm_aCommitLink
 
sal_Int16 m_nControlClass
 
bool m_bFilterList: 1
 
bool m_bFilterListFilled: 1
 

Additional Inherited Members

- 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)
 
virtual void implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel)
 
void implValuePropertyChanged ()
 
void invalidatedController ()
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &evt) override
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 
- Protected Member Functions inherited from svxform::OSQLParserClient
 OSQLParserClient (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
std::unique_ptr< ::connectivity::OSQLParseNodepredicateTree (OUString &_rErrorMessage, const OUString &_rStatement, const css::uno::Reference< css::util::XNumberFormatter > &_rxFormatter, const css::uno::Reference< css::beans::XPropertySet > &_rxField) const
 
- Protected Member Functions inherited from svxform::OParseContextClient
 OParseContextClient ()
 
virtual ~OParseContextClient ()
 
const OSystemParseContextgetParseContext () const
 
- Protected Attributes inherited from DbCellControl
DbGridColumnm_rColumn
 
VclPtr< vcl::Windowm_pPainter
 
VclPtr< vcl::Windowm_pWindow
 
- Protected Attributes inherited from FmMutexHelper
::osl::Mutex m_aMutex
 
- Protected Attributes inherited from svxform::OSQLParserClient
std::shared_ptr< ::connectivity::OSQLParserm_pParser
 

Detailed Description

Definition at line 656 of file gridcell.hxx.

Constructor & Destructor Documentation

DbFilterField::DbFilterField ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
DbGridColumn _rColumn 
)

Definition at line 2664 of file gridcell.cxx.

References DbCellControl::setAlignedController().

DbFilterField::~DbFilterField ( )
overridevirtual

Member Function Documentation

bool DbFilterField::commitControl ( )
overrideprivatevirtual
void DbFilterField::CreateControl ( vcl::Window pParent,
const css::uno::Reference< css::beans::XPropertySet > &  xModel 
)
private
CellControllerRef DbFilterField::CreateController ( ) const
overridevirtual
DbFilterField::DECL_LINK ( OnClick  ,
VclPtr< CheckBox ,
void   
)
private
OUString DbFilterField::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 3085 of file gridcell.cxx.

const OUString& DbFilterField::GetText ( ) const
inline

Definition at line 671 of file gridcell.hxx.

References m_aText.

void DbFilterField::Init ( vcl::Window rParent,
const css::uno::Reference< css::sdbc::XRowSet > &  xCursor 
)
overridevirtual
void DbFilterField::PaintCell ( OutputDevice rDev,
const tools::Rectangle rRect 
)
overridevirtual
void DbFilterField::SetCommitHdl ( const Link< DbFilterField &, void > &  rLink)
inline

Definition at line 674 of file gridcell.hxx.

References m_aCommitLink.

void DbFilterField::SetList ( const css::uno::Any &  rItems,
bool  bComboBox 
)
private
void DbFilterField::SetText ( const OUString &  rText)
void DbFilterField::Update ( )
overridevirtual
void DbFilterField::UpdateFromField ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)
overridevirtual

Implements DbCellControl.

Definition at line 3091 of file gridcell.cxx.

void DbFilterField::updateFromModel ( css::uno::Reference< css::beans::XPropertySet >  _rxModel)
overrideprivatevirtual

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 2845 of file gridcell.cxx.

References DbCellControl::m_pWindow.

Member Data Documentation

Link<DbFilterField&,void> DbFilterField::m_aCommitLink
private

Definition at line 687 of file gridcell.hxx.

Referenced by commitControl(), and SetCommitHdl().

OUString DbFilterField::m_aText
private

Definition at line 686 of file gridcell.hxx.

Referenced by commitControl(), GetText(), PaintCell(), and SetText().

css::uno::Sequence< OUString > DbFilterField::m_aValueList
private

Definition at line 685 of file gridcell.hxx.

Referenced by commitControl(), SetList(), and SetText().

bool DbFilterField::m_bFilterList
private

Definition at line 689 of file gridcell.hxx.

Referenced by CreateControl(), CreateController(), Init(), and Update().

bool DbFilterField::m_bFilterListFilled
private

Definition at line 690 of file gridcell.hxx.

Referenced by Update().

sal_Int16 DbFilterField::m_nControlClass
private

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