LibreOffice Module vcl (master)
1
vcl
inc
widgetdraw
WidgetDefinitionReader.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
*/
10
11
#pragma once
12
13
#include <
vcl/dllapi.h
>
14
#include <
widgetdraw/WidgetDefinition.hxx
>
15
#include <memory>
16
#include <rtl/ustring.hxx>
17
#include <
tools/XmlWalker.hxx
>
18
19
namespace
vcl
20
{
21
class
VCL_DLLPUBLIC
WidgetDefinitionReader
22
{
23
private
:
24
OUString
m_rDefinitionFile
;
25
OUString
m_rResourcePath
;
26
27
void
readDefinition(
tools::XmlWalker
& rWalker,
WidgetDefinition
& rWidgetDefinition,
28
ControlType
eType);
29
30
void
readPart(
tools::XmlWalker
& rWalker, std::shared_ptr<WidgetDefinitionPart> rpPart);
31
32
void
readDrawingDefinition(
tools::XmlWalker
& rWalker,
33
const
std::shared_ptr<WidgetDefinitionState>& rStates);
34
35
public
:
36
WidgetDefinitionReader
(OUString aDefinitionFile, OUString aResourcePath);
37
bool
read(
WidgetDefinition
& rWidgetDefinition);
38
};
39
40
}
// end vcl namespace
41
42
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
WidgetDefinition.hxx
ControlType
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...
Definition:
WidgetThemeLibraryTypes.hxx:28
XmlWalker.hxx
tools::XmlWalker
vcl::WidgetDefinitionReader
Definition:
WidgetDefinitionReader.hxx:22
vcl::WidgetDefinitionReader::m_rResourcePath
OUString m_rResourcePath
Definition:
WidgetDefinitionReader.hxx:25
vcl::WidgetDefinitionReader::m_rDefinitionFile
OUString m_rDefinitionFile
Definition:
WidgetDefinitionReader.hxx:24
vcl::WidgetDefinition
Definition:
WidgetDefinition.hxx:283
dllapi.h
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
vcl
Generated on Sun Jul 30 2023 04:35:02 for LibreOffice Module vcl (master) by
1.9.3