update credits
[LibreOffice.git] / unodevtools / source / skeletonmaker / skeletoncpp.hxx
blob7f923c4dbe0edd3a1a0f60384a0a1928452218e1
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 } }
68 #endif // INCLUDED_UNODEVTOOLS_SOURCE_SKELETONMAKER_SKELETONCPP_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */