merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / ary / idl / it_tplparam.hxx
blob970d0935870a139f55b5c5112c065384545ec33a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: it_tplparam.hxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
31 #ifndef ARY_IDL_IT_TPLPARAM_HXX
32 #define ARY_IDL_IT_TPLPARAM_HXX
34 // BASE CLASSES
35 #include "it_named.hxx"
40 namespace ary
42 namespace idl
46 /** @resp Represents a template type when it is used within the
47 declaring struct.
49 class TemplateParamType : public Named_Type
51 public:
52 enum E_ClassId { class_id = 2205 };
54 // LIFECYCLE
55 TemplateParamType(
56 const char * i_sName );
57 virtual ~TemplateParamType();
59 Ce_id StructId() const; /// The struct which declares this type.
60 void Set_StructId(
61 Ce_id i_nStruct );
62 private:
63 // Interface csv::ConstProcessorClient:
64 virtual void do_Accept(
65 csv::ProcessorIfc & io_processor ) const;
66 // Interface Object:
67 virtual ClassId get_AryClass() const;
69 // Interface Type:
70 virtual void inq_Get_Text(
71 StringVector & o_module,
72 String & o_name,
73 Ce_id & o_nRelatedCe,
74 int & o_nSequenceCount,
75 const Gate & i_rGate ) const;
76 // DATA
77 Ce_id nStruct; /// The struct which declares this type.
83 // IMPLEMENTATION
84 inline Ce_id
85 TemplateParamType::StructId() const
87 return nStruct;
90 inline void
91 TemplateParamType::Set_StructId( Ce_id i_nStruct )
93 nStruct = i_nStruct;
99 } // namespace idl
100 } // namespace ary
101 #endif