1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: skeletonjava.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX
31 #define INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX
35 #include "codemaker/generatedtypeset.hxx"
36 #include "skeletoncommon.hxx"
38 namespace skeletonmaker
{ namespace java
{
40 void printType(std::ostream
& o
,
41 ProgramOptions
const & options
, TypeManager
const & manager
,
42 codemaker::UnoType::Sort sort
, RTTypeClass typeClass
,
43 rtl::OString
const & name
, sal_Int32 rank
,
44 std::vector
< rtl::OString
> const & arguments
,
45 bool referenceType
, bool defaultvalue
=false);
47 void printType(std::ostream
& o
,
48 ProgramOptions
const & options
, TypeManager
const & manager
,
49 rtl::OString
const & type
, bool referenceType
,
50 bool defaultvalue
=false);
52 bool printConstructorParameters(std::ostream
& o
,
53 ProgramOptions
const & options
,
54 TypeManager
const & manager
,
55 typereg::Reader
const & reader
,
56 typereg::Reader
const & outerReader
,
57 std::vector
< rtl::OString
> const & arguments
);
59 void printConstructor(std::ostream
& o
,
60 ProgramOptions
const & options
, TypeManager
const & manager
,
61 typereg::Reader
const & reader
,
62 std::vector
< rtl::OString
> const & arguments
);
64 void printMethodParameters(std::ostream
& o
,
65 ProgramOptions
const & options
,
66 TypeManager
const & manager
,
67 typereg::Reader
const & reader
,
68 sal_uInt16 method
, bool previous
,
70 bool shortname
=false);
72 void printExceptionSpecification(std::ostream
& o
,
73 ProgramOptions
const & options
,
74 TypeManager
const & manager
,
75 typereg::Reader
const & reader
,
78 void printMethods(std::ostream
& o
,
79 ProgramOptions
const & options
, TypeManager
const & manager
,
80 typereg::Reader
const & reader
,
81 codemaker::GeneratedTypeSet
& generated
,
82 rtl::OString
const & delegate
,
83 rtl::OString
const & indentation
=rtl::OString(),
84 bool defaultvalue
=false,
85 bool usepropertymixin
=false);
87 void printConstructionMethods(std::ostream
& o
,
88 ProgramOptions
const & options
,
89 TypeManager
const & manager
,
90 typereg::Reader
const & reader
);
92 void printServiceMembers(std::ostream
& o
,
93 ProgramOptions
const & options
,
94 TypeManager
const & manager
,
95 typereg::Reader
const & reader
,
96 rtl::OString
const & type
,
97 rtl::OString
const & delegate
);
99 void printMapsToJavaType(std::ostream
& o
,
100 ProgramOptions
const & options
,
101 TypeManager
const & manager
,
102 codemaker::UnoType::Sort sort
,
103 RTTypeClass typeClass
,
104 rtl::OString
const & name
, sal_Int32 rank
,
105 std::vector
< rtl::OString
> const & arguments
,
106 const char * javaTypeSort
);
108 void generateDocumentation(std::ostream
& o
,
109 ProgramOptions
const & options
,
110 TypeManager
const & manager
,
111 rtl::OString
const & type
,
112 rtl::OString
const & delegate
);
114 void generateSkeleton(ProgramOptions
const & options
, TypeManager
const & manager
, std::vector
< rtl::OString
> const & types
, rtl::OString
const & delegate
);
118 #endif // INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX