summaryrefslogtreecommitdiff
path: root/autodoc/source/inc/luxenum.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 15:45:41 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 15:45:41 +0000
commit7942dcbd4a2f7abde0acc5225e3aa335688638d4 (patch)
tree61a2ae4451b973a5f3166b88966a2a2f288e17ea /autodoc/source/inc/luxenum.hxx
parentfdd6a2b2ebb441e35bc6d9aa57208e72ff493830 (diff)
INTEGRATION: CWS adc18 (1.4.32); FILE MERGED
2007/10/19 10:37:29 np 1.4.32.1: #i81775#
Diffstat (limited to 'autodoc/source/inc/luxenum.hxx')
-rw-r--r--autodoc/source/inc/luxenum.hxx30
1 files changed, 4 insertions, 26 deletions
diff --git a/autodoc/source/inc/luxenum.hxx b/autodoc/source/inc/luxenum.hxx
index 0f6ba0cb2430..068d9c9566fb 100644
--- a/autodoc/source/inc/luxenum.hxx
+++ b/autodoc/source/inc/luxenum.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: luxenum.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2006-06-19 12:02:11 $
+ * last change: $Author: hr $ $Date: 2007-11-02 16:45:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -49,7 +49,7 @@
namespace lux
{
-typedef std::map< intt, udmstri > EnumValueMap;
+typedef std::map< intt, String > EnumValueMap;
template <class DIFF>
@@ -90,44 +90,22 @@ class Enum // : public Template_Base
{ nValue = i_rEnum.nValue; return *this; }
operator DIFF() const { return DIFF(nValue); }
-// self & operator++() { if ( uintt(nValue) < Sequence_().size() - 1) nValue = Sequence_()[nValue+1]; return *this; }
-// self & operator--() { if ( uintt(nValue) > 0) nValue = Sequence_()[nValue-1]; }
-
-
DIFF operator()() const { return nValue; }
- const udmstri & Text() const { return Values_()[nValue]; }
-// virtual const Agent &
-// GetSpecialAgent() const;
+ const String & Text() const { return Values_()[nValue]; }
private:
static EnumValueMap &
Values_();
-// static std::vector< DIFF > &
-// Sequence_();
bool CheckIntt(
intt i_nNumber )
{ return Values_().find(i_nNumber) != Values_().end(); }
-
// DATA
intt nValue;
};
-// IMPLEMENTATION
-/*
-// Dummy - has t be overwritten by specialisation, if used:
-template <class DIFF>
-const Agent &
-Enum<DIFF>::GetSpecialAgent() const
-{
- csv_assert(false);
- return *(const udm::Agent*)0;
-}
-*/
} // namespace lux
-
-
#endif