summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 10:55:31 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 10:55:31 +0000
commit698c052a5bb07c9faed30d3a00bd42a8ef98f775 (patch)
treebad4575cab010a5462c2caf36d153380416128be /idlc
parent5a9afb54b73bf2fdd2df8c66f3dbaaed916e85b9 (diff)
INTEGRATION: CWS sb10 (1.1.76); FILE MERGED
2003/12/10 08:57:03 sb 1.1.76.1: #114000# Adapted to multiple-inheritance interface types.
Diffstat (limited to 'idlc')
-rw-r--r--idlc/inc/idlc/astinterface.hxx20
1 files changed, 11 insertions, 9 deletions
diff --git a/idlc/inc/idlc/astinterface.hxx b/idlc/inc/idlc/astinterface.hxx
index 4f3e5e37a935..d468918ee3aa 100644
--- a/idlc/inc/idlc/astinterface.hxx
+++ b/idlc/inc/idlc/astinterface.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: astinterface.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jsc $ $Date: 2001-03-15 12:23:01 $
+ * last change: $Author: hr $ $Date: 2004-02-03 11:55:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,15 +73,11 @@ class AstInterface : public AstType
, public AstScope
{
public:
- AstInterface(const ::rtl::OString& name, DeclList* pInherits, sal_Bool bIsDefined, AstScope* pScope);
+ AstInterface(const ::rtl::OString& name, AstDeclaration* pInherits, AstScope* pScope);
virtual ~AstInterface();
const DeclList& getInheritedInterfaces()
{ return m_inheritedInterfaces; }
- void setInheritedInterfaces(const DeclList& inherits)
- {
- m_inheritedInterfaces = inherits;
- }
sal_Int32 nInheritedInterfaces()
{
return m_inheritedInterfaces.size();
@@ -96,17 +92,23 @@ public:
sal_Bool isForwardedInSameFile()
{ return m_bForwardedInSameFile; }
- void setDefined(sal_Bool bIsDefined)
- { m_bIsDefined = bIsDefined; }
+ void setDefined() { m_bIsDefined = true; }
sal_Bool isDefined()
{ return m_bIsDefined; }
+ bool usesSingleInheritance() const { return m_bSingleInheritance; }
+
+ bool addInheritedInterface(AstInterface * pInherits);
+
+ void forwardDefined(AstInterface const & def);
+
virtual sal_Bool dump(RegistryKey& rKey, RegistryTypeWriterLoader* pLoader);
private:
DeclList m_inheritedInterfaces;
sal_Bool m_bIsDefined;
sal_Bool m_bForwarded;
sal_Bool m_bForwardedInSameFile;
+ bool m_bSingleInheritance;
};
#endif // _IDLC_ASTINTERFACE_HXX_