/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef _COMPHELPER_TYPEGENERATION_HXX_ #define _COMPHELPER_TYPEGENERATION_HXX_ #include #include "comphelper/comphelperdllapi.h" #define CPPU_E2T(type) ((com::sun::star::uno::Type*)type) namespace com { namespace sun { namespace star { namespace uno { class Type; } } } } namespace comphelper { enum CppuTypes { CPPUTYPE_UNKNOWN, // 0 == unknown == error!!!! CPPUTYPE_BOOLEAN, //getBooleanCppuType() CPPUTYPE_INT8, //getCppuType( (sal_Int8*)0 ) CPPUTYPE_INT16, //getCppuType( (sal_Int16*)0 ) CPPUTYPE_INT32, //getCppuType( (sal_Int32*)0 ) CPPUTYPE_DOUBLE, //getCppuType( (double*)0 ) CPPUTYPE_FLOAT, //getCppuType( (float*)0 ) CPPUTYPE_OUSTRING, //getCppuType( (OUString*)0 ) CPPUTYPE_FONTSLANT, //getCppuType( (FontSlant*)0 ) CPPUTYPE_LOCALE, //getCppuType( (Locale*)0 ) CPPUTYPE_PROPERTYVALUE, //getCppuType( (Sequence*)0 ) CPPUTYPE_PROPERTYVALUES, //getCppuType( (Sequence*)0 ) CPPUTYPE_BORDERLINE, //getCppuType( (table::BorderLine*)0 ) CPPUTYPE_BREAK, //getCppuType( (style::BreakType*)0 ) CPPUTYPE_GRAPHICLOC, //getCppuType( (style::GraphicLocation*)0 ) CPPUTYPE_DROPCAPFMT, //getCppuType( (style::DropCapFormat*)0 ) CPPUTYPE_LINESPACE, //getCppuType( (style::LineSpacing*)0 ) CPPUTYPE_AWTSIZE, //getCppuType( (awt::Size*)0 ) CPPUTYPE_SHADOWFMT, //getCppuType( (table::ShadowFormat*)0 ) CPPUTYPE_TBLCOLSEP, //getCppuType( (Sequence*)0 ) CPPUTYPE_PNTSEQSEQ, //getCppuType( (PointSequenceSequence*)0 ) CPPUTYPE_DOCIDXMRK, //getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 ) CPPUTYPE_SEQINT8, //getCppuType( (Sequence*)0 ) CPPUTYPE_SEQTABSTOP, //getCppuType( (Sequence*)0 ) CPPUTYPE_SEQANCHORTYPE, //getCppuType( (Sequence*)0 ) CPPUTYPE_SEQDEPTXTFLD, //getCppuType( (Sequence >*)0 ) CPPUTYPE_TXTCNTANCHOR, //getCppuType( (text::TextContentAnchorType*)0 ) CPPUTYPE_WRAPTXTMODE, //getCppuType( (text::WrapTextMode*)0 ) CPPUTYPE_LINESTYLE, //getCppuType( (drawing::LineStyle*)0 ) CPPUTYPE_COLORMODE, //getCppuType( (drawing::ColorMode*)0 ) CPPUTYPE_PAGESTYLELAY, //getCppuType( (style::PageStyleLayout*)0 ) CPPUTYPE_VERTALIGN, //getCppuType( (style::VerticalAlignment*)0 ) CPPUTYPE_TABLEBORDER, //getCppuType( (table::TableBorder*)0 ) CPPUTYPE_GRFCROP, //getCppuType( (text::GraphicCrop*)0 ) CPPUTYPE_SECTFILELNK, //getCppuType( (text::SectionFileLink*)0 ) CPPUTYPE_PAGENUMTYPE, //getCppuType( (const PageNumberType*)0 ) CPPUTYPE_DATETIME, //getCppuType( (util::DateTime*)0 ) CPPUTYPE_DATE, //getCppuType( (util::Date*)0 ) CPPUTYPE_REFINTERFACE, //getCppuType( (Reference*)0 ) CPPUTYPE_REFIDXREPL, //getCppuType( (Reference*)0 ) CPPUTYPE_REFNAMECNT, //getCppuType( (Reference*)0 ) CPPUTYPE_REFTEXTFRAME, //getCppuType( (Reference*)0 ) CPPUTYPE_REFTEXTSECTION, //getCppuType( (Reference*)0 ) CPPUTYPE_REFFOOTNOTE, //getCppuType( (Reference*)0 ) CPPUTYPE_REFTEXT, //getCppuType( (Reference*)0 ) CPPUTYPE_REFTEXTCOL, //getCppuType( (Reference*)0 ) CPPUTYPE_REFFORBCHARS, //getCppuType( (Reference*)0) CPPUTYPE_REFIDXCNTNR, //getCppuType( (Reference*)0) CPPUTYPE_REFTEXTCNTNT, //getCppuType( (Reference*)0) CPPUTYPE_REFBITMAP, //getCppuType( (Reference*)0) CPPUTYPE_REFNMREPLACE, //getCppuType( (Reference*)0) CPPUTYPE_REFCELL, //getCppuType( (Reference*)0) CPPUTYPE_REFDOCINDEX, //getCppuType( (Reference*)0) CPPUTYPE_REFDOCIDXMRK, //getCppuType( (Reference*)0) CPPUTYPE_REFTXTFIELD, //getCppuType( (Reference*)0) CPPUTYPE_REFTXTRANGE, //getCppuType( (Reference*)0) CPPUTYPE_REFTXTTABLE, //getCppuType( (Reference*)0) CPPUTYPE_AWTPOINT, //getCppuType( (awt::Point*)0 ) CPPUTYPE_REFLIBCONTAINER, //getCppuType( (Reference< script::XLibraryContainer >*)0) CPPUTYPE_SEQANY, //getCppuType( (Sequence< uno::Any >*)0) CPPUTYPE_REFRESULTSET, //getCppuType( (Reference< sdbc::XResultSet >*)0) CPPUTYPE_REFCONNECTION, //getCppuType( (Reference< sdbc::XConnection >*)0) CPPUTYPE_REFMODEL, //getCppuType( (Reference< frame::XModel >*)0) CPPUTYPE_OUSTRINGS, //getCppuType( (Sequence*)0 ) CPPUTYPE_REFCOMPONENT, //getCppuType( (Reference< lang::XComponent >*)0 ) // #i28749# CPPUTYPE_TRANSFORMATIONINHORIL2R, //getCppuType( (drawing::HomogenMatrix3)* ) CPPUTYPE_SEQNAMEDVALUE, //getCppuType( (Sequence*)0 ) CPPUTYPE_REFXGRAPHIC, //getCppuType( Reference< graphic::XGraphic >*)0) CPPUTYPE_TABLEBORDERDISTANCES, //getCppuType( (table::TableBorderDistances*)0 ) CPPUTPYE_REFEMBEDDEDOBJECT, // XEmbeddedObject::static_type CPPUTYPE_END }; COMPHELPER_DLLPUBLIC void GenerateCppuType ( CppuTypes eType, const com::sun::star::uno::Type*& pType ); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */