Files
odfstudio/include/svx/sidebar/LineWidthPopup.hxx
T
Michael Weghorn e68422786a Drop unused ValueSet forward declarations
Drop ValueSet forward declarations from headers
not actually using the class.

Forward-declare the class in cui/source/inc/numpages.hxx
which actually uses it, but didn't forward-declare it
or include the header yet, but previously got the forward-declaration
from an included header.

Change-Id: I8876ad47eb362f581aa41ee4a61a85c4093a1dd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211881
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-10-07 17:48:46 +02:00

68 lines
2.1 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#pragma once
#include <tools/mapunit.hxx>
#include <vcl/image.hxx>
#include <vcl/weld/Container.hxx>
#include <vcl/weld/MetricSpinButton.hxx>
#include <vcl/weld/TreeView.hxx>
#include <svtools/toolbarmenu.hxx>
#include <array>
namespace svx::sidebar
{
class LinePropertyPanelBase;
class LineWidthPopup final : public WeldToolbarPopup
{
public:
LineWidthPopup(weld::Widget* pParent, LinePropertyPanelBase& rParent);
~LineWidthPopup();
void SetWidthSelect(tools::Long lValue, bool bValuable, MapUnit eMapUnit);
weld::Container* getTopLevel() const { return m_xTopLevel.get(); }
virtual void GrabFocus() override;
private:
LinePropertyPanelBase& m_rParent;
std::array<OUString, 9> maStrUnits;
OUString m_sPt;
MapUnit m_eMapUnit;
bool m_bTreeViewFocus;
bool m_bCustom;
tools::Long m_nCustomWidth;
Image m_aIMGCus;
std::unique_ptr<weld::MetricSpinButton> m_xMFWidth;
std::unique_ptr<weld::TreeView> m_xWidthTreeView;
ScopedVclPtr<VirtualDevice> CreateImage(int nIndex);
void UnselectTreeViewItems();
DECL_LINK(TreeViewItemActivatedHdl, const weld::TreeIter&, bool);
DECL_LINK(MFModifyHdl, weld::MetricSpinButton&, void);
};
} // end of namespace svx::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */