Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / unodevtools / source / skeletonmaker / skeletonjava.hxx
blobd4dfc077dec9ad91ff44d4197fb8a2d4269bf238
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX
29 #define INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX
31 #include <fstream>
33 #include "codemaker/generatedtypeset.hxx"
34 #include "skeletoncommon.hxx"
36 namespace skeletonmaker { namespace java {
38 void printType(std::ostream & o,
39 ProgramOptions const & options, TypeManager const & manager,
40 codemaker::UnoType::Sort sort, RTTypeClass typeClass,
41 rtl::OString const & name, sal_Int32 rank,
42 std::vector< rtl::OString > const & arguments,
43 bool referenceType, bool defaultvalue=false);
45 void printType(std::ostream & o,
46 ProgramOptions const & options, TypeManager const & manager,
47 rtl::OString const & type, bool referenceType,
48 bool defaultvalue=false);
50 bool printConstructorParameters(std::ostream & o,
51 ProgramOptions const & options,
52 TypeManager const & manager,
53 typereg::Reader const & reader,
54 typereg::Reader const & outerReader,
55 std::vector< rtl::OString > const & arguments);
57 void printConstructor(std::ostream & o,
58 ProgramOptions const & options, TypeManager const & manager,
59 typereg::Reader const & reader,
60 std::vector< rtl::OString > const & arguments);
62 void printMethodParameters(std::ostream & o,
63 ProgramOptions const & options,
64 TypeManager const & manager,
65 typereg::Reader const & reader,
66 sal_uInt16 method, bool previous,
67 bool withtype);
69 void printExceptionSpecification(std::ostream & o,
70 ProgramOptions const & options,
71 TypeManager const & manager,
72 typereg::Reader const & reader,
73 sal_uInt16 method);
75 void printMethods(std::ostream & o,
76 ProgramOptions const & options, TypeManager const & manager,
77 typereg::Reader const & reader,
78 codemaker::GeneratedTypeSet & generated,
79 rtl::OString const & delegate,
80 rtl::OString const & indentation=rtl::OString(),
81 bool defaultvalue=false,
82 bool usepropertymixin=false);
84 void printConstructionMethods(std::ostream & o,
85 ProgramOptions const & options,
86 TypeManager const & manager,
87 typereg::Reader const & reader);
89 void printServiceMembers(std::ostream & o,
90 ProgramOptions const & options,
91 TypeManager const & manager,
92 typereg::Reader const & reader,
93 rtl::OString const & type,
94 rtl::OString const & delegate);
96 void printMapsToJavaType(std::ostream & o,
97 ProgramOptions const & options,
98 TypeManager const & manager,
99 codemaker::UnoType::Sort sort,
100 RTTypeClass typeClass,
101 rtl::OString const & name, sal_Int32 rank,
102 std::vector< rtl::OString > const & arguments,
103 const char * javaTypeSort);
105 void generateDocumentation(std::ostream & o,
106 ProgramOptions const & options,
107 TypeManager const & manager,
108 rtl::OString const & type,
109 rtl::OString const & delegate);
111 void generateSkeleton(ProgramOptions const & options, TypeManager const & manager, std::vector< rtl::OString > const & types);
115 #endif // INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */