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