LibreOffice Module vcl (master) 1
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#ifndef INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
12#define INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
13
14#include <vcl/dllapi.h>
16#include <memory>
17#include <rtl/ustring.hxx>
18#include <tools/XmlWalker.hxx>
19
20namespace vcl
21{
23{
24private:
27
28 void readDefinition(tools::XmlWalker& rWalker, WidgetDefinition& rWidgetDefinition,
29 ControlType eType);
30
31 void readPart(tools::XmlWalker& rWalker, std::shared_ptr<WidgetDefinitionPart> rpPart);
32
33 void readDrawingDefinition(tools::XmlWalker& rWalker,
34 const std::shared_ptr<WidgetDefinitionState>& rStates);
35
36public:
37 WidgetDefinitionReader(OUString aDefinitionFile, OUString aResourcePath);
38 bool read(WidgetDefinition& rWidgetDefinition);
39};
40
41} // end vcl namespace
42
43#endif // INCLUDED_VCL_INC_WIDGETDEFINITIONREADER_HXX
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...
#define VCL_DLLPUBLIC
Definition: dllapi.h:29