summaryrefslogtreecommitdiff
path: root/idl/inc
diff options
context:
space:
mode:
Diffstat (limited to 'idl/inc')
-rw-r--r--idl/inc/bastype.hxx37
-rw-r--r--idl/inc/database.hxx6
-rw-r--r--idl/inc/types.hxx6
3 files changed, 15 insertions, 34 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
{
};
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx
index 8871c39fc216..4031ddea2ba4 100644
--- a/idl/inc/database.hxx
+++ b/idl/inc/database.hxx
@@ -91,8 +91,8 @@ public:
// list of used types while writing
SvMetaTypeMemberList aUsedTypes;
- OString aIFaceName;
- SvNumberIdentifier aStructSlotId;
+ OString aIFaceName;
+ SvIdentifier aStructSlotId;
void StartNewFile( const OUString& rName );
void SetExportFile( const OUString& rName )
@@ -124,7 +124,7 @@ public:
SvMetaType * ReadKnownType( SvTokenStream & rInStm );
SvMetaAttribute * ReadKnownAttr( SvTokenStream & rInStm,
SvMetaType * pType = NULL );
- SvMetaAttribute * SearchKnownAttr( const SvNumberIdentifier& );
+ SvMetaAttribute * SearchKnownAttr( const SvIdentifier& );
SvMetaClass * ReadKnownClass( SvTokenStream & rInStm );
void AddDepFile(OUString const& rFileName);
bool WriteDepFile(SvFileStream & rStream, OUString const& rTarget);
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx
index a9d5c75030c9..90f358c9a9cd 100644
--- a/idl/inc/types.hxx
+++ b/idl/inc/types.hxx
@@ -35,7 +35,7 @@ typedef tools::SvRef<SvMetaType> SvMetaTypeRef;
class SvMetaAttribute : public SvMetaReference
{
SvMetaTypeRef aType;
- SvNumberIdentifier aSlotId;
+ SvIdentifier aSlotId;
SvBOOL aAutomation;
SvBOOL aExport;
SvBOOL aReadonly;
@@ -55,9 +55,9 @@ public:
void SetNewAttribute( bool bNew )
{ bNewAttr = bNew; }
bool GetReadonly() const;
- void SetSlotId( const SvNumberIdentifier & rId )
+ void SetSlotId( const SvIdentifier & rId )
{ aSlotId = rId; }
- const SvNumberIdentifier & GetSlotId() const;
+ const SvIdentifier & GetSlotId() const;
bool GetExport() const;
bool GetHidden() const;
bool GetAutomation() const;