tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / vcl / inc / widgetdraw / WidgetDefinitionReader.hxx
blob5a9bbac76d4c7cc2a215c96449fbe451692bfbac
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 */
11 #pragma once
13 #include <vcl/dllapi.h>
14 #include <widgetdraw/WidgetDefinition.hxx>
15 #include <memory>
16 #include <rtl/ustring.hxx>
17 #include <tools/XmlWalker.hxx>
19 namespace vcl
21 class VCL_DLLPUBLIC WidgetDefinitionReader
23 private:
24 OUString m_rDefinitionFile;
25 OUString m_rResourcePath;
27 SAL_DLLPRIVATE void readDefinition(tools::XmlWalker& rWalker,
28 WidgetDefinition& rWidgetDefinition, ControlType eType);
30 SAL_DLLPRIVATE void readPart(tools::XmlWalker& rWalker,
31 const std::shared_ptr<WidgetDefinitionPart>& rpPart);
33 SAL_DLLPRIVATE void
34 readDrawingDefinition(tools::XmlWalker& rWalker,
35 const std::shared_ptr<WidgetDefinitionState>& rStates);
37 public:
38 WidgetDefinitionReader(OUString aDefinitionFile, OUString aResourcePath);
39 bool read(WidgetDefinition& rWidgetDefinition);
42 } // end vcl namespace
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */