diff options
Diffstat (limited to 'codemaker/source/cppumaker/cpputype.hxx')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.hxx | 71 |
1 files changed, 35 insertions, 36 deletions
diff --git a/codemaker/source/cppumaker/cpputype.hxx b/codemaker/source/cppumaker/cpputype.hxx index 09d0e5130ffa..9d92a014b8bd 100644 --- a/codemaker/source/cppumaker/cpputype.hxx +++ b/codemaker/source/cppumaker/cpputype.hxx @@ -29,7 +29,6 @@ #include "rtl/ref.hxx" #include "rtl/string.hxx" -namespace rtl { class OUString; } namespace codemaker { namespace cppumaker { class Includes; } struct ExceptionTreeNode; @@ -50,23 +49,23 @@ class CppuType { public: CppuType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~CppuType(); virtual sal_Bool dump(CppuOptions* pOptions) throw( CannotDumpException ); sal_Bool dumpFile(CppuOptions* pOptions, - const ::rtl::OString& sExtension, - const ::rtl::OString& sName, - const ::rtl::OString& sOutPath ) + const OString& sExtension, + const OString& sName, + const OString& sOutPath ) throw( CannotDumpException ); void dumpDependedTypes( codemaker::GeneratedTypeSet & generated, CppuOptions * options); virtual sal_Bool dumpHFile(FileStream& o, codemaker::cppumaker::Includes & includes) throw( CannotDumpException ) = 0; virtual sal_Bool dumpHxxFile(FileStream& o, codemaker::cppumaker::Includes & includes) throw( CannotDumpException ) = 0; - ::rtl::OString dumpHeaderDefine( + OString dumpHeaderDefine( FileStream& o, char const * prefix, sal_Bool bExtended=sal_False); void dumpGetCppuType(FileStream & out); @@ -74,13 +73,13 @@ public: virtual void dumpNormalGetCppuType(FileStream& o); virtual void dumpComprehensiveGetCppuType(FileStream& o); - virtual void dumpType(FileStream& o, const ::rtl::OString& type, bool bConst=false, + virtual void dumpType(FileStream& o, const OString& type, bool bConst=false, bool bRef=false, bool bNative=false, bool cppuUnoType=false) const throw( CannotDumpException ); - ::rtl::OString getTypeClass(const ::rtl::OString& type="", sal_Bool bCStyle=sal_False); - void dumpCppuGetType(FileStream& o, const ::rtl::OString& type, sal_Bool bDecl=sal_False, CppuTypeDecl eDeclFlag=CPPUTYPEDECL_ALLTYPES); + OString getTypeClass(const OString& type="", sal_Bool bCStyle=sal_False); + void dumpCppuGetType(FileStream& o, const OString& type, sal_Bool bDecl=sal_False, CppuTypeDecl eDeclFlag=CPPUTYPEDECL_ALLTYPES); - ::rtl::OString typeToIdentifier(const ::rtl::OString& type); + OString typeToIdentifier(const OString& type); void dumpConstantValue(FileStream& o, sal_uInt16 index); @@ -89,15 +88,15 @@ public: void inc(sal_Int32 num=4); void dec(sal_Int32 num=4); - ::rtl::OString indent() const; + OString indent() const; protected: virtual sal_uInt32 checkInheritedMemberCount( const typereg::Reader* pReader); - bool passByReference(rtl::OString const & unoType); + bool passByReference(OString const & unoType); - ::rtl::OString resolveTypedefs(const ::rtl::OString& type) const; - ::rtl::OString checkRealBaseType(const ::rtl::OString& type, sal_Bool bResolveTypeOnly = sal_False) const; + OString resolveTypedefs(const OString& type) const; + OString checkRealBaseType(const OString& type, sal_Bool bResolveTypeOnly = sal_False) const; void dumpCppuGetTypeMemberDecl(FileStream& o, CppuTypeDecl eDeclFlag); codemaker::cpp::IdentifierTranslationMode isGlobal() const; @@ -106,7 +105,7 @@ protected: virtual void addSpecialDependencies() {} - virtual bool dumpFiles(CppuOptions * options, rtl::OString const & outPath); + virtual bool dumpFiles(CppuOptions * options, OString const & outPath); virtual void addLightGetCppuTypeIncludes( codemaker::cppumaker::Includes & includes) const; @@ -131,7 +130,7 @@ protected: void addDefaultHxxIncludes(codemaker::cppumaker::Includes & includes) const; void dumpInitializer( - FileStream & out, bool parameterized, rtl::OUString const & type) const; + FileStream & out, bool parameterized, OUString const & type) const; void dumpHFileContent( FileStream & out, codemaker::cppumaker::Includes & includes); @@ -142,8 +141,8 @@ protected: bool m_cppuTypeLeak; bool m_cppuTypeDynamic; sal_Int32 m_indentLength; - ::rtl::OString m_typeName; - ::rtl::OString m_name; + OString m_typeName; + OString m_name; typereg::Reader m_reader; rtl::Reference< TypeManager > m_typeMgr; codemaker::Dependencies m_dependencies; @@ -157,7 +156,7 @@ class InterfaceType : public CppuType { public: InterfaceType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~InterfaceType(); @@ -199,18 +198,18 @@ private: FileStream & out, sal_uInt32 methodIndex, bool runtimeException); void dumpAttributeExceptionSpecification( - FileStream & out, rtl::OUString const & name, RTMethodMode sort); + FileStream & out, OUString const & name, RTMethodMode sort); void dumpExceptionTypeName( FileStream & out, char const * prefix, sal_uInt32 index, - rtl::OUString name); + OUString name); sal_Int32 dumpExceptionTypeNames( FileStream & out, char const * prefix, sal_uInt16 methodIndex, bool runtimeException); sal_Int32 dumpAttributeExceptionTypeNames( - FileStream & out, char const * prefix, rtl::OUString const & name, + FileStream & out, char const * prefix, OUString const & name, RTMethodMode sort); }; @@ -218,7 +217,7 @@ class ConstantsType : public CppuType { public: ConstantsType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~ConstantsType(); @@ -235,20 +234,20 @@ class ModuleType : public ConstantsType { public: ModuleType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~ModuleType(); protected: - virtual bool dumpFiles(CppuOptions * options, rtl::OString const & outPath); + virtual bool dumpFiles(CppuOptions * options, OString const & outPath); }; class StructureType : public CppuType { public: StructureType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~StructureType(); @@ -263,7 +262,7 @@ public: virtual void dumpComprehensiveGetCppuType(FileStream & out); - sal_Bool dumpSuperMember(FileStream& o, const ::rtl::OString& super, sal_Bool bWithType); + sal_Bool dumpSuperMember(FileStream& o, const OString& super, sal_Bool bWithType); protected: virtual void addLightGetCppuTypeIncludes( @@ -286,7 +285,7 @@ class ExceptionType : public CppuType { public: ExceptionType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~ExceptionType(); @@ -295,14 +294,14 @@ public: sal_Bool dumpHFile(FileStream& o, codemaker::cppumaker::Includes & includes) throw( CannotDumpException ); sal_Bool dumpHxxFile(FileStream& o, codemaker::cppumaker::Includes & includes) throw( CannotDumpException ); - sal_Bool dumpSuperMember(FileStream& o, const ::rtl::OString& super, sal_Bool bWithType); + sal_Bool dumpSuperMember(FileStream& o, const OString& super, sal_Bool bWithType); }; class EnumType : public CppuType { public: EnumType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~EnumType(); @@ -319,7 +318,7 @@ class TypeDefType : public CppuType { public: TypeDefType(typereg::Reader& typeReader, - const ::rtl::OString& typeName, + const OString& typeName, rtl::Reference< TypeManager > const & typeMgr); virtual ~TypeDefType(); @@ -332,7 +331,7 @@ public: class ConstructiveType: public CppuType { public: ConstructiveType( - typereg::Reader & reader, rtl::OString const & name, + typereg::Reader & reader, OString const & name, rtl::Reference< TypeManager > const & manager): CppuType(reader, name, manager) {} @@ -341,13 +340,13 @@ public: throw (CannotDumpException); protected: - virtual bool dumpFiles(CppuOptions * options, rtl::OString const & outPath); + virtual bool dumpFiles(CppuOptions * options, OString const & outPath); }; class ServiceType: public ConstructiveType { public: ServiceType( - typereg::Reader & reader, rtl::OString const & name, + typereg::Reader & reader, OString const & name, rtl::Reference< TypeManager > const & manager): ConstructiveType(reader, name, manager) {} @@ -371,7 +370,7 @@ private: class SingletonType: public ConstructiveType { public: SingletonType( - typereg::Reader & reader, rtl::OString const & name, + typereg::Reader & reader, OString const & name, rtl::Reference< TypeManager > const & manager): ConstructiveType(reader, name, manager) {} @@ -382,7 +381,7 @@ public: throw (CannotDumpException); }; -bool produceType(const ::rtl::OString& typeName, +bool produceType(const OString& typeName, rtl::Reference< TypeManager > const & typeMgr, codemaker::GeneratedTypeSet & generated, CppuOptions* pOptions) |