1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
13 #include <vcl/dllapi.h>
14 #include <widgetdraw/WidgetDefinition.hxx>
16 #include <rtl/ustring.hxx>
17 #include <tools/XmlWalker.hxx>
21 class VCL_DLLPUBLIC WidgetDefinitionReader
24 OUString m_rDefinitionFile
;
25 OUString m_rResourcePath
;
27 void readDefinition(tools::XmlWalker
& rWalker
, WidgetDefinition
& rWidgetDefinition
,
30 void readPart(tools::XmlWalker
& rWalker
, std::shared_ptr
<WidgetDefinitionPart
> rpPart
);
32 void readDrawingDefinition(tools::XmlWalker
& rWalker
,
33 const std::shared_ptr
<WidgetDefinitionState
>& rStates
);
36 WidgetDefinitionReader(OUString aDefinitionFile
, OUString aResourcePath
);
37 bool read(WidgetDefinition
& rWidgetDefinition
);
40 } // end vcl namespace
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */