19877b273SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 39877b273SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 49877b273SAndrew Rist * or more contributor license agreements. See the NOTICE file 59877b273SAndrew Rist * distributed with this work for additional information 69877b273SAndrew Rist * regarding copyright ownership. The ASF licenses this file 79877b273SAndrew Rist * to you under the Apache License, Version 2.0 (the 89877b273SAndrew Rist * "License"); you may not use this file except in compliance 99877b273SAndrew Rist * with the License. You may obtain a copy of the License at 109877b273SAndrew Rist * 119877b273SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 129877b273SAndrew Rist * 139877b273SAndrew Rist * Unless required by applicable law or agreed to in writing, 149877b273SAndrew Rist * software distributed under the License is distributed on an 159877b273SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 169877b273SAndrew Rist * KIND, either express or implied. See the License for the 179877b273SAndrew Rist * specific language governing permissions and limitations 189877b273SAndrew Rist * under the License. 199877b273SAndrew Rist * 209877b273SAndrew Rist *************************************************************/ 219877b273SAndrew Rist 229877b273SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _COMPHELPER_TYPEGENERATION_HXX_ 25cdf0e10cSrcweir #define _COMPHELPER_TYPEGENERATION_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <sal/types.h> 28cdf0e10cSrcweir #include "comphelper/comphelperdllapi.h" 29cdf0e10cSrcweir 30cdf0e10cSrcweir #define CPPU_E2T(type) ((com::sun::star::uno::Type*)type) 31cdf0e10cSrcweir 32cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace uno { 33cdf0e10cSrcweir class Type; 34cdf0e10cSrcweir } } } } 35cdf0e10cSrcweir namespace comphelper 36cdf0e10cSrcweir { 37cdf0e10cSrcweir enum CppuTypes 38cdf0e10cSrcweir { 39cdf0e10cSrcweir CPPUTYPE_UNKNOWN, // 0 == unknown == error!!!! 40cdf0e10cSrcweir 41cdf0e10cSrcweir CPPUTYPE_BOOLEAN, //getBooleanCppuType() 42cdf0e10cSrcweir CPPUTYPE_INT8, //getCppuType( (sal_Int8*)0 ) 43cdf0e10cSrcweir CPPUTYPE_INT16, //getCppuType( (sal_Int16*)0 ) 44cdf0e10cSrcweir CPPUTYPE_INT32, //getCppuType( (sal_Int32*)0 ) 45cdf0e10cSrcweir CPPUTYPE_DOUBLE, //getCppuType( (double*)0 ) 46cdf0e10cSrcweir CPPUTYPE_FLOAT, //getCppuType( (float*)0 ) 47cdf0e10cSrcweir CPPUTYPE_OUSTRING, //getCppuType( (OUString*)0 ) 48cdf0e10cSrcweir 49cdf0e10cSrcweir CPPUTYPE_FONTSLANT, //getCppuType( (FontSlant*)0 ) 50cdf0e10cSrcweir CPPUTYPE_LOCALE, //getCppuType( (Locale*)0 ) 51cdf0e10cSrcweir CPPUTYPE_PROPERTYVALUE, //getCppuType( (Sequence<PropertyValue>*)0 ) 52cdf0e10cSrcweir CPPUTYPE_PROPERTYVALUES, //getCppuType( (Sequence<PropertyValues>*)0 ) 53cdf0e10cSrcweir CPPUTYPE_BORDERLINE, //getCppuType( (table::BorderLine*)0 ) 54cdf0e10cSrcweir CPPUTYPE_BREAK, //getCppuType( (style::BreakType*)0 ) 55cdf0e10cSrcweir CPPUTYPE_GRAPHICLOC, //getCppuType( (style::GraphicLocation*)0 ) 56cdf0e10cSrcweir CPPUTYPE_DROPCAPFMT, //getCppuType( (style::DropCapFormat*)0 ) 57cdf0e10cSrcweir CPPUTYPE_LINESPACE, //getCppuType( (style::LineSpacing*)0 ) 58cdf0e10cSrcweir CPPUTYPE_AWTSIZE, //getCppuType( (awt::Size*)0 ) 59cdf0e10cSrcweir CPPUTYPE_SHADOWFMT, //getCppuType( (table::ShadowFormat*)0 ) 60cdf0e10cSrcweir CPPUTYPE_TBLCOLSEP, //getCppuType( (Sequence<text::TableColumnSeparator>*)0 ) 61cdf0e10cSrcweir CPPUTYPE_PNTSEQSEQ, //getCppuType( (PointSequenceSequence*)0 ) 62cdf0e10cSrcweir CPPUTYPE_DOCIDXMRK, //getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 ) 63cdf0e10cSrcweir CPPUTYPE_SEQINT8, //getCppuType( (Sequence<sal_Int8>*)0 ) 64cdf0e10cSrcweir CPPUTYPE_SEQTABSTOP, //getCppuType( (Sequence<style::TabStop>*)0 ) 65cdf0e10cSrcweir CPPUTYPE_SEQANCHORTYPE, //getCppuType( (Sequence<text::TextContentAnchorType>*)0 ) 66cdf0e10cSrcweir CPPUTYPE_SEQDEPTXTFLD, //getCppuType( (Sequence<Reference<XDependentTextField> >*)0 ) 67cdf0e10cSrcweir CPPUTYPE_TXTCNTANCHOR, //getCppuType( (text::TextContentAnchorType*)0 ) 68cdf0e10cSrcweir CPPUTYPE_WRAPTXTMODE, //getCppuType( (text::WrapTextMode*)0 ) 69cdf0e10cSrcweir CPPUTYPE_COLORMODE, //getCppuType( (drawing::ColorMode*)0 ) 70cdf0e10cSrcweir CPPUTYPE_PAGESTYLELAY, //getCppuType( (style::PageStyleLayout*)0 ) 71cdf0e10cSrcweir CPPUTYPE_VERTALIGN, //getCppuType( (style::VerticalAlignment*)0 ) 72cdf0e10cSrcweir CPPUTYPE_TABLEBORDER, //getCppuType( (table::TableBorder*)0 ) 73cdf0e10cSrcweir CPPUTYPE_GRFCROP, //getCppuType( (text::GraphicCrop*)0 ) 74cdf0e10cSrcweir CPPUTYPE_SECTFILELNK, //getCppuType( (text::SectionFileLink*)0 ) 75cdf0e10cSrcweir CPPUTYPE_PAGENUMTYPE, //getCppuType( (const PageNumberType*)0 ) 76cdf0e10cSrcweir CPPUTYPE_DATETIME, //getCppuType( (util::DateTime*)0 ) 77cdf0e10cSrcweir CPPUTYPE_DATE, //getCppuType( (util::Date*)0 ) 78cdf0e10cSrcweir 79cdf0e10cSrcweir CPPUTYPE_REFINTERFACE, //getCppuType( (Reference<XInterface>*)0 ) 80cdf0e10cSrcweir CPPUTYPE_REFIDXREPL, //getCppuType( (Reference<container::XIndexReplace>*)0 ) 81cdf0e10cSrcweir CPPUTYPE_REFNAMECNT, //getCppuType( (Reference<container::XNameContainer>*)0 ) 82cdf0e10cSrcweir CPPUTYPE_REFTEXTFRAME, //getCppuType( (Reference<text::XTextFrame>*)0 ) 83cdf0e10cSrcweir CPPUTYPE_REFTEXTSECTION, //getCppuType( (Reference<text::XTextSection>*)0 ) 84cdf0e10cSrcweir CPPUTYPE_REFFOOTNOTE, //getCppuType( (Reference<text::XFootnote>*)0 ) 85cdf0e10cSrcweir CPPUTYPE_REFTEXT, //getCppuType( (Reference<text::XText>*)0 ) 86cdf0e10cSrcweir CPPUTYPE_REFTEXTCOL, //getCppuType( (Reference<text::XTextColumns>*)0 ) 87cdf0e10cSrcweir 88cdf0e10cSrcweir CPPUTYPE_REFFORBCHARS, //getCppuType( (Reference<XForbiddenCharacters>*)0) 89cdf0e10cSrcweir CPPUTYPE_REFIDXCNTNR, //getCppuType( (Reference<XIndexContainer>*)0) 90cdf0e10cSrcweir CPPUTYPE_REFTEXTCNTNT, //getCppuType( (Reference<XTextContent>*)0) 91cdf0e10cSrcweir CPPUTYPE_REFBITMAP, //getCppuType( (Reference<awt::XBitmap>*)0) 92cdf0e10cSrcweir CPPUTYPE_REFNMREPLACE, //getCppuType( (Reference<container::XNameReplace>*)0) 93cdf0e10cSrcweir CPPUTYPE_REFCELL, //getCppuType( (Reference<table::XCell>*)0) 94cdf0e10cSrcweir CPPUTYPE_REFDOCINDEX, //getCppuType( (Reference<text::XDocumentIndex>*)0) 95cdf0e10cSrcweir CPPUTYPE_REFDOCIDXMRK, //getCppuType( (Reference<text::XDocumentIndexMark>*)0) 96cdf0e10cSrcweir CPPUTYPE_REFTXTFIELD, //getCppuType( (Reference<text::XTextField>*)0) 97cdf0e10cSrcweir CPPUTYPE_REFTXTRANGE, //getCppuType( (Reference<text::XTextRange>*)0) 98cdf0e10cSrcweir CPPUTYPE_REFTXTTABLE, //getCppuType( (Reference<text::XTextTable>*)0) 99cdf0e10cSrcweir CPPUTYPE_AWTPOINT, //getCppuType( (awt::Point*)0 ) 100cdf0e10cSrcweir CPPUTYPE_REFLIBCONTAINER, //getCppuType( (Reference< script::XLibraryContainer >*)0) 101cdf0e10cSrcweir CPPUTYPE_SEQANY, //getCppuType( (Sequence< uno::Any >*)0) 102cdf0e10cSrcweir CPPUTYPE_REFRESULTSET, //getCppuType( (Reference< sdbc::XResultSet >*)0) 103cdf0e10cSrcweir CPPUTYPE_REFCONNECTION, //getCppuType( (Reference< sdbc::XConnection >*)0) 104cdf0e10cSrcweir CPPUTYPE_REFMODEL, //getCppuType( (Reference< frame::XModel >*)0) 105cdf0e10cSrcweir 106cdf0e10cSrcweir CPPUTYPE_OUSTRINGS, //getCppuType( (Sequence<OUString>*)0 ) 107cdf0e10cSrcweir CPPUTYPE_REFCOMPONENT, //getCppuType( (Reference< lang::XComponent >*)0 ) 108cdf0e10cSrcweir // --> OD 2004-08-09 #i28749# 109cdf0e10cSrcweir CPPUTYPE_TRANSFORMATIONINHORIL2R, //getCppuType( (drawing::HomogenMatrix3)* ) 110cdf0e10cSrcweir // <-- 111cdf0e10cSrcweir CPPUTYPE_SEQNAMEDVALUE, //getCppuType( (Sequence<beans::NamedValue>*)0 ) 112cdf0e10cSrcweir CPPUTYPE_REFXGRAPHIC, //getCppuType( Reference< graphic::XGraphic >*)0) 113cdf0e10cSrcweir CPPUTYPE_TABLEBORDERDISTANCES, //getCppuType( (table::TableBorderDistances*)0 ) 114cdf0e10cSrcweir CPPUTPYE_REFEMBEDDEDOBJECT, // XEmbeddedObject::static_type 115cdf0e10cSrcweir 116*64b14621SArmin Le Grand //UUUU add types needed for fill style definitions in SW 117*64b14621SArmin Le Grand CPPUTYPE_RECTANGLEPOINT, //getCppuType((drawing::RectanglePoint*)0) 118*64b14621SArmin Le Grand CPPUTYPE_BITMAPMODE, // getCppuType((drawing::BitmapMode*)0) 119*64b14621SArmin Le Grand CPPUTYPE_GRADIENT, // getCppuType((awt::Gradient*)0) 120*64b14621SArmin Le Grand CPPUTYPE_HATCH, // getCppuType((drawing::Hatch*)0) 121*64b14621SArmin Le Grand CPPUTYPE_FILLSTYLE, // getCppuType((drawing::FillStyle*)0) 122*64b14621SArmin Le Grand 123cdf0e10cSrcweir CPPUTYPE_END 124cdf0e10cSrcweir }; 125cdf0e10cSrcweir COMPHELPER_DLLPUBLIC void GenerateCppuType ( 126cdf0e10cSrcweir CppuTypes eType, const com::sun::star::uno::Type*& pType ); 127cdf0e10cSrcweir } 128cdf0e10cSrcweir #endif 129