summaryrefslogtreecommitdiff
path: root/include/sfx2/controlwrapper.hxx
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:06:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 09:51:32 -0600
commit8792ec7b2129650777b7b4bfacaa7c13d923279b (patch)
treef181e37b61533b460397cc68625fd21f46bb6393 /include/sfx2/controlwrapper.hxx
parentdff29fadfe418421f2af9fd4f1dccc8a9b4cd545 (diff)
Remove visual noise from include
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/controlwrapper.hxx')
-rw-r--r--include/sfx2/controlwrapper.hxx68
1 files changed, 34 insertions, 34 deletions
diff --git a/include/sfx2/controlwrapper.hxx b/include/sfx2/controlwrapper.hxx
index fcf94f2dec8c..96dfd7280123 100644
--- a/include/sfx2/controlwrapper.hxx
+++ b/include/sfx2/controlwrapper.hxx
@@ -33,20 +33,20 @@
#include <svtools/valueset.hxx>
#include <svtools/ctrlbox.hxx>
-// ============================================================================
+
namespace sfx {
-// ============================================================================
+
/** List position type of VCL ListBox. */
typedef sal_uInt16 ListBoxPosType;
/** List position type of SVTOOLS ValueSet. */
typedef sal_uInt16 ValueSetPosType;
-// ============================================================================
+
// Helpers
-// ============================================================================
+
/** A helper class for mapping list positions from/to represented values.
@@ -99,9 +99,9 @@ private:
PosT mnNFPos; /// Special "not found" list position.
};
-// ============================================================================
+
// Base control wrapper classes
-// ============================================================================
+
/** Base class for all control wrappers.
@@ -167,9 +167,9 @@ private:
ControlWrapperBase& operator=( const ControlWrapperBase& );
};
-// ============================================================================
+
// Single control wrappers
-// ============================================================================
+
/** Base class template for control wrappers containing one single control.
@@ -212,7 +212,7 @@ private:
ControlT& mrControl; /// The control of this wrapper.
};
-// ============================================================================
+
/** A dummy wrapper for a VCL Window that does nothing special.
@@ -233,7 +233,7 @@ public:
virtual void SetControlValue( void* );
};
-// ----------------------------------------------------------------------------
+
/** A wrapper for the VCL CheckBox. */
class SFX2_DLLPUBLIC CheckBoxWrapper:
@@ -249,7 +249,7 @@ public:
virtual void SetControlValue( sal_Bool bValue );
};
-// ----------------------------------------------------------------------------
+
/** A wrapper for the SVTOOLS ColorListBox. */
class SFX2_DLLPUBLIC ColorListBoxWrapper:
@@ -270,7 +270,7 @@ public:
virtual void SetControlValue( Color aColor );
};
-// ============================================================================
+
/** A wrapper for the VCL NumericField. */
template< typename ValueT >
@@ -287,7 +287,7 @@ public:
virtual void SetControlValue( ValueT nValue );
};
-// ----------------------------------------------------------------------------
+
typedef NumericFieldWrapper< sal_Int16 > Int16NumericFieldWrapper;
typedef NumericFieldWrapper< sal_uInt16 > UInt16NumericFieldWrapper;
@@ -297,7 +297,7 @@ typedef NumericFieldWrapper< sal_uInt32 > UInt32NumericFieldWrapper;
typedef NumericFieldWrapper< sal_uInt16 > UShortNumericFieldWrapper;
typedef NumericFieldWrapper< sal_uIntPtr > ULongNumericFieldWrapper;
-// ============================================================================
+
/** A wrapper for the VCL MetricField.
@@ -322,7 +322,7 @@ private:
FieldUnit meUnit;
};
-// ----------------------------------------------------------------------------
+
typedef MetricFieldWrapper< sal_Int16 > Int16MetricFieldWrapper;
typedef MetricFieldWrapper< sal_uInt16 > UInt16MetricFieldWrapper;
@@ -332,7 +332,7 @@ typedef MetricFieldWrapper< sal_uInt32 > UInt32MetricFieldWrapper;
typedef MetricFieldWrapper< sal_uInt16 > UShortMetricFieldWrapper;
typedef MetricFieldWrapper< sal_uIntPtr > ULongMetricFieldWrapper;
-// ============================================================================
+
/** A wrapper for the VCL ListBox.
@@ -364,7 +364,7 @@ public:
virtual void SetControlValue( ValueT nValue );
};
-// ----------------------------------------------------------------------------
+
typedef ListBoxWrapper< sal_Int16 > Int16ListBoxWrapper;
typedef ListBoxWrapper< sal_uInt16 > UInt16ListBoxWrapper;
@@ -374,7 +374,7 @@ typedef ListBoxWrapper< sal_uInt32 > UInt32ListBoxWrapper;
typedef ListBoxWrapper< sal_uInt16 > UShortListBoxWrapper;
typedef ListBoxWrapper< sal_uIntPtr > ULongListBoxWrapper;
-// ============================================================================
+
/** A wrapper for the SVTOOLS ValueSet.
@@ -406,7 +406,7 @@ public:
virtual void SetControlValue( ValueT nValue );
};
-// ----------------------------------------------------------------------------
+
typedef ValueSetWrapper< sal_Int16 > Int16ValueSetWrapper;
typedef ValueSetWrapper< sal_uInt16 > UInt16ValueSetWrapper;
@@ -416,9 +416,9 @@ typedef ValueSetWrapper< sal_uInt32 > UInt32ValueSetWrapper;
typedef ValueSetWrapper< sal_uInt16 > UShortValueSetWrapper;
typedef ValueSetWrapper< sal_uIntPtr > ULongValueSetWrapper;
-// ============================================================================
+
// Multi control wrappers
-// ============================================================================
+
struct MultiControlWrapperHelper_Impl;
@@ -451,7 +451,7 @@ private:
std::auto_ptr< MultiControlWrapperHelper_Impl > mxImpl;
};
-// ----------------------------------------------------------------------------
+
/** A multi control wrapper with extended interface.
@@ -488,16 +488,16 @@ private:
ValueT maDefValue;
};
-// ============================================================================
-// ============================================================================
+
+
// *** Implementation of template functions ***
-// ============================================================================
-// ============================================================================
+
+
// Helpers
-// ============================================================================
+
template< typename PosT, typename ValueT >
ValueT PosValueMapper< PosT, ValueT >::GetValueFromPos( PosT nPos ) const
@@ -535,9 +535,9 @@ PosT PosValueMapper< PosT, ValueT >::GetPosFromValue( ValueT nValue ) const
return nPos;
}
-// ============================================================================
+
// Single control wrappers
-// ============================================================================
+
template< typename ControlT, typename ValueT >
inline void SingleControlWrapper< ControlT, ValueT >::ModifyControl( TriState eEnable, TriState eShow )
@@ -548,7 +548,7 @@ inline void SingleControlWrapper< ControlT, ValueT >::ModifyControl( TriState eE
mrControl.Show( eShow == TRISTATE_TRUE );
}
-// ============================================================================
+
template< typename ValueT >
bool NumericFieldWrapper< ValueT >::IsControlDontKnow() const
@@ -575,7 +575,7 @@ void NumericFieldWrapper< ValueT >::SetControlValue( ValueT nValue )
this->GetControl().SetValue( this->GetControl().Normalize( static_cast< sal_Int64 >( nValue ) ) );
}
-// ============================================================================
+
template< typename ValueT >
bool MetricFieldWrapper< ValueT >::IsControlDontKnow() const
@@ -602,7 +602,7 @@ void MetricFieldWrapper< ValueT >::SetControlValue( ValueT nValue )
this->GetControl().SetValue( this->GetControl().Normalize( static_cast< sal_Int64 >( nValue ) ), meUnit );
}
-// ============================================================================
+
template< typename ValueT >
ValueT ListBoxWrapper< ValueT >::GetControlValue() const
@@ -618,7 +618,7 @@ void ListBoxWrapper< ValueT >::SetControlValue( ValueT nValue )
this->GetControl().SelectEntryPos( nPos );
}
-// ----------------------------------------------------------------------------
+
template< typename ValueT >
ValueT ValueSetWrapper< ValueT >::GetControlValue() const
@@ -634,7 +634,7 @@ void ValueSetWrapper< ValueT >::SetControlValue( ValueT nValue )
this->GetControl().SelectItem( nPos );
}
-// ============================================================================
+
} // namespace sfx