summaryrefslogtreecommitdiff
path: root/idl/inc/bastype.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'idl/inc/bastype.hxx')
-rw-r--r--idl/inc/bastype.hxx37
1 files changed, 9 insertions, 28 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx
index 1b87c11589b4..6c552e86c499 100644
--- a/idl/inc/bastype.hxx
+++ b/idl/inc/bastype.hxx
@@ -66,39 +66,20 @@ public:
class SvIdentifier
{
-private:
- OString m_aStr;
+ OString m_aStr;
+ sal_uInt32 nValue;
public:
- SvIdentifier()
- {
- }
- void setString(const OString& rStr)
- {
- m_aStr = rStr;
- }
- const OString& getString() const
- {
- return m_aStr;
- }
-
- bool IsSet() const
- {
- return !m_aStr.isEmpty();
- }
- bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm );
-};
+ SvIdentifier() : nValue( 0 ) {};
+ void setString(const OString& rStr) { m_aStr = rStr; }
+ const OString& getString() const { return m_aStr; }
-class SvNumberIdentifier : public SvIdentifier
-{
- sal_uInt32 nValue;
-public:
- SvNumberIdentifier() : nValue( 0 ) {};
+ bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm );
bool IsSet() const
{
- return SvIdentifier::IsSet() || nValue != 0;
+ return !m_aStr.isEmpty() || nValue != 0;
}
- sal_uInt32 GetValue() const { return nValue; }
+ sal_uInt32 GetValue() const { return nValue; }
void SetValue( sal_uInt32 nVal ) { nValue = nVal; }
bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm );
@@ -140,7 +121,7 @@ public:
};
-class SvHelpContext : public SvNumberIdentifier
+class SvHelpContext : public SvIdentifier
{
};