Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / unodevtools / source / skeletonmaker / skeletoncpp.hxx
blobd8c3f938ee55b5b0584ff3fc60153cc1ff32c9a1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #ifndef INCLUDED_UNODEVTOOLS_SOURCE_SKELETONMAKER_SKELETONCPP_HXX
20 #define INCLUDED_UNODEVTOOLS_SOURCE_SKELETONMAKER_SKELETONCPP_HXX
22 #include <fstream>
24 #include "codemaker/generatedtypeset.hxx"
25 #include "skeletoncommon.hxx"
27 namespace skeletonmaker { namespace cpp {
29 // referenceType
30 // 0 = no reference
31 // 1 = use of css::uno::Reference for interfaces
32 // 2 = reference (includes css::uno::Reference for interfaces)
33 // 4 = const reference (includes css::uno::Reference for interfaces)
34 // 8 = default construction for example for return types, means "return <type>();"
35 // 16 = default member initialization in a constructor
36 void printType(
37 std::ostream & o, ProgramOptions const & options,
38 rtl::Reference< TypeManager > const & manager, OUString const & name,
39 short referenceType, bool defaultvalue = false);
41 void printMethods(std::ostream & o,
42 ProgramOptions const & options, rtl::Reference< TypeManager > const & manager,
43 OUString const & name,
44 codemaker::GeneratedTypeSet & generated,
45 OString const & delegate,
46 OString const & classname=OString(),
47 OString const & indentation=OString(),
48 bool defaultvalue=false,
49 OUString const & propertyhelper=OUString());
51 void generateDocumentation(std::ostream & o,
52 ProgramOptions const & options,
53 rtl::Reference< TypeManager > const & manager,
54 OString const & type,
55 OString const & delegate);
58 void generateSkeleton(ProgramOptions const & options,
59 rtl::Reference< TypeManager > const & manager,
60 std::vector< OString > const & types);
62 void generateCalcAddin(ProgramOptions const & options,
63 rtl::Reference< TypeManager > const & manager,
64 std::vector< OString > const & types);
66 void generateXPropertySetBodies(std::ostream& o,
67 const OString & classname,
68 const OString & interfaceName);
69 void generateXFastPropertySetBodies(std::ostream& o,
70 const OString & classname,
71 const OString & interfaceName);
72 void generateXPropertyAccessBodies(std::ostream& o,
73 const OString & classname,
74 const OString & interfaceName);
76 void generateXAddInBodies(std::ostream& o, const OString & classname);
78 void generateXLocalizable(std::ostream& o, const OString & classname);
80 void generateXCompatibilityNamesBodies(std::ostream& o, const OString & classname);
82 void generateXInitialization(std::ostream& o, const OString & classname);
84 void generateXDispatch(std::ostream& o,
85 const OString & classname,
86 const ProtocolCmdMap & protocolCmdMap);
88 void generateXDispatchProvider(std::ostream& o,
89 const OString & classname,
90 const ProtocolCmdMap & protocolCmdMap);
92 } }
94 #endif // INCLUDED_UNODEVTOOLS_SOURCE_SKELETONMAKER_SKELETONCPP_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */