1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #include <precomp.h> 29 #include "it_sequence.hxx" 30 31 32 // NOT FULLY DEFINED SERVICES 33 #include <cosv/tpl/processor.hxx> 34 #include <ary/idl/i_gate.hxx> 35 #include <ary/idl/ip_type.hxx> 36 37 38 39 namespace ary 40 { 41 namespace idl 42 { 43 44 45 Sequence::Sequence( Type_id i_nRelatedType ) 46 : nRelatedType(i_nRelatedType) 47 { 48 } 49 50 Sequence::~Sequence() 51 { 52 } 53 54 ClassId 55 Sequence::get_AryClass() const 56 { 57 return class_id; 58 } 59 60 void 61 Sequence::do_Accept( csv::ProcessorIfc & io_processor ) const 62 { 63 csv::CheckedCall(io_processor, *this); 64 } 65 66 void 67 Sequence::inq_Get_Text( StringVector & o_module, 68 String & o_name, 69 Ce_id & o_nRelatedCe, 70 int & o_nSequenceCount, 71 const Gate & i_rGate ) const 72 { 73 ++o_nSequenceCount; 74 75 i_rGate.Types().Find_Type(nRelatedType) 76 .Get_Text( o_module, 77 o_name, 78 o_nRelatedCe, 79 o_nSequenceCount, 80 i_rGate ); 81 } 82 83 const Type & 84 Sequence::inq_FirstEnclosedNonSequenceType(const Gate & i_rGate) const 85 { 86 return i_rGate.Types().Find_Type(nRelatedType).FirstEnclosedNonSequenceType(i_rGate); 87 } 88 89 90 } // namespace idl 91 } // namespace ary 92