LibreOffice Module xmloff (master)
1
xmloff
source
forms
controlelement.hxx
Go to the documentation of this file.
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
20
#pragma once
21
22
#include <
sal/types.h
>
23
24
namespace
xmloff
25
{
26
27
//= OControlElement
30
class
OControlElement
31
{
32
public
:
33
enum
ElementType
34
{
35
TEXT
= 0,
36
TEXT_AREA
,
37
PASSWORD
,
38
FILE
,
39
FORMATTED_TEXT
,
40
FIXED_TEXT
,
41
COMBOBOX
,
42
LISTBOX
,
43
BUTTON
,
44
IMAGE
,
45
CHECKBOX
,
46
RADIO
,
47
FRAME
,
48
IMAGE_FRAME
,
49
HIDDEN
,
50
GRID
,
51
VALUERANGE
,
52
GENERIC_CONTROL
,
53
TIME
,
54
DATE
,
55
56
UNKNOWN
// must be the last element
57
};
58
59
protected
:
64
OControlElement
() { }
65
66
public
:
74
static
const
char
*
getElementName
(
ElementType
_eType);
75
83
static
sal_Int32
getElementToken
(
ElementType
_eType);
84
};
85
86
}
// namespace xmloff
87
88
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmloff::OControlElement
helper for translating between control types and XML tags
Definition:
controlelement.hxx:31
xmloff::OControlElement::ElementType
ElementType
Definition:
controlelement.hxx:34
xmloff::OControlElement::TEXT_AREA
@ TEXT_AREA
Definition:
controlelement.hxx:36
xmloff::OControlElement::TIME
@ TIME
Definition:
controlelement.hxx:53
xmloff::OControlElement::COMBOBOX
@ COMBOBOX
Definition:
controlelement.hxx:41
xmloff::OControlElement::CHECKBOX
@ CHECKBOX
Definition:
controlelement.hxx:45
xmloff::OControlElement::DATE
@ DATE
Definition:
controlelement.hxx:54
xmloff::OControlElement::FIXED_TEXT
@ FIXED_TEXT
Definition:
controlelement.hxx:40
xmloff::OControlElement::FRAME
@ FRAME
Definition:
controlelement.hxx:47
xmloff::OControlElement::IMAGE_FRAME
@ IMAGE_FRAME
Definition:
controlelement.hxx:48
xmloff::OControlElement::BUTTON
@ BUTTON
Definition:
controlelement.hxx:43
xmloff::OControlElement::RADIO
@ RADIO
Definition:
controlelement.hxx:46
xmloff::OControlElement::TEXT
@ TEXT
Definition:
controlelement.hxx:35
xmloff::OControlElement::GENERIC_CONTROL
@ GENERIC_CONTROL
Definition:
controlelement.hxx:52
xmloff::OControlElement::LISTBOX
@ LISTBOX
Definition:
controlelement.hxx:42
xmloff::OControlElement::VALUERANGE
@ VALUERANGE
Definition:
controlelement.hxx:51
xmloff::OControlElement::GRID
@ GRID
Definition:
controlelement.hxx:50
xmloff::OControlElement::FORMATTED_TEXT
@ FORMATTED_TEXT
Definition:
controlelement.hxx:39
xmloff::OControlElement::IMAGE
@ IMAGE
Definition:
controlelement.hxx:44
xmloff::OControlElement::FILE
@ FILE
Definition:
controlelement.hxx:38
xmloff::OControlElement::UNKNOWN
@ UNKNOWN
Definition:
controlelement.hxx:56
xmloff::OControlElement::PASSWORD
@ PASSWORD
Definition:
controlelement.hxx:37
xmloff::OControlElement::HIDDEN
@ HIDDEN
Definition:
controlelement.hxx:49
xmloff::OControlElement::getElementToken
static sal_Int32 getElementToken(ElementType _eType)
retrieves the tag name to be used to describe a control of the given type
Definition:
controlelement.cxx:57
xmloff::OControlElement::getElementName
static const char * getElementName(ElementType _eType)
retrieves the tag name to be used to describe a control of the given type
Definition:
controlelement.cxx:29
xmloff::OControlElement::OControlElement
OControlElement()
ctor.
Definition:
controlelement.hxx:64
ElementType
ElementType
xmloff
Definition:
ColorPropertySet.cxx:77
types.h
Generated on Sun Jul 30 2023 04:40:30 for LibreOffice Module xmloff (master) by
1.9.3