1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX 24 #define INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX 25 26 #include <fstream> 27 28 #include "codemaker/generatedtypeset.hxx" 29 #include "skeletoncommon.hxx" 30 31 namespace skeletonmaker { namespace java { 32 33 void printType(std::ostream & o, 34 ProgramOptions const & options, TypeManager const & manager, 35 codemaker::UnoType::Sort sort, RTTypeClass typeClass, 36 rtl::OString const & name, sal_Int32 rank, 37 std::vector< rtl::OString > const & arguments, 38 bool referenceType, bool defaultvalue=false); 39 40 void printType(std::ostream & o, 41 ProgramOptions const & options, TypeManager const & manager, 42 rtl::OString const & type, bool referenceType, 43 bool defaultvalue=false); 44 45 bool printConstructorParameters(std::ostream & o, 46 ProgramOptions const & options, 47 TypeManager const & manager, 48 typereg::Reader const & reader, 49 typereg::Reader const & outerReader, 50 std::vector< rtl::OString > const & arguments); 51 52 void printConstructor(std::ostream & o, 53 ProgramOptions const & options, TypeManager const & manager, 54 typereg::Reader const & reader, 55 std::vector< rtl::OString > const & arguments); 56 57 void printMethodParameters(std::ostream & o, 58 ProgramOptions const & options, 59 TypeManager const & manager, 60 typereg::Reader const & reader, 61 sal_uInt16 method, bool previous, 62 bool withtype, 63 bool shortname=false); 64 65 void printExceptionSpecification(std::ostream & o, 66 ProgramOptions const & options, 67 TypeManager const & manager, 68 typereg::Reader const & reader, 69 sal_uInt16 method); 70 71 void printMethods(std::ostream & o, 72 ProgramOptions const & options, TypeManager const & manager, 73 typereg::Reader const & reader, 74 codemaker::GeneratedTypeSet & generated, 75 rtl::OString const & delegate, 76 rtl::OString const & indentation=rtl::OString(), 77 bool defaultvalue=false, 78 bool usepropertymixin=false); 79 80 void printConstructionMethods(std::ostream & o, 81 ProgramOptions const & options, 82 TypeManager const & manager, 83 typereg::Reader const & reader); 84 85 void printServiceMembers(std::ostream & o, 86 ProgramOptions const & options, 87 TypeManager const & manager, 88 typereg::Reader const & reader, 89 rtl::OString const & type, 90 rtl::OString const & delegate); 91 92 void printMapsToJavaType(std::ostream & o, 93 ProgramOptions const & options, 94 TypeManager const & manager, 95 codemaker::UnoType::Sort sort, 96 RTTypeClass typeClass, 97 rtl::OString const & name, sal_Int32 rank, 98 std::vector< rtl::OString > const & arguments, 99 const char * javaTypeSort); 100 101 void generateDocumentation(std::ostream & o, 102 ProgramOptions const & options, 103 TypeManager const & manager, 104 rtl::OString const & type, 105 rtl::OString const & delegate); 106 107 void generateSkeleton(ProgramOptions const & options, TypeManager const & manager, std::vector< rtl::OString > const & types, rtl::OString const & delegate); 108 109 } } 110 111 #endif // INCLUDED_UNODEVTOOLS_SKELETONJAVA_HXX 112 113