summaryrefslogtreecommitdiff
path: root/idlc/source/astdeclaration.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-01-25 10:00:41 +0000
committerOliver Bolte <obo@openoffice.org>2007-01-25 10:00:41 +0000
commit091863c7a97a4b6272ea608671c93b29b86997ac (patch)
treefd3c4c0aa5a69d64596be0bed3587ce4c5b2e077 /idlc/source/astdeclaration.cxx
parent625780f605ddc7f031ec0eb60e194d738b7ffb68 (diff)
INTEGRATION: CWS jsc17 (1.10.20); FILE MERGED
2007/01/22 15:50:37 jsc 1.10.20.1: #i73482# implement new helper functions
Diffstat (limited to 'idlc/source/astdeclaration.cxx')
-rw-r--r--idlc/source/astdeclaration.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/idlc/source/astdeclaration.cxx b/idlc/source/astdeclaration.cxx
index d40517fd32e5..d6d6acdc037a 100644
--- a/idlc/source/astdeclaration.cxx
+++ b/idlc/source/astdeclaration.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: astdeclaration.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 08:11:14 $
+ * last change: $Author: obo $ $Date: 2007-01-25 11:00:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -72,6 +72,7 @@ AstDeclaration::AstDeclaration(NodeType type, const OString& name, AstScope* pSc
, m_bImported(sal_False)
, m_bIsAdded(sal_False)
, m_bInMainFile(sal_False)
+ , m_bPredefined(false)
{
if ( m_pScope )
{
@@ -111,6 +112,16 @@ AstDeclaration::~AstDeclaration()
}
+void AstDeclaration::setPredefined(bool bPredefined)
+{
+ m_bPredefined = bPredefined;
+ if ( m_bPredefined )
+ {
+ m_fileName = OString();
+ m_bInMainFile = sal_False;
+ }
+}
+
void AstDeclaration::setName(const ::rtl::OString& name)
{
m_scopedName = name;
@@ -205,8 +216,10 @@ sal_Bool AstDeclaration::dump(RegistryKey& rKey)
break;
}
}
+
++iter;
}
}
return bRet;
}
+