1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _XMLOFF_FORMS_VALUEPROPERTIES_HXX_ 25 #define _XMLOFF_FORMS_VALUEPROPERTIES_HXX_ 26 27 #include "controlelement.hxx" 28 29 //......................................................................... 30 namespace xmloff 31 { 32 //......................................................................... 33 34 //===================================================================== 35 //= OValuePropertiesMetaData 36 //===================================================================== 37 class OValuePropertiesMetaData 38 { 39 protected: OValuePropertiesMetaData()40 OValuePropertiesMetaData() { } 41 42 public: 43 /** calculate the property names for the <em>current-value</em> and the <em>value</em> attribute. 44 45 <p>If controls of the given FormComponentType do not have any of the properties requested, 46 the respective out parameter will be set to NULL.</p> 47 */ 48 static void getValuePropertyNames( 49 OControlElement::ElementType _eType, 50 sal_Int16 _nFormComponentType, 51 sal_Char const * & _rpCurrentValuePropertyName, 52 sal_Char const * & _rpValuePropertyName); 53 54 /** calculate the property names for the <em>min-value</em> and the <em>max-value</em> attribute. 55 56 <p>If controls of the given FormComponentType do not have any of the properties requested, 57 the respective out parameter will be set to NULL.</p> 58 */ 59 static void getValueLimitPropertyNames( 60 sal_Int16 _nFormComponentType, 61 sal_Char const * & _rpMinValuePropertyName, 62 sal_Char const * & _rpMaxValuePropertyName); 63 64 /** calculate the names of the properties which, at runtime, are used for <em>value</em> and 65 <em>default value</em>. 66 */ 67 static void getRuntimeValuePropertyNames( 68 OControlElement::ElementType _eType, 69 sal_Int16 _nFormComponentType, 70 sal_Char const * & _rpValuePropertyName, 71 sal_Char const * & _rpDefaultValuePropertyName); 72 }; 73 74 //......................................................................... 75 } // namespace xmloff 76 //......................................................................... 77 78 #endif // _XMLOFF_FORMS_VALUEPROPERTIES_HXX_ 79 80 81