LibreOffice Module forms (master) 1
|
#include <Filter.hxx>
Public Member Functions | |
OFilterControl (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &rType) override |
virtual OUString | GetComponentServiceName () const override |
virtual void SAL_CALL | createPeer (const css::uno::Reference< css::awt::XToolkit > &rxToolkit, const css::uno::Reference< css::awt::XWindowPeer > &rParentPeer) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addTextListener (const css::uno::Reference< css::awt::XTextListener > &l) override |
virtual void SAL_CALL | removeTextListener (const css::uno::Reference< css::awt::XTextListener > &l) override |
virtual void SAL_CALL | setText (const OUString &aText) override |
virtual void SAL_CALL | insertText (const css::awt::Selection &rSel, const OUString &aText) override |
virtual OUString SAL_CALL | getText () override |
virtual OUString SAL_CALL | getSelectedText () override |
virtual void SAL_CALL | setSelection (const css::awt::Selection &aSelection) override |
virtual css::awt::Selection SAL_CALL | getSelection () override |
virtual sal_Bool SAL_CALL | isEditable () override |
virtual void SAL_CALL | setEditable (sal_Bool bEditable) override |
virtual void SAL_CALL | setMaxTextLen (sal_Int16 nLength) override |
virtual sal_Int16 SAL_CALL | getMaxTextLen () override |
virtual void SAL_CALL | addUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &) override |
virtual void SAL_CALL | removeUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &) override |
virtual sal_Bool SAL_CALL | commit () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | focusGained (const css::awt::FocusEvent &e) override |
virtual void SAL_CALL | focusLost (const css::awt::FocusEvent &e) override |
virtual void SAL_CALL | itemStateChanged (const css::awt::ItemEvent &rEvent) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from UnoControl | |
UnoControl () | |
virtual | ~UnoControl () override |
UnoControlComponentInfos & | GetComponentInfos () |
virtual OUString | GetComponentServiceName () const |
css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
void SAL_CALL | dispose () override |
void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | setOutputSize (const css::awt::Size &aSize) override |
virtual css::awt::Size SAL_CALL | getOutputSize () override |
virtual sal_Bool SAL_CALL | isVisible () override |
virtual sal_Bool SAL_CALL | isActive () override |
virtual sal_Bool SAL_CALL | isEnabled () override |
virtual sal_Bool SAL_CALL | hasFocus () override |
void SAL_CALL | setPosSize (sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags) override |
css::awt::Rectangle SAL_CALL | getPosSize () override |
void SAL_CALL | setVisible (sal_Bool Visible) override |
void SAL_CALL | setEnable (sal_Bool Enable) override |
void SAL_CALL | setFocus () override |
void SAL_CALL | addWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override |
void SAL_CALL | removeWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override |
void SAL_CALL | addFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override |
void SAL_CALL | removeFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override |
void SAL_CALL | addKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override |
void SAL_CALL | removeKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override |
void SAL_CALL | addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override |
void SAL_CALL | removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override |
void SAL_CALL | addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override |
void SAL_CALL | removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override |
void SAL_CALL | addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override |
void SAL_CALL | removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override |
sal_Bool SAL_CALL | setGraphics (const css::uno::Reference< css::awt::XGraphics > &aDevice) override |
css::uno::Reference< css::awt::XGraphics > SAL_CALL | getGraphics () override |
css::awt::Size SAL_CALL | getSize () override |
void SAL_CALL | draw (sal_Int32 nX, sal_Int32 nY) override |
void SAL_CALL | setZoom (float fZoomX, float fZoomY) override |
void SAL_CALL | setContext (const css::uno::Reference< css::uno::XInterface > &Context) override |
css::uno::Reference< css::uno::XInterface > SAL_CALL | getContext () override |
void SAL_CALL | createPeer (const css::uno::Reference< css::awt::XToolkit > &Toolkit, const css::uno::Reference< css::awt::XWindowPeer > &Parent) override |
css::uno::Reference< css::awt::XWindowPeer > SAL_CALL | getPeer () override |
sal_Bool SAL_CALL | setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override |
css::uno::Reference< css::awt::XControlModel > SAL_CALL | getModel () override |
css::uno::Reference< css::awt::XView > SAL_CALL | getView () override |
void SAL_CALL | setDesignMode (sal_Bool bOn) override |
sal_Bool SAL_CALL | isDesignMode () override |
sal_Bool SAL_CALL | isTransparent () override |
OUString SAL_CALL | getImplementationName () override |
sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
virtual void SAL_CALL | addModeChangeListener (const css::uno::Reference< css::util::XModeChangeListener > &_rxListener) override |
virtual void SAL_CALL | removeModeChangeListener (const css::uno::Reference< css::util::XModeChangeListener > &_rxListener) override |
virtual void SAL_CALL | addModeChangeApproveListener (const css::uno::Reference< css::util::XModeChangeApproveListener > &_rxListener) override |
virtual void SAL_CALL | removeModeChangeApproveListener (const css::uno::Reference< css::util::XModeChangeApproveListener > &_rxListener) override |
virtual css::awt::Point SAL_CALL | convertPointToLogic (const css::awt::Point &Point, ::sal_Int16 TargetUnit) override |
virtual css::awt::Point SAL_CALL | convertPointToPixel (const css::awt::Point &aPoint, ::sal_Int16 SourceUnit) override |
virtual css::awt::Size SAL_CALL | convertSizeToLogic (const css::awt::Size &aSize, ::sal_Int16 TargetUnit) override |
virtual css::awt::Size SAL_CALL | convertSizeToPixel (const css::awt::Size &aSize, ::sal_Int16 SourceUnit) override |
virtual css::uno::Reference< css::awt::XStyleSettings > SAL_CALL | getStyleSettings () override |
css::uno::Reference< css::awt::XVclWindowPeer > | getVclWindowPeer () |
Public Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Private Types | |
typedef std::unordered_map< OUString, OUString > | MapString2String |
Private Member Functions | |
void | implInitFilterList () |
void | initControlModel (css::uno::Reference< css::beans::XPropertySet > const &xControlModel) |
virtual void | PrepareWindowDescriptor (css::awt::WindowDescriptor &rDesc) override |
virtual void | ImplSetPeerProperty (const OUString &rPropName, const css::uno::Any &rVal) override |
bool | ensureInitialized () |
void | displayException (const css::sdb::SQLContext &_rExcept) |
Private Attributes | |
TextListenerMultiplexer | m_aTextListeners |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::beans::XPropertySet > | m_xField |
css::uno::Reference< css::util::XNumberFormatter > | m_xFormatter |
css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
css::uno::Reference< css::awt::XWindow > | m_xMessageParent |
MapString2String | m_aDisplayItemToValueItem |
OUString | m_aText |
sal_Int16 | m_nControlClass |
bool | m_bFilterList: 1 |
bool | m_bMultiLine: 1 |
bool | m_bFilterListFilled: 1 |
Additional Inherited Members | |
Protected Member Functions inherited from UnoControl | |
::osl::Mutex & | GetMutex () |
css::uno::Reference< css::awt::XWindow > | getParentPeer () const |
virtual void | updateFromModel () |
void | peerCreated () |
bool | ImplCheckLocalize (OUString &_rPossiblyLocalizable) |
css::uno::Reference< css::awt::XVclWindowPeer > | ImplGetCompatiblePeer () |
virtual void | ImplSetPeerProperty (const OUString &rPropName, const css::uno::Any &rVal) |
virtual void | PrepareWindowDescriptor (css::awt::WindowDescriptor &rDesc) |
virtual void | ImplModelPropertiesChanged (const css::uno::Sequence< css::beans::PropertyChangeEvent > &rEvents) |
void | ImplLockPropertyChangeNotification (const OUString &rPropertyName, bool bLock) |
void | ImplLockPropertyChangeNotifications (const css::uno::Sequence< OUString > &rPropertyNames, bool bLock) |
void | DisposeAccessibleContext (css::uno::Reference< css::lang::XComponent > const &xContext) |
void | setPeer (const css::uno::Reference< css::awt::XVclWindowPeer > &_xPeer) |
virtual bool | requiresNewPeer (const OUString &_rPropertyName) const |
void SAL_CALL | propertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) override |
Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
~ImplHelper5 () SAL_NOEXCEPT | |
Protected Member Functions inherited from svxform::OParseContextClient | |
OParseContextClient () | |
virtual | ~OParseContextClient () |
const OSystemParseContext * | getParseContext () const |
Protected Attributes inherited from UnoControl | |
EventListenerMultiplexer | maDisposeListeners |
WindowListenerMultiplexer | maWindowListeners |
FocusListenerMultiplexer | maFocusListeners |
KeyListenerMultiplexer | maKeyListeners |
MouseListenerMultiplexer | maMouseListeners |
MouseMotionListenerMultiplexer | maMouseMotionListeners |
PaintListenerMultiplexer | maPaintListeners |
::comphelper::OInterfaceContainerHelper3< css::util::XModeChangeListener > | maModeChangeListeners |
css::uno::Reference< css::uno::XInterface > | mxContext |
css::uno::Reference< css::awt::XControlModel > | mxModel |
css::uno::Reference< css::awt::XGraphics > | mxGraphics |
css::uno::WeakReferenceHelper | maAccessibleContext |
bool | mbDisposePeer |
bool | mbRefreshingPeer |
bool | mbCreatingPeer |
bool | mbCreatingCompatiblePeer |
bool | mbDesignMode |
UnoControlComponentInfos | maComponentInfos |
std::unique_ptr< UnoControl_Data > | mpData |
Definition at line 53 of file Filter.hxx.
|
private |
Definition at line 65 of file Filter.hxx.
|
explicit |
Definition at line 79 of file Filter.cxx.
References m_xContext, and TEXTFIELD.
|
overridevirtual |
Definition at line 536 of file Filter.cxx.
References m_aTextListeners.
|
inlineoverridevirtual |
Definition at line 104 of file Filter.hxx.
|
overridevirtual |
Definition at line 487 of file Filter.cxx.
References displayException(), ensureInitialized(), svxform::OParseContextClient::getParseContext(), UnoControl::getPeer(), frm::ResourceManager::loadString(), m_aText, m_aTextListeners, m_nControlClass, m_xConnection, m_xContext, m_xField, dbtools::OPredicateInputController::normalizePredicateString(), and setText().
|
overridevirtual |
Definition at line 174 of file Filter.cxx.
References Any, UnoControl::createPeer(), DBG_UNHANDLED_EXCEPTION, Exception, UnoControl::getModel(), UnoControl::getPeer(), m_bFilterList, m_bFilterListFilled, m_nControlClass, PROPERTY_AUTOCOMPLETE, PROPERTY_READONLY, PROPERTY_STATE, PROPERTY_TRISTATE, frm::TRISTATE_FALSE, frm::TRISTATE_INDET, and xModel.
|
private |
Definition at line 723 of file Filter.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, m_xContext, and m_xMessageParent.
Referenced by commit().
|
overridevirtual |
Definition at line 166 of file Filter.cxx.
References UnoControl::dispose(), and m_aTextListeners.
|
overridevirtual |
Definition at line 264 of file Filter.cxx.
References UnoControl::disposing(), and Source.
|
private |
Definition at line 90 of file Filter.cxx.
References m_xConnection, m_xContext, m_xField, and m_xFormatter.
Referenced by commit(), implInitFilterList(), and setText().
|
overridevirtual |
Definition at line 474 of file Filter.cxx.
References implInitFilterList(), m_bFilterList, and m_bFilterListFilled.
|
overridevirtual |
Definition at line 482 of file Filter.cxx.
|
overridevirtual |
Reimplemented from UnoControl.
Definition at line 138 of file Filter.cxx.
References m_bMultiLine, and m_nControlClass.
|
overridevirtual |
Definition at line 860 of file Filter.cxx.
|
overridevirtual |
Definition at line 708 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 664 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 683 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 870 of file Filter.cxx.
|
overridevirtual |
Definition at line 658 of file Filter.cxx.
References m_aText.
|
private |
Definition at line 364 of file Filter.cxx.
References comphelper::containerToSequence(), DBG_UNHANDLED_EXCEPTION, ensureInitialized(), Exception, UnoControl::getModel(), UnoControl::getPeer(), m_bFilterListFilled, m_xField, m_xFormatter, o3tl::make_unsigned(), PROPERTY_NAME, PROPERTY_REALNAME, PROPERTY_TABLENAME, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), sCatalog, and sSchema.
Referenced by focusGained().
|
overrideprivatevirtual |
Reimplemented from UnoControl.
Definition at line 252 of file Filter.cxx.
References UnoControl::ImplSetPeerProperty(), PROPERTY_STATE, and PROPERTY_TEXT.
|
private |
Definition at line 799 of file Filter.cxx.
References i, m_aDisplayItemToValueItem, m_bFilterList, m_bMultiLine, m_nControlClass, m_xConnection, m_xField, PROPERTY_BOUNDFIELD, PROPERTY_CLASSID, PROPERTY_FILTERPROPOSAL, PROPERTY_MULTILINE, PROPERTY_STRINGITEMLIST, PROPERTY_VALUE_SEQ, and xModel.
Referenced by initialize().
|
overridevirtual |
Definition at line 737 of file Filter.cxx.
References aArguments, Any, initControlModel(), m_xFormatter, m_xMessageParent, and pName.
|
overridevirtual |
Definition at line 647 of file Filter.cxx.
References UnoControl::getPeer(), and m_aText.
|
overridevirtual |
Definition at line 693 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 271 of file Filter.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, dbtools::DatabaseMetaData::getBooleanComparisonMode(), UnoControl::getModel(), svxform::OParseContextClient::getParseContext(), getPropertyValue(), m_aDisplayItemToValueItem, m_aText, m_aTextListeners, m_nControlClass, m_xConnection, m_xContext, m_xField, dbtools::OPredicateInputController::normalizePredicateString(), PROPERTY_REFVALUE, frm::TRISTATE_FALSE, and frm::TRISTATE_TRUE.
|
overrideprivatevirtual |
|
override |
Definition at line 128 of file Filter.cxx.
References Any, and cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >::queryInterface().
|
overridevirtual |
Definition at line 542 of file Filter.cxx.
References m_aTextListeners.
|
inlineoverridevirtual |
Definition at line 105 of file Filter.hxx.
|
overridevirtual |
Definition at line 700 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 715 of file Filter.cxx.
References UnoControl::getPeer(), and nLength.
|
overridevirtual |
Definition at line 675 of file Filter.cxx.
References UnoControl::getPeer().
|
overridevirtual |
Definition at line 548 of file Filter.cxx.
References Any, ensureInitialized(), UnoControl::getModel(), UnoControl::getPeer(), getPropertyValue(), m_aDisplayItemToValueItem, m_aText, m_nControlClass, PROPERTY_REFVALUE, PROPERTY_STATE, frm::TRISTATE_FALSE, frm::TRISTATE_INDET, and frm::TRISTATE_TRUE.
Referenced by commit().
|
overridevirtual |
Definition at line 865 of file Filter.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 66 of file Filter.hxx.
Referenced by initControlModel(), itemStateChanged(), and setText().
|
private |
Definition at line 68 of file Filter.hxx.
Referenced by commit(), getText(), insertText(), itemStateChanged(), and setText().
|
private |
Definition at line 57 of file Filter.hxx.
Referenced by addTextListener(), commit(), dispose(), itemStateChanged(), and removeTextListener().
|
private |
Definition at line 70 of file Filter.hxx.
Referenced by createPeer(), focusGained(), initControlModel(), and PrepareWindowDescriptor().
|
private |
Definition at line 72 of file Filter.hxx.
Referenced by createPeer(), focusGained(), and implInitFilterList().
|
private |
Definition at line 71 of file Filter.hxx.
Referenced by GetComponentServiceName(), and initControlModel().
|
private |
Definition at line 69 of file Filter.hxx.
Referenced by commit(), createPeer(), GetComponentServiceName(), initControlModel(), itemStateChanged(), and setText().
|
private |
Definition at line 62 of file Filter.hxx.
Referenced by commit(), ensureInitialized(), initControlModel(), and itemStateChanged().
|
private |
Definition at line 59 of file Filter.hxx.
Referenced by commit(), displayException(), ensureInitialized(), and itemStateChanged().
|
private |
Definition at line 60 of file Filter.hxx.
Referenced by commit(), ensureInitialized(), implInitFilterList(), initControlModel(), and itemStateChanged().
|
private |
Definition at line 61 of file Filter.hxx.
Referenced by ensureInitialized(), implInitFilterList(), and initialize().
|
private |
Definition at line 63 of file Filter.hxx.
Referenced by displayException(), and initialize().