1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
21 #define INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
23 #include "rtl/ref.hxx"
24 #include "rtl/ustring.hxx"
26 #include "dependencies.hxx"
31 namespace codemaker
{ namespace cppumaker
{
36 rtl::Reference
< TypeManager
> const & manager
,
37 Dependencies
const & dependencies
, bool hpp
);
41 void add(OString
const & entityName
);
42 void addCassert() { m_includeCassert
= true; }
43 void addException() { m_includeException
= true; }
44 void addAny() { m_includeAny
= true; }
45 void addReference() { m_includeReference
= true; }
46 void addSequence() { m_includeSequence
= true; }
47 void addType() { m_includeType
= true; }
48 void addCppuMacrosHxx() { m_includeCppuMacrosHxx
= true; }
49 void addCppuUnotypeHxx() { m_includeCppuUnotypeHxx
= true; }
50 void addOslDoublecheckedlockingH()
51 { m_includeOslDoublecheckedlockingH
= true; }
52 void addOslMutexHxx() { m_includeOslMutexHxx
= true; }
53 void addRtlStrbufHxx() { m_includeRtlStrbufHxx
= true; }
54 void addRtlStringH() { m_includeRtlStringH
= true; }
55 void addRtlTextencH() { m_includeRtlTextencH
= true; }
56 void addRtlUstrbufHxx() { m_includeRtlUstrbufHxx
= true; }
57 void addRtlUstringH() { m_includeRtlUstringH
= true; }
58 void addRtlUstringHxx() { m_includeRtlUstringHxx
= true; }
59 void addRtlInstanceHxx() { m_includeRtlInstanceHxx
= true; }
60 void addSalTypesH() { m_includeSalTypesH
= true; }
61 void addTypelibTypeclassH() { m_includeTypelibTypeclassH
= true; }
62 void addTypelibTypedescriptionH()
63 { m_includeTypelibTypedescriptionH
= true; }
64 void dump(FileStream
& out
, OUString
const * companionHdl
);
66 static void dumpInclude(
67 FileStream
& out
, OString
const & entityName
, bool hpp
);
70 Includes(Includes
&) SAL_DELETED_FUNCTION
;
71 void operator =(const Includes
&) SAL_DELETED_FUNCTION
;
73 bool isInterfaceType(OString
const & entityName
) const;
75 rtl::Reference
< TypeManager
> m_manager
;
76 Dependencies::Map m_map
;
78 bool m_includeCassert
;
79 bool m_includeException
;
81 bool m_includeReference
;
82 bool m_includeSequence
;
84 bool m_includeCppuMacrosHxx
;
85 bool m_includeCppuUnotypeHxx
;
86 bool m_includeOslDoublecheckedlockingH
;
87 bool m_includeOslMutexHxx
;
88 bool m_includeRtlStrbufHxx
;
89 bool m_includeRtlStringH
;
90 bool m_includeRtlTextencH
;
91 bool m_includeRtlUstrbufHxx
;
92 bool m_includeRtlUstringH
;
93 bool m_includeRtlUstringHxx
;
94 bool m_includeRtlInstanceHxx
;
95 bool m_includeSalTypesH
;
96 bool m_includeTypelibTypeclassH
;
97 bool m_includeTypelibTypedescriptionH
;
102 #endif // INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */