diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-03-15 08:09:30 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-03-15 08:09:30 +0000 |
commit | b5d0eaea26bb03b071ea618b80dd62fcb2b8932a (patch) | |
tree | 504458c902453078f5da40edc5d3d34103ca5548 | |
parent | 212bd1816a8aeeec209620dfe93c865471bbef49 (diff) |
INTEGRATION: CWS jsc3 (1.2.10); FILE MERGED
2006/02/17 16:00:03 jsc 1.2.10.2: #i56247# refactoring and cosmetics
2006/01/20 12:59:06 jsc 1.2.10.1: #i53950# refactor translateIdentifier to translateUnoToCppIdentifer
-rw-r--r-- | codemaker/inc/codemaker/commoncpp.hxx | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/codemaker/inc/codemaker/commoncpp.hxx b/codemaker/inc/codemaker/commoncpp.hxx index 0bac77d47290..635a253ff589 100644 --- a/codemaker/inc/codemaker/commoncpp.hxx +++ b/codemaker/inc/codemaker/commoncpp.hxx @@ -4,9 +4,9 @@ * * $RCSfile: commoncpp.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2005-10-27 17:09:30 $ + * last change: $Author: vg $ $Date: 2006-03-15 09:09:30 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -36,21 +36,33 @@ #ifndef INCLUDED_CODEMAKER_COMMONCPP_HXX #define INCLUDED_CODEMAKER_COMMONCPP_HXX +#ifndef INCLUDED_CODEMAKER_CODEMAKER_HXX #include "codemaker/codemaker.hxx" - +#endif namespace codemaker { namespace cpp { -rtl::OString scopedCppName(rtl::OString const & type, bool bNoNameSpace=false, +rtl::OString typeToPrefix(TypeManager const & manager, rtl::OString const & type); + +rtl::OString scopedCppName(TypeManager const & manager, + rtl::OString const & type, bool bNoNameSpace=false, bool shortname=false); rtl::OString translateUnoToCppType( codemaker::UnoType::Sort sort, RTTypeClass typeClass, - rtl::OString const & nucleus); + rtl::OString const & nucleus, bool shortname); + +enum IdentifierTranslationMode { + ITM_GLOBAL, + ITM_NONGLOBAL, + ITM_KEYWORDSONLY +}; rtl::OString translateUnoToCppIdentifier( - rtl::OString const & identifier, rtl::OString const & prefix); + rtl::OString const & identifier, rtl::OString const & prefix, + IdentifierTranslationMode transmode = ITM_GLOBAL, + rtl::OString const * forbidden = 0); } } -#endif +#endif // INCLUDED_CODEMAKER_COMMONCPP_HXX |