office-gobmx/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
Caolán McNamara 2f81046033 cid#1554709 COPY_INSTEAD_OF_MOVE
and

cid#1554745 COPY_INSTEAD_OF_MOVE
cid#1554758 COPY_INSTEAD_OF_MOVE
cid#1554766 COPY_INSTEAD_OF_MOVE
cid#1554771 COPY_INSTEAD_OF_MOVE
cid#1554787 COPY_INSTEAD_OF_MOVE
cid#1554802 COPY_INSTEAD_OF_MOVE
cid#1554820 COPY_INSTEAD_OF_MOVE
cid#1554828 COPY_INSTEAD_OF_MOVE
cid#1554829 COPY_INSTEAD_OF_MOVE
cid#1554832 COPY_INSTEAD_OF_MOVE
cid#1554842 COPY_INSTEAD_OF_MOVE
cid#1554885 COPY_INSTEAD_OF_MOVE

Change-Id: I43ec20250a04dc087f3d7fdeafc75f0c1dd0de25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170542
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-16 15:13:41 +02:00

44 lines
1.3 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#pragma once
#include <vcl/dllapi.h>
#include <widgetdraw/WidgetDefinition.hxx>
#include <memory>
#include <rtl/ustring.hxx>
#include <tools/XmlWalker.hxx>
namespace vcl
{
class VCL_DLLPUBLIC WidgetDefinitionReader
{
private:
OUString m_rDefinitionFile;
OUString m_rResourcePath;
SAL_DLLPRIVATE void readDefinition(tools::XmlWalker& rWalker,
WidgetDefinition& rWidgetDefinition, ControlType eType);
SAL_DLLPRIVATE void readPart(tools::XmlWalker& rWalker,
const std::shared_ptr<WidgetDefinitionPart>& rpPart);
SAL_DLLPRIVATE void
readDrawingDefinition(tools::XmlWalker& rWalker,
const std::shared_ptr<WidgetDefinitionState>& rStates);
public:
WidgetDefinitionReader(OUString aDefinitionFile, OUString aResourcePath);
bool read(WidgetDefinition& rWidgetDefinition);
};
} // end vcl namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */