summaryrefslogtreecommitdiff
path: root/include/sfx2/controlwrapper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-02 16:25:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 08:28:10 +0200
commitdbeb289888e70038e9fc3c52728f7fe03f1935cb (patch)
tree972db2d8d460c483934c64084a47a1501953c875 /include/sfx2/controlwrapper.hxx
parentc3b7f134b94bf2f0830b16b42bd72d235de377fb (diff)
loplugin:unusedmethods
Change-Id: I7db0c27ff2213210ed4b46ebbadc1a2f74a18257 Reviewed-on: https://gerrit.libreoffice.org/61249 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/controlwrapper.hxx')
-rw-r--r--include/sfx2/controlwrapper.hxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/include/sfx2/controlwrapper.hxx b/include/sfx2/controlwrapper.hxx
index c678922dbbab..b81ad28d5951 100644
--- a/include/sfx2/controlwrapper.hxx
+++ b/include/sfx2/controlwrapper.hxx
@@ -142,10 +142,6 @@ public:
explicit ControlWrapperBase() {}
virtual ~ControlWrapperBase();
- /** Derived classes enable, disable, show, or hide control(s).
- @descr Will do nothing, if the corresponding parameter is TRISTATE_INDET. */
- virtual void ModifyControl( TriState eShow ) = 0;
-
private:
ControlWrapperBase( const ControlWrapperBase& ) = delete;
ControlWrapperBase& operator=( const ControlWrapperBase& ) = delete;
@@ -183,10 +179,6 @@ public:
/** Returns a reference to the control this connection works on. */
ControlT& GetControl() { return mrControl; }
- /** Enables, disables, shows, or hides the control.
- @descr Does nothing, if the corresponding parameter is TRISTATE_INDET. */
- virtual void ModifyControl( TriState eShow ) override;
-
/** Derived classes return the value the control contains. */
virtual ValueT GetControlValue() const = 0;
/** Derived classes set the contents of the control to the passed value. */
@@ -197,23 +189,6 @@ private:
};
-/** A dummy wrapper for a VCL Window that does nothing special.
-
- This wrapper is used to implement the DummyItemConnection. It does not
- connect an item to a control, but handles the special flags to disable or
- hide a control, if an item is unknown.
- */
-class SFX2_DLLPUBLIC DummyWindowWrapper:
- public SingleControlWrapper< vcl::Window, void* >
-{
-public:
- explicit DummyWindowWrapper( vcl::Window& rWindow );
-
- virtual void* GetControlValue() const override;
- virtual void SetControlValue( void* ) override;
-};
-
-
#define WRAPPER_LISTBOX_ENTRY_NOTFOUND 0xFFFF /* XXX was value of LISTBOX_ENTRY_NOTFOUND */
/** A wrapper for the VCL ListBox.
@@ -288,14 +263,6 @@ PosT PosValueMapper< PosT, ValueT >::GetPosFromValue( ValueT nValue ) const
// Single control wrappers
-template< typename ControlT, typename ValueT >
-inline void SingleControlWrapper< ControlT, ValueT >::ModifyControl( TriState eShow )
-{
- if( eShow != TRISTATE_INDET )
- mrControl.Show( eShow == TRISTATE_TRUE );
-}
-
-
template< typename ValueT >
ValueT ListBoxWrapper< ValueT >::GetControlValue() const
{