1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include "propertyids.hxx"
25 const OUString
& OPropertyMap::getNameByIndex(sal_Int32 _nIndex
) const
27 ::std::map
<sal_Int32
, OUString
>::const_iterator aIter
= m_aPropertyMap
.find(_nIndex
);
28 if(aIter
== m_aPropertyMap
.end())
30 const_cast<OPropertyMap
*>(this)->fillValue(_nIndex
);
31 aIter
= m_aPropertyMap
.find(_nIndex
);
36 void OPropertyMap::fillValue(sal_Int32 _nIndex
)
41 case PROPERTY_ID_QUERYTIMEOUT
: pStr
= "QueryTimeOut"; break;
42 case PROPERTY_ID_MAXFIELDSIZE
: pStr
= "MaxFieldSize"; break;
43 case PROPERTY_ID_MAXROWS
: pStr
= "MaxRows"; break;
44 case PROPERTY_ID_CURSORNAME
: pStr
= "CursorName"; break;
45 case PROPERTY_ID_RESULTSETCONCURRENCY
: pStr
= "ResultSetConcurrency"; break;
47 case PROPERTY_ID_RESULTSETTYPE
: pStr
= "ResultSetType"; break;
48 case PROPERTY_ID_FETCHDIRECTION
: pStr
= "FetchDirection"; break;
49 case PROPERTY_ID_FETCHSIZE
: pStr
= "FetchSize"; break;
50 case PROPERTY_ID_ESCAPEPROCESSING
: pStr
= "EscapeProcessing"; break;
51 case PROPERTY_ID_USEBOOKMARKS
: pStr
= "UseBookmarks"; break;
53 case PROPERTY_ID_NAME
: pStr
= "Name"; break;
54 case PROPERTY_ID_TYPE
: pStr
= "Type"; break;
55 case PROPERTY_ID_TYPENAME
: pStr
= "TypeName"; break;
56 case PROPERTY_ID_PRECISION
: pStr
= "Precision"; break;
57 case PROPERTY_ID_SCALE
: pStr
= "Scale"; break;
58 case PROPERTY_ID_ISNULLABLE
: pStr
= "IsNullable"; break;
59 case PROPERTY_ID_ISAUTOINCREMENT
: pStr
= "IsAutoIncrement"; break;
60 case PROPERTY_ID_ISROWVERSION
: pStr
= "IsRowVersion"; break;
61 case PROPERTY_ID_DESCRIPTION
: pStr
= "Description"; break;
62 case PROPERTY_ID_DEFAULTVALUE
: pStr
= "DefaultValue"; break;
64 case PROPERTY_ID_REFERENCEDTABLE
: pStr
= "ReferencedTable"; break;
65 case PROPERTY_ID_UPDATERULE
: pStr
= "UpdateRule"; break;
66 case PROPERTY_ID_DELETERULE
: pStr
= "DeleteRule"; break;
67 case PROPERTY_ID_CATALOG
: pStr
= "Catalog"; break;
68 case PROPERTY_ID_ISUNIQUE
: pStr
= "IsUnique"; break;
69 case PROPERTY_ID_ISPRIMARYKEYINDEX
: pStr
= "IsPrimaryKeyIndex"; break;
70 case PROPERTY_ID_ISCLUSTERED
: pStr
= "IsClustered"; break;
71 case PROPERTY_ID_ISASCENDING
: pStr
= "IsAscending"; break;
72 case PROPERTY_ID_SCHEMANAME
: pStr
= "SchemaName"; break;
73 case PROPERTY_ID_CATALOGNAME
: pStr
= "CatalogName"; break;
75 case PROPERTY_ID_COMMAND
: pStr
= "Command"; break;
76 case PROPERTY_ID_CHECKOPTION
: pStr
= "CheckOption"; break;
77 case PROPERTY_ID_PASSWORD
: pStr
= "Password"; break;
78 case PROPERTY_ID_RELATEDCOLUMN
: pStr
= "RelatedColumn"; break;
80 case PROPERTY_ID_FUNCTION
: pStr
= "Function"; break;
81 case PROPERTY_ID_AGGREGATEFUNCTION
: pStr
= "AggregateFunction"; break;
82 case PROPERTY_ID_TABLENAME
: pStr
= "TableName"; break;
83 case PROPERTY_ID_REALNAME
: pStr
= "RealName"; break;
84 case PROPERTY_ID_DBASEPRECISIONCHANGED
: pStr
= "DbasePrecisionChanged"; break;
85 case PROPERTY_ID_ISCURRENCY
: pStr
= "IsCurrency"; break;
86 case PROPERTY_ID_ISBOOKMARKABLE
: pStr
= "IsBookmarkable"; break;
87 case PROPERTY_ID_HY010
: pStr
= "HY010"; break; // error messages
88 case PROPERTY_ID_DELIMITER
: pStr
= "/"; break;
89 case PROPERTY_ID_FORMATKEY
: pStr
= "FormatKey"; break;
90 case PROPERTY_ID_LOCALE
: pStr
= "Locale"; break;
91 case PROPERTY_ID_AUTOINCREMENTCREATION
: pStr
= "AutoIncrementCreation"; break;
92 case PROPERTY_ID_PRIVILEGES
: pStr
= "Privileges"; break;
93 case PROPERTY_ID_HAVINGCLAUSE
: pStr
= "HavingClause"; break;
94 case PROPERTY_ID_ISSIGNED
: pStr
= "IsSigned"; break;
95 case PROPERTY_ID_ISSEARCHABLE
: pStr
= "IsSearchable"; break;
96 case PROPERTY_ID_LABEL
: pStr
= "Label"; break;
97 case PROPERTY_ID_APPLYFILTER
: pStr
= "ApplyFilter"; break;
98 case PROPERTY_ID_FILTER
: pStr
= "Filter"; break;
99 case PROPERTY_ID_MASTERFIELDS
: pStr
= "MasterFields"; break;
100 case PROPERTY_ID_DETAILFIELDS
: pStr
= "DetailFields"; break;
101 case PROPERTY_ID_FIELDTYPE
: pStr
= "FieldType"; break;
102 case PROPERTY_ID_VALUE
: pStr
= "Value"; break;
103 case PROPERTY_ID_ACTIVE_CONNECTION
: pStr
= "ActiveConnection"; break;
105 m_aPropertyMap
[_nIndex
] = pStr
;
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */