summaryrefslogtreecommitdiff
path: root/include/comphelper/TypeGeneration.hxx
blob: 6e03c0b688b2a534635176a23debac6d364a3440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_COMPHELPER_TYPEGENERATION_HXX
#define INCLUDED_COMPHELPER_TYPEGENERATION_HXX

#include <sal/types.h>
#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<PropertyValue>*)0 )
        CPPUTYPE_PROPERTYVALUES,    //getCppuType( (Sequence<PropertyValues>*)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<text::TableColumnSeparator>*)0 )
        CPPUTYPE_PNTSEQSEQ,         //getCppuType( (PointSequenceSequence*)0 )
        CPPUTYPE_DOCIDXMRK,         //getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 )
        CPPUTYPE_SEQINT8,           //getCppuType( (Sequence<sal_Int8>*)0 )
        CPPUTYPE_SEQTABSTOP,        //getCppuType( (Sequence<style::TabStop>*)0 )
        CPPUTYPE_SEQANCHORTYPE,     //getCppuType( (Sequence<text::TextContentAnchorType>*)0 )
        CPPUTYPE_SEQDEPTXTFLD,      //getCppuType( (Sequence<Reference<XDependentTextField> >*)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_TABLEBORDER2,      //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<XInterface>*)0 )
        CPPUTYPE_REFIDXREPL,        //getCppuType( (Reference<container::XIndexReplace>*)0 )
        CPPUTYPE_REFNAMECNT,        //getCppuType( (Reference<container::XNameContainer>*)0 )
        CPPUTYPE_REFTEXTFRAME,      //getCppuType( (Reference<text::XTextFrame>*)0 )
        CPPUTYPE_REFTEXTSECTION,    //getCppuType( (Reference<text::XTextSection>*)0 )
        CPPUTYPE_REFFOOTNOTE,       //getCppuType( (Reference<text::XFootnote>*)0 )
        CPPUTYPE_REFTEXT,           //getCppuType( (Reference<text::XText>*)0 )
        CPPUTYPE_REFTEXTCOL,        //getCppuType( (Reference<text::XTextColumns>*)0 )

        CPPUTYPE_REFFORBCHARS,      //getCppuType( (Reference<XForbiddenCharacters>*)0)
        CPPUTYPE_REFIDXCNTNR,       //getCppuType( (Reference<XIndexContainer>*)0)
        CPPUTYPE_REFTEXTCNTNT,      //getCppuType( (Reference<XTextContent>*)0)
        CPPUTYPE_REFBITMAP,         //getCppuType( (Reference<awt::XBitmap>*)0)
        CPPUTYPE_REFNMREPLACE,      //getCppuType( (Reference<container::XNameReplace>*)0)
        CPPUTYPE_REFCELL,           //getCppuType( (Reference<table::XCell>*)0)
        CPPUTYPE_REFDOCINDEX,       //getCppuType( (Reference<text::XDocumentIndex>*)0)
        CPPUTYPE_REFDOCIDXMRK,      //getCppuType( (Reference<text::XDocumentIndexMark>*)0)
        CPPUTYPE_REFTXTFIELD,       //getCppuType( (Reference<text::XTextField>*)0)
        CPPUTYPE_REFTXTRANGE,       //getCppuType( (Reference<text::XTextRange>*)0)
        CPPUTYPE_REFTXTTABLE,       //getCppuType( (Reference<text::XTextTable>*)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<OUString>*)0 )
        CPPUTYPE_REFCOMPONENT,      //getCppuType( (Reference< lang::XComponent >*)0 )
        // #i28749#
        CPPUTYPE_TRANSFORMATIONINHORIL2R, //getCppuType( (drawing::HomogenMatrix3)* )
        CPPUTYPE_SEQNAMEDVALUE,     //getCppuType( (Sequence<beans::NamedValue>*)0 )
        CPPUTYPE_REFXGRAPHIC,       //getCppuType( Reference< graphic::XGraphic >*)0)
        CPPUTYPE_TABLEBORDERDISTANCES, //getCppuType( (table::TableBorderDistances*)0 )
        CPPUTPYE_REFEMBEDDEDOBJECT, // XEmbeddedObject::static_type
        CPPUTYPE_FILLSTYLE,         //getCppuType( (drawing::FillStyle*)0 )
        CPPUTYPE_GRADIENT,          //getCppuType( (awt::Gradient*)0 )

        CPPUTYPE_END
    };
    COMPHELPER_DLLPUBLIC void GenerateCppuType (
        CppuTypes eType, const com::sun::star::uno::Type*& pType );
}
#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */