LCOV - code coverage report
Current view: top level - connectivity/source/inc - propertyids.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2012-08-25 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * This file is part of the LibreOffice project.
       4                 :            :  *
       5                 :            :  * This Source Code Form is subject to the terms of the Mozilla Public
       6                 :            :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7                 :            :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8                 :            :  *
       9                 :            :  * This file incorporates work covered by the following license notice:
      10                 :            :  *
      11                 :            :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12                 :            :  *   contributor license agreements. See the NOTICE file distributed
      13                 :            :  *   with this work for additional information regarding copyright
      14                 :            :  *   ownership. The ASF licenses this file to you under the Apache
      15                 :            :  *   License, Version 2.0 (the "License"); you may not use this file
      16                 :            :  *   except in compliance with the License. You may obtain a copy of
      17                 :            :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18                 :            :  */
      19                 :            : #ifndef _CONNECTIVITY_PROPERTYIDS_HXX_
      20                 :            : #define _CONNECTIVITY_PROPERTYIDS_HXX_
      21                 :            : 
      22                 :            : // this define has to be set to split the names into different dll's or so's
      23                 :            : // every dll has his own set of property names
      24                 :            : #include <rtl/ustring.hxx>
      25                 :            : #ifndef _MAP_
      26                 :            : #include <map>
      27                 :            : #endif
      28                 :            : #include "connectivity/dbtoolsdllapi.hxx"
      29                 :            : 
      30                 :            : namespace dbtools
      31                 :            : {
      32                 :            :     class OOO_DLLPUBLIC_DBTOOLS OPropertyMap
      33                 :            :     {
      34                 :            :         ::std::map<sal_Int32 , rtl_uString*> m_aPropertyMap;
      35                 :            : 
      36                 :            :         ::rtl::OUString fillValue(sal_Int32 _nIndex);
      37                 :            :     public:
      38                 :         32 :         OPropertyMap()
      39                 :         32 :         {
      40                 :         32 :         }
      41                 :            :         ~OPropertyMap();
      42                 :            :         ::rtl::OUString getNameByIndex(sal_Int32 _nIndex) const;
      43                 :            :     };
      44                 :            : }
      45                 :            : 
      46                 :            : namespace connectivity
      47                 :            : {
      48                 :            :     namespace CONNECTIVITY_PROPERTY_NAME_SPACE
      49                 :            :     {
      50                 :            :         typedef const sal_Char* (*PVFN)();
      51                 :            : 
      52                 :            :         struct OOO_DLLPUBLIC_DBTOOLS UStringDescription
      53                 :            :         {
      54                 :            :             const sal_Char* pZeroTerminatedName;
      55                 :            :             sal_Int32 nLength;
      56                 :            : 
      57                 :            :             UStringDescription(PVFN _fCharFkt);
      58                 :            :             operator ::rtl::OUString() const { return ::rtl::OUString(pZeroTerminatedName,nLength,RTL_TEXTENCODING_ASCII_US); }
      59                 :            :             ~UStringDescription();
      60                 :            :         private:
      61                 :            :             UStringDescription();
      62                 :            :         };
      63                 :            :     }
      64                 :            : }
      65                 :            : 
      66                 :            : 
      67                 :            : //------------------------------------------------------------------------------
      68                 :            : #define DECL_PROP1IMPL(varname, type) \
      69                 :            : pProperties[nPos++] = ::com::sun::star::beans::Property(::connectivity::OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_##varname), PROPERTY_ID_##varname, ::getCppuType(static_cast< type*>(0)),
      70                 :            : //------------------------------------------------------------------------------
      71                 :            : #define DECL_PROP0(varname, type)   \
      72                 :            :     DECL_PROP1IMPL(varname, type) 0)
      73                 :            : //------------------------------------------------------------------------------
      74                 :            : #define DECL_BOOL_PROP1IMPL(varname) \
      75                 :            :         pProperties[nPos++] = ::com::sun::star::beans::Property(::connectivity::OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_##varname), PROPERTY_ID_##varname, ::getBooleanCppuType(),
      76                 :            : //------------------------------------------------------------------------------
      77                 :            : #define DECL_BOOL_PROP0(varname)    \
      78                 :            :     DECL_BOOL_PROP1IMPL(varname) 0)
      79                 :            : 
      80                 :            : 
      81                 :            : #define PROPERTY_ID_QUERYTIMEOUT                    1
      82                 :            : #define PROPERTY_ID_MAXFIELDSIZE                    2
      83                 :            : #define PROPERTY_ID_MAXROWS                         3
      84                 :            : #define PROPERTY_ID_CURSORNAME                      4
      85                 :            : #define PROPERTY_ID_RESULTSETCONCURRENCY            5
      86                 :            : #define PROPERTY_ID_RESULTSETTYPE                   6
      87                 :            : #define PROPERTY_ID_FETCHDIRECTION                  7
      88                 :            : #define PROPERTY_ID_FETCHSIZE                       8
      89                 :            : #define PROPERTY_ID_ESCAPEPROCESSING                9
      90                 :            : #define PROPERTY_ID_USEBOOKMARKS                    10
      91                 :            : // Column
      92                 :            : #define PROPERTY_ID_NAME                            11
      93                 :            : #define PROPERTY_ID_TYPE                            12
      94                 :            : #define PROPERTY_ID_TYPENAME                        13
      95                 :            : #define PROPERTY_ID_PRECISION                       14
      96                 :            : #define PROPERTY_ID_SCALE                           15
      97                 :            : #define PROPERTY_ID_ISNULLABLE                      16
      98                 :            : #define PROPERTY_ID_ISAUTOINCREMENT                 17
      99                 :            : #define PROPERTY_ID_ISROWVERSION                    18
     100                 :            : #define PROPERTY_ID_DESCRIPTION                     19
     101                 :            : #define PROPERTY_ID_DEFAULTVALUE                    20
     102                 :            : 
     103                 :            : #define PROPERTY_ID_REFERENCEDTABLE                 21
     104                 :            : #define PROPERTY_ID_UPDATERULE                      22
     105                 :            : #define PROPERTY_ID_DELETERULE                      23
     106                 :            : #define PROPERTY_ID_CATALOG                         24
     107                 :            : #define PROPERTY_ID_ISUNIQUE                        25
     108                 :            : #define PROPERTY_ID_ISPRIMARYKEYINDEX               26
     109                 :            : #define PROPERTY_ID_ISCLUSTERED                     27
     110                 :            : #define PROPERTY_ID_ISASCENDING                     28
     111                 :            : #define PROPERTY_ID_SCHEMANAME                      29
     112                 :            : #define PROPERTY_ID_CATALOGNAME                     30
     113                 :            : 
     114                 :            : #define PROPERTY_ID_COMMAND                         31
     115                 :            : #define PROPERTY_ID_CHECKOPTION                     32
     116                 :            : #define PROPERTY_ID_PASSWORD                        33
     117                 :            : #define PROPERTY_ID_RELATEDCOLUMN                   34
     118                 :            : 
     119                 :            : #define PROPERTY_ID_FUNCTION                        35
     120                 :            : #define PROPERTY_ID_TABLENAME                       36
     121                 :            : #define PROPERTY_ID_REALNAME                        37
     122                 :            : #define PROPERTY_ID_DBASEPRECISIONCHANGED           38
     123                 :            : #define PROPERTY_ID_ISCURRENCY                      39
     124                 :            : #define PROPERTY_ID_ISBOOKMARKABLE                  40
     125                 :            : 
     126                 :            : #define PROPERTY_ID_INVALID_INDEX                   41
     127                 :            : #define PROPERTY_ID_HY010                           43
     128                 :            : #define PROPERTY_ID_LABEL                           44
     129                 :            : #define PROPERTY_ID_DELIMITER                       45
     130                 :            : #define PROPERTY_ID_FORMATKEY                       46
     131                 :            : #define PROPERTY_ID_LOCALE                          47
     132                 :            : #define PROPERTY_ID_IM001                           48
     133                 :            : 
     134                 :            : #define PROPERTY_ID_AUTOINCREMENTCREATION           49
     135                 :            : 
     136                 :            : #define PROPERTY_ID_PRIVILEGES                      50
     137                 :            : #define PROPERTY_ID_HAVINGCLAUSE                    51
     138                 :            : 
     139                 :            : #define PROPERTY_ID_ISSIGNED                        52
     140                 :            : #define PROPERTY_ID_AGGREGATEFUNCTION               53
     141                 :            : #define PROPERTY_ID_ISSEARCHABLE                    54
     142                 :            : 
     143                 :            : #define PROPERTY_ID_APPLYFILTER                     55
     144                 :            : #define PROPERTY_ID_FILTER                          56
     145                 :            : #define PROPERTY_ID_MASTERFIELDS                    57
     146                 :            : #define PROPERTY_ID_DETAILFIELDS                    58
     147                 :            : #define PROPERTY_ID_FIELDTYPE                       59
     148                 :            : #define PROPERTY_ID_VALUE                           60
     149                 :            : #define PROPERTY_ID_ACTIVE_CONNECTION               61
     150                 :            : 
     151                 :            : #endif // _CONNECTIVITY_PROPERTYIDS_HXX_
     152                 :            : 
     153                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10