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 
24 #ifndef _COMPHELPER_TYPEGENERATION_HXX_
25 #define _COMPHELPER_TYPEGENERATION_HXX_
26 
27 #include <sal/types.h>
28 #include "comphelper/comphelperdllapi.h"
29 
30 #define CPPU_E2T(type) 		((com::sun::star::uno::Type*)type)
31 
32 namespace com { namespace sun { namespace star { namespace uno {
33 	class Type;
34 } } } }
35 namespace comphelper
36 {
37 	enum CppuTypes
38 	{
39 		CPPUTYPE_UNKNOWN,			// 0 == unknown == error!!!!
40 
41 		CPPUTYPE_BOOLEAN,			//getBooleanCppuType()
42 		CPPUTYPE_INT8,				//getCppuType( (sal_Int8*)0 )
43 		CPPUTYPE_INT16,				//getCppuType( (sal_Int16*)0 )
44 		CPPUTYPE_INT32,				//getCppuType( (sal_Int32*)0 )
45 		CPPUTYPE_DOUBLE,			//getCppuType( (double*)0 )
46 		CPPUTYPE_FLOAT,				//getCppuType( (float*)0 )
47 		CPPUTYPE_OUSTRING,			//getCppuType( (OUString*)0 )
48 
49 		CPPUTYPE_FONTSLANT,			//getCppuType( (FontSlant*)0 )
50 		CPPUTYPE_LOCALE,			//getCppuType( (Locale*)0 )
51 		CPPUTYPE_PROPERTYVALUE,		//getCppuType( (Sequence<PropertyValue>*)0 )
52 		CPPUTYPE_PROPERTYVALUES, 	//getCppuType( (Sequence<PropertyValues>*)0 )
53 		CPPUTYPE_BORDERLINE,		//getCppuType( (table::BorderLine*)0 )
54 		CPPUTYPE_BREAK,				//getCppuType( (style::BreakType*)0 )
55 		CPPUTYPE_GRAPHICLOC,		//getCppuType( (style::GraphicLocation*)0 )
56 		CPPUTYPE_DROPCAPFMT,		//getCppuType( (style::DropCapFormat*)0 )
57 		CPPUTYPE_LINESPACE,			//getCppuType( (style::LineSpacing*)0 )
58 		CPPUTYPE_AWTSIZE,			//getCppuType( (awt::Size*)0 )
59 		CPPUTYPE_SHADOWFMT,			//getCppuType( (table::ShadowFormat*)0 )
60 		CPPUTYPE_TBLCOLSEP,			//getCppuType( (Sequence<text::TableColumnSeparator>*)0 )
61 		CPPUTYPE_PNTSEQSEQ,			//getCppuType( (PointSequenceSequence*)0 )
62 		CPPUTYPE_DOCIDXMRK,			//getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 )
63 		CPPUTYPE_SEQINT8,			//getCppuType( (Sequence<sal_Int8>*)0 )
64 		CPPUTYPE_SEQTABSTOP,		//getCppuType( (Sequence<style::TabStop>*)0 )
65 		CPPUTYPE_SEQANCHORTYPE,		//getCppuType( (Sequence<text::TextContentAnchorType>*)0 )
66 		CPPUTYPE_SEQDEPTXTFLD,		//getCppuType( (Sequence<Reference<XDependentTextField> >*)0 )
67 		CPPUTYPE_TXTCNTANCHOR,		//getCppuType( (text::TextContentAnchorType*)0 )
68 		CPPUTYPE_WRAPTXTMODE,		//getCppuType( (text::WrapTextMode*)0 )
69 		CPPUTYPE_COLORMODE,			//getCppuType( (drawing::ColorMode*)0 )
70 		CPPUTYPE_PAGESTYLELAY,		//getCppuType( (style::PageStyleLayout*)0 )
71 		CPPUTYPE_VERTALIGN,			//getCppuType( (style::VerticalAlignment*)0 )
72 		CPPUTYPE_TABLEBORDER,		//getCppuType( (table::TableBorder*)0 )
73 		CPPUTYPE_GRFCROP,			//getCppuType( (text::GraphicCrop*)0 )
74 		CPPUTYPE_SECTFILELNK,		//getCppuType( (text::SectionFileLink*)0 )
75 		CPPUTYPE_PAGENUMTYPE,		//getCppuType( (const PageNumberType*)0 )
76 		CPPUTYPE_DATETIME,			//getCppuType( (util::DateTime*)0 )
77 		CPPUTYPE_DATE,				//getCppuType( (util::Date*)0 )
78 
79 		CPPUTYPE_REFINTERFACE,		//getCppuType( (Reference<XInterface>*)0 )
80 		CPPUTYPE_REFIDXREPL,		//getCppuType( (Reference<container::XIndexReplace>*)0 )
81 		CPPUTYPE_REFNAMECNT,		//getCppuType( (Reference<container::XNameContainer>*)0 )
82 		CPPUTYPE_REFTEXTFRAME,		//getCppuType( (Reference<text::XTextFrame>*)0 )
83 		CPPUTYPE_REFTEXTSECTION,	//getCppuType( (Reference<text::XTextSection>*)0 )
84 		CPPUTYPE_REFFOOTNOTE,		//getCppuType( (Reference<text::XFootnote>*)0 )
85 		CPPUTYPE_REFTEXT,			//getCppuType( (Reference<text::XText>*)0 )
86 		CPPUTYPE_REFTEXTCOL,		//getCppuType( (Reference<text::XTextColumns>*)0 )
87 
88 		CPPUTYPE_REFFORBCHARS,		//getCppuType( (Reference<XForbiddenCharacters>*)0)
89 		CPPUTYPE_REFIDXCNTNR,		//getCppuType( (Reference<XIndexContainer>*)0)
90 		CPPUTYPE_REFTEXTCNTNT,		//getCppuType( (Reference<XTextContent>*)0)
91 		CPPUTYPE_REFBITMAP,			//getCppuType( (Reference<awt::XBitmap>*)0)
92 		CPPUTYPE_REFNMREPLACE,		//getCppuType( (Reference<container::XNameReplace>*)0)
93 		CPPUTYPE_REFCELL,			//getCppuType( (Reference<table::XCell>*)0)
94 		CPPUTYPE_REFDOCINDEX,		//getCppuType( (Reference<text::XDocumentIndex>*)0)
95 		CPPUTYPE_REFDOCIDXMRK,		//getCppuType( (Reference<text::XDocumentIndexMark>*)0)
96 		CPPUTYPE_REFTXTFIELD,		//getCppuType( (Reference<text::XTextField>*)0)
97 		CPPUTYPE_REFTXTRANGE,		//getCppuType( (Reference<text::XTextRange>*)0)
98 		CPPUTYPE_REFTXTTABLE,		//getCppuType( (Reference<text::XTextTable>*)0)
99         CPPUTYPE_AWTPOINT,          //getCppuType( (awt::Point*)0 )
100         CPPUTYPE_REFLIBCONTAINER,   //getCppuType( (Reference< script::XLibraryContainer >*)0)
101         CPPUTYPE_SEQANY,            //getCppuType( (Sequence< uno::Any >*)0)
102         CPPUTYPE_REFRESULTSET,      //getCppuType( (Reference< sdbc::XResultSet >*)0)
103         CPPUTYPE_REFCONNECTION,     //getCppuType( (Reference< sdbc::XConnection >*)0)
104         CPPUTYPE_REFMODEL,          //getCppuType( (Reference< frame::XModel >*)0)
105 
106         CPPUTYPE_OUSTRINGS,         //getCppuType( (Sequence<OUString>*)0 )
107         CPPUTYPE_REFCOMPONENT,      //getCppuType( (Reference< lang::XComponent >*)0 )
108         // --> OD 2004-08-09 #i28749#
109         CPPUTYPE_TRANSFORMATIONINHORIL2R, //getCppuType( (drawing::HomogenMatrix3)* )
110         // <--
111         CPPUTYPE_SEQNAMEDVALUE,     //getCppuType( (Sequence<beans::NamedValue>*)0 )
112         CPPUTYPE_REFXGRAPHIC,       //getCppuType( Reference< graphic::XGraphic >*)0)
113         CPPUTYPE_TABLEBORDERDISTANCES, //getCppuType( (table::TableBorderDistances*)0 )
114         CPPUTPYE_REFEMBEDDEDOBJECT, // XEmbeddedObject::static_type
115 
116         //UUUU add types needed for fill style definitions in SW
117         CPPUTYPE_RECTANGLEPOINT,    //getCppuType((drawing::RectanglePoint*)0)
118         CPPUTYPE_BITMAPMODE,        // getCppuType((drawing::BitmapMode*)0)
119         CPPUTYPE_GRADIENT,          // getCppuType((awt::Gradient*)0)
120         CPPUTYPE_HATCH,             // getCppuType((drawing::Hatch*)0)
121         CPPUTYPE_FILLSTYLE,         // getCppuType((drawing::FillStyle*)0)
122 
123         CPPUTYPE_END
124 	};
125 	COMPHELPER_DLLPUBLIC void GenerateCppuType (
126         CppuTypes eType, const com::sun::star::uno::Type*& pType );
127 }
128 #endif
129