summaryrefslogtreecommitdiff
path: root/include/sfx2/controlwrapper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/sfx2/controlwrapper.hxx')
-rw-r--r--include/sfx2/controlwrapper.hxx78
1 files changed, 0 insertions, 78 deletions
diff --git a/include/sfx2/controlwrapper.hxx b/include/sfx2/controlwrapper.hxx
index 8de68755da48..bce078a487c3 100644
--- a/include/sfx2/controlwrapper.hxx
+++ b/include/sfx2/controlwrapper.hxx
@@ -259,7 +259,6 @@ public:
virtual ValueT GetControlValue() const SAL_OVERRIDE;
virtual void SetControlValue( ValueT nValue ) SAL_OVERRIDE;
- bool IsControlValueChanged() const;
private:
FieldUnit meUnit;
@@ -332,76 +331,6 @@ public:
};
-// Multi control wrappers
-
-
-struct MultiControlWrapperHelper_Impl;
-
-/** A container of control wrappers.
-
- Derived classes should define control wrapper members and register them in
- their constructor, using the function RegisterControlWrapper().
-
- This wrapper implements the abstract functions of the ControlWrapperBase
- base class by calling the functions of all registered wrappers.
- */
-class SFX2_DLLPUBLIC MultiControlWrapperHelper : public ControlWrapperBase
-{
-public:
- explicit MultiControlWrapperHelper();
- virtual ~MultiControlWrapperHelper() override;
-
- /** Registers a control wrapper (should be a member of a derived class). */
- void RegisterControlWrapper( ControlWrapperBase& rWrapper );
-
- /** Enables, disables, shows, or hides the registered controls. */
- virtual void ModifyControl( TriState eShow ) override;
-
- /** Returns true if all registered controls are in "don't know" state. */
- virtual bool IsControlDontKnow() const override;
- /** Sets all registered controls to "don't know" state. */
- virtual void SetControlDontKnow( bool bSet ) override;
-
-private:
- std::unique_ptr< MultiControlWrapperHelper_Impl > mxImpl;
-};
-
-
-/** A multi control wrapper with extended interface.
-
- This template class extends the MultiControlWrapperHelper class by the
- functions GetControlValue() and SetControlValue(), known from the
- SingleControlWrapper template. This makes it possible to use this template
- in item connections expecting a single control wrapper. The type ValueT
- should be able to contain the values of all controls handled in this
- wrapper. In most cases, the easiest way to achieve this is to use the
- related item type directly, using the IdentItemWrapper template
- (itemwrapper.hxx).
- */
-template< typename ValueT >
-class MultiControlWrapper : public MultiControlWrapperHelper
-{
-public:
- typedef MultiControlWrapperHelper ControlType;
- typedef ValueT ControlValueType;
-
- MultiControlWrapper() : maDefValue( 0 ){}
-
- /** Returns the default value that can be used in GetControlValue(). */
- const ValueT& GetDefaultValue() const { return maDefValue; }
- /** Sets a default value that can be used in GetControlValue(). */
- void SetDefaultValue( const ValueT& rDefValue ) { maDefValue = rDefValue; }
-
- /** 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. */
- virtual void SetControlValue( ValueT aValue ) = 0;
-
-private:
- ValueT maDefValue;
-};
-
-
// *** Implementation of template functions ***
@@ -482,13 +411,6 @@ void MetricFieldWrapper< ValueT >::SetControlValue( ValueT nValue )
}
template< typename ValueT >
-bool MetricFieldWrapper< ValueT >::IsControlValueChanged() const
-{
- return this->GetControl().IsValueChangedFromSaved();
-}
-
-
-template< typename ValueT >
ValueT ListBoxWrapper< ValueT >::GetControlValue() const
{
return this->GetValueFromPos( this->GetControl().GetSelectedEntryPos() );