weld: Move ScreenShotEntry/ScreenShotCollection to own header

Move the ScreenShotEntry class and ScreenShotCollection
typedef out of weld.hxx into an own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I3a040759e2ae6cd056613c598062e9716ee04649
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205888
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-06-02 08:46:42 +02:00
parent 216e201eba
commit 7e1b368025
4 changed files with 43 additions and 23 deletions
@@ -48,6 +48,7 @@
#include <vcl/virdev.hxx>
#include <vcl/weld/Builder.hxx>
#include <vcl/weld/Dialog.hxx>
#include <vcl/weld/ScreenshotEntry.hxx>
#include <vcl/weld/TextView.hxx>
#include <vcl/weld/customweld.hxx>
#include <vcl/weld/weld.hxx>
+41
View File
@@ -0,0 +1,41 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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 <basegfx/range/b2irange.hxx>
#include <rtl/ustring.hxx>
#include <vcl/dllapi.h>
#include <vector>
namespace weld
{
class VCL_DLLPUBLIC ScreenShotEntry
{
public:
ScreenShotEntry(OUString aHelpId, const basegfx::B2IRange& rB2IRange)
: msHelpId(std::move(aHelpId))
, maB2IRange(rB2IRange)
{
}
const basegfx::B2IRange& getB2IRange() const { return maB2IRange; }
const OUString& GetHelpId() const { return msHelpId; }
private:
OUString msHelpId;
basegfx::B2IRange maB2IRange;
};
typedef std::vector<ScreenShotEntry> ScreenShotCollection;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
+1
View File
@@ -10,6 +10,7 @@
#pragma once
#include <vcl/dllapi.h>
#include <vcl/weld/ScreenshotEntry.hxx>
#include <vcl/weld/weld.hxx>
struct SystemEnvData;
-23
View File
@@ -9,18 +9,15 @@
#pragma once
#include <basegfx/range/b2irange.hxx>
#include <rtl/ustring.hxx>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <vcl/dllapi.h>
#include <vcl/weld/Widget.hxx>
#include <utility>
#include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
#include <assert.h>
#include <vector>
namespace com::sun::star::awt
{
@@ -77,26 +74,6 @@ public:
virtual void child_grab_focus() = 0;
};
class VCL_DLLPUBLIC ScreenShotEntry
{
public:
ScreenShotEntry(OUString aHelpId, const basegfx::B2IRange& rB2IRange)
: msHelpId(std::move(aHelpId))
, maB2IRange(rB2IRange)
{
}
const basegfx::B2IRange& getB2IRange() const { return maB2IRange; }
const OUString& GetHelpId() const { return msHelpId; }
private:
OUString msHelpId;
basegfx::B2IRange maB2IRange;
};
typedef std::vector<ScreenShotEntry> ScreenShotCollection;
class VCL_DLLPUBLIC WaitObject
{
private: