LibreOffice Module svx (master) 1
|
#include <gridcell.hxx>
Public Member Functions | |
DbFilterField (const css::uno::Reference< css::uno::XComponentContext > &rxContext, DbGridColumn &_rColumn) | |
virtual | ~DbFilterField () override |
virtual void | Init (BrowserDataWin &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, const 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 |
svt::ControlBase & | GetWindow () const |
bool | isAlignedController () const |
void | AlignControl (sal_Int16 nAlignment) |
void | SetTextLineColor () |
void | SetTextLineColor (const Color &_rColor) |
virtual void | Init (BrowserDataWin &rParent, const css::uno::Reference< css::sdbc::XRowSet > &xCursor) |
virtual ::svt::CellControllerRef | CreateController () const =0 |
bool | Commit () |
virtual OUString | GetFormatText (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const Color **ppColor=nullptr)=0 |
virtual void | Update () |
virtual void | UpdateFromField (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter)=0 |
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 | _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0 |
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 (BrowserDataWin *pParent, const css::uno::Reference< css::beans::XPropertySet > &xModel) |
DECL_LINK (OnToggle, weld::CheckButton &, void) | |
Private Attributes | |
css::uno::Sequence< OUString > | m_aValueList |
OUString | m_aText |
Link< DbFilterField &, void > | m_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 bool | commitControl ()=0 |
commits the content of the control (e.g. More... | |
virtual void | updateFromModel (css::uno::Reference< css::beans::XPropertySet > _rxModel)=0 |
updates the current content of the control (e.g. More... | |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &evt) override |
Protected Member Functions inherited from comphelper::OPropertyChangeListener | |
void | disposeAdapter () |
Protected Attributes inherited from DbCellControl | |
DbGridColumn & | m_rColumn |
VclPtr< svt::ControlBase > | m_pPainter |
VclPtr< svt::ControlBase > | m_pWindow |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 634 of file gridcell.hxx.
DbFilterField::DbFilterField | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
DbGridColumn & | _rColumn | ||
) |
Definition at line 2715 of file gridcell.cxx.
References DbCellControl::setAlignedController(), and TEXTFIELD.
|
overridevirtual |
Definition at line 2726 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), m_nControlClass, and DbCellControl::m_pWindow.
|
overrideprivatevirtual |
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.
Implements DbCellControl.
Definition at line 2901 of file gridcell.cxx.
References Link< typename Arg, typename Ret >::Call(), displayException(), VclPtr< class reference_type >::get(), weld::ComboBox::get_active(), getConnection(), DbGridControl::getDataSource(), DbGridColumn::GetField(), VCLUnoHelper::GetInterface(), LanguageTag::getLocale(), DbGridControl::getNumberFormatter(), DbGridColumn::GetParent(), Application::GetSettings(), AllSettings::GetUILanguageTag(), m_aCommitLink, m_aText, m_aValueList, m_nControlClass, DbCellControl::m_pWindow, DbCellControl::m_rColumn, nPos, and comphelper::string::stripEnd().
|
private |
Definition at line 2783 of file gridcell.cxx.
References Any, VclPtr< class reference_type >::Create(), FM_PROP_STRINGITEMLIST, VclPtr< class reference_type >::get(), StyleSettings::GetSelectionOptions(), AllSettings::GetStyleSettings(), LINK, m_bFilterList, m_nControlClass, DbCellControl::m_pPainter, DbCellControl::m_pWindow, SetList(), StyleSettings::SetSelectionOptions(), AllSettings::SetStyleSettings(), and xModel.
Referenced by Init().
|
overridevirtual |
Implements DbCellControl.
Definition at line 2869 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), m_bFilterList, m_nControlClass, DbCellControl::m_pWindow, and xController.
|
private |
|
overridevirtual |
Implements DbCellControl.
Definition at line 3149 of file gridcell.cxx.
|
inline |
Definition at line 649 of file gridcell.hxx.
References m_aText.
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 2833 of file gridcell.cxx.
References CreateControl(), FM_PROP_CLASSID, FM_PROP_FILTERPROPOSAL, DbGridColumn::getModel(), DbCellControl::Init(), m_bFilterList, m_nControlClass, DbCellControl::m_pWindow, DbCellControl::m_rColumn, DbGridColumn::SetAlignment(), and xModel.
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 2733 of file gridcell.cxx.
References OutputDevice::DrawText(), VclPtr< class reference_type >::get(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), m_aText, m_nControlClass, DbCellControl::m_pPainter, DbCellControl::m_pWindow, DbCellControl::PaintCell(), tools::Rectangle::Top(), and Size::Width().
|
inline |
Definition at line 652 of file gridcell.hxx.
References m_aCommitLink.
|
private |
Definition at line 2758 of file gridcell.cxx.
References weld::ComboBox::append_text(), FM_PROP_VALUE_SEQ, VclPtr< class reference_type >::get(), ComboBoxControl::get_widget(), DbGridColumn::getModel(), m_aValueList, DbCellControl::m_pWindow, and DbCellControl::m_rColumn.
Referenced by CreateControl().
void DbFilterField::SetText | ( | const OUString & | rText | ) |
Definition at line 2990 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), DbGridColumn::GetParent(), m_aText, m_aValueList, m_nControlClass, DbCellControl::m_pPainter, DbCellControl::m_pWindow, DbCellControl::m_rColumn, nPos, DbGridControl::RowModified(), TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 3030 of file gridcell.cxx.
References aName, Any, weld::ComboBox::append_text(), aStr, aStringList, composeTableNameForSelect(), Exception, FM_PROP_ESCAPE_PROCESSING, FM_PROP_FIELDSOURCE, FM_PROP_NAME, FM_PROP_TABLENAME, VclPtr< class reference_type >::get(), ComboBoxControl::get_widget(), getConnection(), DbGridColumn::GetField(), getFormattedValue(), DbGridColumn::GetKey(), DbGridColumn::getModel(), DbGridControl::getNullDate(), DbGridControl::getNumberFormatter(), DbGridColumn::GetParent(), i, m_bFilterList, m_bFilterListFilled, DbCellControl::m_pWindow, DbCellControl::m_rColumn, and quoteName().
|
overridevirtual |
Implements DbCellControl.
Definition at line 3154 of file gridcell.cxx.
|
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.
@precond NULL != _rxModel @precond NULL != m_pWindow
Implements DbCellControl.
Definition at line 2892 of file gridcell.cxx.
References DbCellControl::m_pWindow.
|
private |
Definition at line 665 of file gridcell.hxx.
Referenced by commitControl(), and SetCommitHdl().
|
private |
Definition at line 664 of file gridcell.hxx.
Referenced by commitControl(), GetText(), PaintCell(), and SetText().
|
private |
Definition at line 663 of file gridcell.hxx.
Referenced by commitControl(), SetList(), and SetText().
|
private |
Definition at line 667 of file gridcell.hxx.
Referenced by CreateControl(), CreateController(), Init(), and Update().
|
private |
Definition at line 668 of file gridcell.hxx.
Referenced by Update().
|
private |
Definition at line 666 of file gridcell.hxx.
Referenced by commitControl(), CreateControl(), CreateController(), Init(), PaintCell(), SetText(), and ~DbFilterField().