From 091863c7a97a4b6272ea608671c93b29b86997ac Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Thu, 25 Jan 2007 10:00:41 +0000 Subject: [PATCH] INTEGRATION: CWS jsc17 (1.10.20); FILE MERGED 2007/01/22 15:50:37 jsc 1.10.20.1: #i73482# implement new helper functions --- idlc/source/astdeclaration.cxx | 17 +++++++++++++++-- 1 file 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; } +