weld: Move weld::MetricSpinButton to own header/source file
Move the implementation to a new source file in the vcl/source/weld directory where most of the code for implementing weld::Widget implementations is by now (apart from the headers), while vcl/source/window/builder.cxx is mostly about VclBuilder. Change-Id: Ide967dab4a5321871da057f0c6b799dbc21230dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195832 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <svl/itemset.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <TextDirectionListBox.hxx>
|
||||
|
||||
#include <map>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <RangeSelectionHelper.hxx>
|
||||
#include <helpids.h>
|
||||
#include <chartview/ChartSfxItemIds.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <ChartModel.hxx>
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vcl/timer.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <rtl/ref.hxx>
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <tools/degree.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <TextDirectionListBox.hxx>
|
||||
|
||||
namespace weld {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace weld {
|
||||
class CheckButton;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace weld {
|
||||
class CheckButton;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <TextDirectionListBox.hxx>
|
||||
|
||||
namespace weld {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
|
||||
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include "ChartSidebarModifyListener.hxx"
|
||||
#include "ChartSidebarSelectionListener.hxx"
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ enum VerticalAlign {
|
||||
#include <svtools/valueset.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <svx/frmdirlbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class SvxJustifyMethodItem;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <editeng/shaditem.hxx>
|
||||
#include <svtools/ctrlbox.hxx>
|
||||
#include <vcl/weld/IconView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/algitem.hxx>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <svx/fntctrl.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <svx/langbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <memory>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <svx/connctrl.hxx>
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <vcl/timer.hxx>
|
||||
#include <svx/dlgctrl.hxx>
|
||||
#include <svx/rectenum.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class CuiGraphicPreviewWindow : public weld::CustomWidgetController
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <svx/PaletteManager.hxx>
|
||||
#include <svx/svdview.hxx>
|
||||
#include <vcl/hexcolorcontrol.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
class SdrModel;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vcl/graph.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <svx/sxcecitm.hxx>
|
||||
#include <svx/anchorid.hxx>
|
||||
#include <vcl/image.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SdrView;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <svx/dlgctrl.hxx>
|
||||
#include <svx/measctrl.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SdrView;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <editeng/svxenum.hxx>
|
||||
#include <svtools/ctrlbox.hxx>
|
||||
#include <svx/numberingpreview.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/timer.hxx>
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <i18nutil/paper.hxx>
|
||||
#include <svx/flagsdef.hxx>
|
||||
#include <vcl/print.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
// class SvxPageDescPage -------------------------------------------------
|
||||
/*
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <svx/relfld.hxx>
|
||||
#include <svx/paraprev.hxx>
|
||||
#include <svx/frmdirlbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SvxLineSpacingItem;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/swframeexample.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/dlgutil.hxx>
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/EntryTreeView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/sdtakitm.hxx>
|
||||
#include <svx/sdtaditm.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class SdrView;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <svx/dlgctrl.hxx>
|
||||
#include <svx/svdobjkind.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <svx/dlgutil.hxx>
|
||||
#include <svx/dialcontrol.hxx>
|
||||
#include <svx/anchorid.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <basegfx/range/b2drange.hxx>
|
||||
|
||||
// predefines
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <svl/itemset.hxx>
|
||||
#include <svx/zoom_def.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class SvxZoomDialog : public SfxDialogController
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <config_features.h>
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/langbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class CanvasSettings;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <vcl/keycodes.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <vcl/transfer.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <sfx2/app.hxx>
|
||||
#include <sfx2/objsh.hxx>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
namespace dbaui
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <cppuhelper/compbase.hxx>
|
||||
#include <cppuhelper/basemutex.hxx>
|
||||
#include <tools/link.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <vcl/weld/weldutils.hxx>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <comphelper/interfacecontainer2.hxx>
|
||||
#include <svtools/ctrlbox.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace pcr
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <vcl/pdfwriter.hxx>
|
||||
#include <vcl/FilterConfigItem.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <vcl/bitmap.hxx>
|
||||
#include <vcl/gdimtf.hxx>
|
||||
#include <vcl/graph.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <memory>
|
||||
|
||||
namespace vcl { class Window; }
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <vcl/virdev.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <editeng/colritem.hxx>
|
||||
#include <sfx2/ctrlitem.hxx>
|
||||
#include <sfx2/dockwin.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svl/eitem.hxx>
|
||||
#include <svx/e3ditem.hxx>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <sfx2/ctrlitem.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
#include <vcl/idle.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <svx/svxdllapi.h>
|
||||
#include <vcl/weld/IconView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <com/sun/star/frame/XFrame.hpp>
|
||||
#include <map>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
#include <svx/pagectrl.hxx>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <tools/fldunit.hxx>
|
||||
#include <svtools/unitconv.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <svl/intitem.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ToolbarUnoDispatcher;
|
||||
class XFillFloatTransparenceItem;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREATRANSPARENCYGRADIENTPOPUP_HXX
|
||||
|
||||
#include <basegfx/utils/bgradient.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svtools/toolbarmenu.hxx>
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEPROPERTYPANELBASE_HXX
|
||||
#define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEPROPERTYPANELBASE_HXX
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <memory>
|
||||
#include <svl/poolitem.hxx>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <tools/mapunit.hxx>
|
||||
#include <vcl/image.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svtools/toolbarmenu.hxx>
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
/* -*- 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 <vcl/dllapi.h>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
namespace weld
|
||||
{
|
||||
class VCL_DLLPUBLIC MetricSpinButton final
|
||||
{
|
||||
FieldUnit m_eSrcUnit;
|
||||
std::unique_ptr<weld::SpinButton> m_xSpinButton;
|
||||
Link<MetricSpinButton&, void> m_aValueChangedHdl;
|
||||
|
||||
DECL_LINK(spin_button_value_changed, weld::SpinButton&, void);
|
||||
DECL_LINK(spin_button_output, sal_Int64, OUString);
|
||||
DECL_LINK(spin_button_input, const OUString&, std::optional<int>);
|
||||
|
||||
void signal_value_changed() { m_aValueChangedHdl.Call(*this); }
|
||||
|
||||
sal_Int64 ConvertValue(sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) const;
|
||||
OUString format_number(sal_Int64 nValue) const;
|
||||
void update_width_chars();
|
||||
|
||||
public:
|
||||
MetricSpinButton(std::unique_ptr<SpinButton> pSpinButton, FieldUnit eSrcUnit)
|
||||
: m_eSrcUnit(eSrcUnit)
|
||||
, m_xSpinButton(std::move(pSpinButton))
|
||||
{
|
||||
update_width_chars();
|
||||
m_xSpinButton->set_value_formatter(LINK(this, MetricSpinButton, spin_button_output));
|
||||
m_xSpinButton->set_text_parser(LINK(this, MetricSpinButton, spin_button_input));
|
||||
m_xSpinButton->connect_value_changed(
|
||||
LINK(this, MetricSpinButton, spin_button_value_changed));
|
||||
m_xSpinButton->set_text(format_number(m_xSpinButton->get_value()));
|
||||
}
|
||||
|
||||
static OUString MetricToString(FieldUnit rUnit);
|
||||
|
||||
FieldUnit get_unit() const { return m_eSrcUnit; }
|
||||
|
||||
void set_unit(FieldUnit eUnit);
|
||||
|
||||
sal_Int64 convert_value_to(sal_Int64 nValue, FieldUnit eValueUnit) const
|
||||
{
|
||||
return ConvertValue(nValue, m_eSrcUnit, eValueUnit);
|
||||
}
|
||||
|
||||
sal_Int64 convert_value_from(sal_Int64 nValue, FieldUnit eValueUnit) const
|
||||
{
|
||||
return ConvertValue(nValue, eValueUnit, m_eSrcUnit);
|
||||
}
|
||||
|
||||
void set_value(sal_Int64 nValue, FieldUnit eValueUnit)
|
||||
{
|
||||
m_xSpinButton->set_value(convert_value_from(nValue, eValueUnit));
|
||||
}
|
||||
|
||||
sal_Int64 get_value(FieldUnit eDestUnit) const
|
||||
{
|
||||
return convert_value_to(m_xSpinButton->get_value(), eDestUnit);
|
||||
}
|
||||
|
||||
// typically you only need to call this if set_text (e.g. with "") was
|
||||
// previously called to display some arbitrary text instead of the
|
||||
// formatted value and now you want to show it as formatted again
|
||||
void reformat()
|
||||
{
|
||||
const OUString sText = format_number(m_xSpinButton->get_value());
|
||||
m_xSpinButton->set_text(sText);
|
||||
}
|
||||
|
||||
void set_range(sal_Int64 min, sal_Int64 max, FieldUnit eValueUnit)
|
||||
{
|
||||
min = convert_value_from(min, eValueUnit);
|
||||
max = convert_value_from(max, eValueUnit);
|
||||
m_xSpinButton->set_range(min, max);
|
||||
update_width_chars();
|
||||
}
|
||||
|
||||
void get_range(sal_Int64& min, sal_Int64& max, FieldUnit eDestUnit) const
|
||||
{
|
||||
m_xSpinButton->get_range(min, max);
|
||||
min = convert_value_to(min, eDestUnit);
|
||||
max = convert_value_to(max, eDestUnit);
|
||||
}
|
||||
|
||||
void set_min(sal_Int64 min, FieldUnit eValueUnit)
|
||||
{
|
||||
sal_Int64 dummy, max;
|
||||
get_range(dummy, max, eValueUnit);
|
||||
set_range(min, max, eValueUnit);
|
||||
}
|
||||
|
||||
void set_max(sal_Int64 max, FieldUnit eValueUnit)
|
||||
{
|
||||
sal_Int64 min, dummy;
|
||||
get_range(min, dummy, eValueUnit);
|
||||
set_range(min, max, eValueUnit);
|
||||
}
|
||||
|
||||
sal_Int64 get_min(FieldUnit eValueUnit) const
|
||||
{
|
||||
sal_Int64 min, dummy;
|
||||
get_range(min, dummy, eValueUnit);
|
||||
return min;
|
||||
}
|
||||
|
||||
sal_Int64 get_max(FieldUnit eValueUnit) const
|
||||
{
|
||||
sal_Int64 dummy, max;
|
||||
get_range(dummy, max, eValueUnit);
|
||||
return max;
|
||||
}
|
||||
|
||||
void set_increments(sal_Int64 step, sal_Int64 page, FieldUnit eValueUnit)
|
||||
{
|
||||
step = convert_value_from(step, eValueUnit);
|
||||
page = convert_value_from(page, eValueUnit);
|
||||
m_xSpinButton->set_increments(step, page);
|
||||
}
|
||||
|
||||
void get_increments(sal_Int64& step, sal_Int64& page, FieldUnit eDestUnit) const
|
||||
{
|
||||
m_xSpinButton->get_increments(step, page);
|
||||
step = convert_value_to(step, eDestUnit);
|
||||
page = convert_value_to(page, eDestUnit);
|
||||
}
|
||||
|
||||
void connect_value_changed(const Link<MetricSpinButton&, void>& rLink)
|
||||
{
|
||||
m_aValueChangedHdl = rLink;
|
||||
}
|
||||
|
||||
sal_Int64 normalize(sal_Int64 nValue) const { return m_xSpinButton->normalize(nValue); }
|
||||
sal_Int64 denormalize(sal_Int64 nValue) const { return m_xSpinButton->denormalize(nValue); }
|
||||
void set_sensitive(bool sensitive) { m_xSpinButton->set_sensitive(sensitive); }
|
||||
bool get_sensitive() const { return m_xSpinButton->get_sensitive(); }
|
||||
bool get_visible() const { return m_xSpinButton->get_visible(); }
|
||||
void grab_focus() { m_xSpinButton->grab_focus(); }
|
||||
bool has_focus() const { return m_xSpinButton->has_focus(); }
|
||||
void show() { m_xSpinButton->show(); }
|
||||
void set_visible(bool bShow) { m_xSpinButton->set_visible(bShow); }
|
||||
void hide() { m_xSpinButton->hide(); }
|
||||
void set_digits(unsigned int digits);
|
||||
void set_accessible_name(const OUString& rName) { m_xSpinButton->set_accessible_name(rName); }
|
||||
unsigned int get_digits() const { return m_xSpinButton->get_digits(); }
|
||||
void save_value() { m_xSpinButton->save_value(); }
|
||||
bool get_value_changed_from_saved() const
|
||||
{
|
||||
return m_xSpinButton->get_value_changed_from_saved();
|
||||
}
|
||||
void set_text(const OUString& rText) { m_xSpinButton->set_text(rText); }
|
||||
OUString get_text() const { return m_xSpinButton->get_text(); }
|
||||
void set_size_request(int nWidth, int nHeight)
|
||||
{
|
||||
m_xSpinButton->set_size_request(nWidth, nHeight);
|
||||
}
|
||||
Size get_size_request() const { return m_xSpinButton->get_size_request(); }
|
||||
Size get_preferred_size() const { return m_xSpinButton->get_preferred_size(); }
|
||||
void connect_focus_in(const Link<Widget&, void>& rLink)
|
||||
{
|
||||
m_xSpinButton->connect_focus_in(rLink);
|
||||
}
|
||||
void connect_focus_out(const Link<Widget&, void>& rLink)
|
||||
{
|
||||
m_xSpinButton->connect_focus_out(rLink);
|
||||
}
|
||||
OUString get_buildable_name() const { return m_xSpinButton->get_buildable_name(); }
|
||||
void set_help_id(const OUString& rName) { m_xSpinButton->set_help_id(rName); }
|
||||
void set_position(int nCursorPos) { m_xSpinButton->set_position(nCursorPos); }
|
||||
// set the width of the underlying widget in characters, this setting is
|
||||
// invalidated when changing the units, range or digits, so to have effect
|
||||
// must come after changing those values
|
||||
void set_width_chars(int nChars) { m_xSpinButton->set_width_chars(nChars); }
|
||||
int get_width_chars() const { return m_xSpinButton->get_width_chars(); }
|
||||
weld::SpinButton& get_widget() { return *m_xSpinButton; }
|
||||
};
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
||||
+1
-171
@@ -81,6 +81,7 @@ class Container;
|
||||
class DialogController;
|
||||
class EntryTreeView;
|
||||
class IconView;
|
||||
class MetricSpinButton;
|
||||
class TreeView;
|
||||
|
||||
class VCL_DLLPUBLIC Widget
|
||||
@@ -1599,177 +1600,6 @@ public:
|
||||
virtual Date get_date() const = 0;
|
||||
};
|
||||
|
||||
class VCL_DLLPUBLIC MetricSpinButton final
|
||||
{
|
||||
FieldUnit m_eSrcUnit;
|
||||
std::unique_ptr<weld::SpinButton> m_xSpinButton;
|
||||
Link<MetricSpinButton&, void> m_aValueChangedHdl;
|
||||
|
||||
DECL_LINK(spin_button_value_changed, weld::SpinButton&, void);
|
||||
DECL_LINK(spin_button_output, sal_Int64, OUString);
|
||||
DECL_LINK(spin_button_input, const OUString&, std::optional<int>);
|
||||
|
||||
void signal_value_changed() { m_aValueChangedHdl.Call(*this); }
|
||||
|
||||
sal_Int64 ConvertValue(sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) const;
|
||||
OUString format_number(sal_Int64 nValue) const;
|
||||
void update_width_chars();
|
||||
|
||||
public:
|
||||
MetricSpinButton(std::unique_ptr<SpinButton> pSpinButton, FieldUnit eSrcUnit)
|
||||
: m_eSrcUnit(eSrcUnit)
|
||||
, m_xSpinButton(std::move(pSpinButton))
|
||||
{
|
||||
update_width_chars();
|
||||
m_xSpinButton->set_value_formatter(LINK(this, MetricSpinButton, spin_button_output));
|
||||
m_xSpinButton->set_text_parser(LINK(this, MetricSpinButton, spin_button_input));
|
||||
m_xSpinButton->connect_value_changed(
|
||||
LINK(this, MetricSpinButton, spin_button_value_changed));
|
||||
m_xSpinButton->set_text(format_number(m_xSpinButton->get_value()));
|
||||
}
|
||||
|
||||
static OUString MetricToString(FieldUnit rUnit);
|
||||
|
||||
FieldUnit get_unit() const { return m_eSrcUnit; }
|
||||
|
||||
void set_unit(FieldUnit eUnit);
|
||||
|
||||
sal_Int64 convert_value_to(sal_Int64 nValue, FieldUnit eValueUnit) const
|
||||
{
|
||||
return ConvertValue(nValue, m_eSrcUnit, eValueUnit);
|
||||
}
|
||||
|
||||
sal_Int64 convert_value_from(sal_Int64 nValue, FieldUnit eValueUnit) const
|
||||
{
|
||||
return ConvertValue(nValue, eValueUnit, m_eSrcUnit);
|
||||
}
|
||||
|
||||
void set_value(sal_Int64 nValue, FieldUnit eValueUnit)
|
||||
{
|
||||
m_xSpinButton->set_value(convert_value_from(nValue, eValueUnit));
|
||||
}
|
||||
|
||||
sal_Int64 get_value(FieldUnit eDestUnit) const
|
||||
{
|
||||
return convert_value_to(m_xSpinButton->get_value(), eDestUnit);
|
||||
}
|
||||
|
||||
// typically you only need to call this if set_text (e.g. with "") was
|
||||
// previously called to display some arbitrary text instead of the
|
||||
// formatted value and now you want to show it as formatted again
|
||||
void reformat()
|
||||
{
|
||||
const OUString sText = format_number(m_xSpinButton->get_value());
|
||||
m_xSpinButton->set_text(sText);
|
||||
}
|
||||
|
||||
void set_range(sal_Int64 min, sal_Int64 max, FieldUnit eValueUnit)
|
||||
{
|
||||
min = convert_value_from(min, eValueUnit);
|
||||
max = convert_value_from(max, eValueUnit);
|
||||
m_xSpinButton->set_range(min, max);
|
||||
update_width_chars();
|
||||
}
|
||||
|
||||
void get_range(sal_Int64& min, sal_Int64& max, FieldUnit eDestUnit) const
|
||||
{
|
||||
m_xSpinButton->get_range(min, max);
|
||||
min = convert_value_to(min, eDestUnit);
|
||||
max = convert_value_to(max, eDestUnit);
|
||||
}
|
||||
|
||||
void set_min(sal_Int64 min, FieldUnit eValueUnit)
|
||||
{
|
||||
sal_Int64 dummy, max;
|
||||
get_range(dummy, max, eValueUnit);
|
||||
set_range(min, max, eValueUnit);
|
||||
}
|
||||
|
||||
void set_max(sal_Int64 max, FieldUnit eValueUnit)
|
||||
{
|
||||
sal_Int64 min, dummy;
|
||||
get_range(min, dummy, eValueUnit);
|
||||
set_range(min, max, eValueUnit);
|
||||
}
|
||||
|
||||
sal_Int64 get_min(FieldUnit eValueUnit) const
|
||||
{
|
||||
sal_Int64 min, dummy;
|
||||
get_range(min, dummy, eValueUnit);
|
||||
return min;
|
||||
}
|
||||
|
||||
sal_Int64 get_max(FieldUnit eValueUnit) const
|
||||
{
|
||||
sal_Int64 dummy, max;
|
||||
get_range(dummy, max, eValueUnit);
|
||||
return max;
|
||||
}
|
||||
|
||||
void set_increments(sal_Int64 step, sal_Int64 page, FieldUnit eValueUnit)
|
||||
{
|
||||
step = convert_value_from(step, eValueUnit);
|
||||
page = convert_value_from(page, eValueUnit);
|
||||
m_xSpinButton->set_increments(step, page);
|
||||
}
|
||||
|
||||
void get_increments(sal_Int64& step, sal_Int64& page, FieldUnit eDestUnit) const
|
||||
{
|
||||
m_xSpinButton->get_increments(step, page);
|
||||
step = convert_value_to(step, eDestUnit);
|
||||
page = convert_value_to(page, eDestUnit);
|
||||
}
|
||||
|
||||
void connect_value_changed(const Link<MetricSpinButton&, void>& rLink)
|
||||
{
|
||||
m_aValueChangedHdl = rLink;
|
||||
}
|
||||
|
||||
sal_Int64 normalize(sal_Int64 nValue) const { return m_xSpinButton->normalize(nValue); }
|
||||
sal_Int64 denormalize(sal_Int64 nValue) const { return m_xSpinButton->denormalize(nValue); }
|
||||
void set_sensitive(bool sensitive) { m_xSpinButton->set_sensitive(sensitive); }
|
||||
bool get_sensitive() const { return m_xSpinButton->get_sensitive(); }
|
||||
bool get_visible() const { return m_xSpinButton->get_visible(); }
|
||||
void grab_focus() { m_xSpinButton->grab_focus(); }
|
||||
bool has_focus() const { return m_xSpinButton->has_focus(); }
|
||||
void show() { m_xSpinButton->show(); }
|
||||
void set_visible(bool bShow) { m_xSpinButton->set_visible(bShow); }
|
||||
void hide() { m_xSpinButton->hide(); }
|
||||
void set_digits(unsigned int digits);
|
||||
void set_accessible_name(const OUString& rName) { m_xSpinButton->set_accessible_name(rName); }
|
||||
unsigned int get_digits() const { return m_xSpinButton->get_digits(); }
|
||||
void save_value() { m_xSpinButton->save_value(); }
|
||||
bool get_value_changed_from_saved() const
|
||||
{
|
||||
return m_xSpinButton->get_value_changed_from_saved();
|
||||
}
|
||||
void set_text(const OUString& rText) { m_xSpinButton->set_text(rText); }
|
||||
OUString get_text() const { return m_xSpinButton->get_text(); }
|
||||
void set_size_request(int nWidth, int nHeight)
|
||||
{
|
||||
m_xSpinButton->set_size_request(nWidth, nHeight);
|
||||
}
|
||||
Size get_size_request() const { return m_xSpinButton->get_size_request(); }
|
||||
Size get_preferred_size() const { return m_xSpinButton->get_preferred_size(); }
|
||||
void connect_focus_in(const Link<Widget&, void>& rLink)
|
||||
{
|
||||
m_xSpinButton->connect_focus_in(rLink);
|
||||
}
|
||||
void connect_focus_out(const Link<Widget&, void>& rLink)
|
||||
{
|
||||
m_xSpinButton->connect_focus_out(rLink);
|
||||
}
|
||||
OUString get_buildable_name() const { return m_xSpinButton->get_buildable_name(); }
|
||||
void set_help_id(const OUString& rName) { m_xSpinButton->set_help_id(rName); }
|
||||
void set_position(int nCursorPos) { m_xSpinButton->set_position(nCursorPos); }
|
||||
// set the width of the underlying widget in characters, this setting is
|
||||
// invalidated when changing the units, range or digits, so to have effect
|
||||
// must come after changing those values
|
||||
void set_width_chars(int nChars) { m_xSpinButton->set_width_chars(nChars); }
|
||||
int get_width_chars() const { return m_xSpinButton->get_width_chars(); }
|
||||
weld::SpinButton& get_widget() { return *m_xSpinButton; }
|
||||
};
|
||||
|
||||
enum class LabelType
|
||||
{
|
||||
Normal,
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class ScMetricInputDlg : public weld::GenericDialogController
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ScTablePage : public SfxTabPage
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ScViewOptions;
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <sfx2/weldutils.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace sc::sidebar {
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <editeng/numdef.hxx>
|
||||
#include <editeng/svxenum.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include "View.hxx"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sfx2/sidebar/ILayoutableWindow.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/idle.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include "CustomAnimationList.hxx"
|
||||
#include <misc/scopelock.hxx>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sfx2/sidebar/ILayoutableWindow.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/IconView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <tools/fract.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <tools/fract.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
/************************************************************************/
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/optgrid.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
/**
|
||||
* Option-Tab-Page: Snap
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/graphctl.hxx>
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#include <utility>
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
#include <editeng/sizeitem.hxx>
|
||||
#include <comphelper/lok.hxx>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/outdev.hxx>
|
||||
#include <vcl/weld/EntryTreeView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include "symbol.hxx"
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <vcl/settings.hxx>
|
||||
#include <vcl/image.hxx>
|
||||
#include <vcl/virdev.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weldutils.hxx>
|
||||
#include <rtl/math.hxx>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <tools/debug.hxx>
|
||||
#include <tools/UnitConversion.hxx>
|
||||
#include <vcl/outdev.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
void SetFieldUnit(weld::MetricSpinButton& rField, FieldUnit eUnit, bool bAll)
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef INCLUDED_SVX_INC_EXTRUSIONDEPTHDIALOG_HXX
|
||||
#define INCLUDED_SVX_INC_EXTRUSIONDEPTHDIALOG_HXX
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
namespace svx
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sfx2/ctrlitem.hxx>
|
||||
#include "contwnd.hxx"
|
||||
#include <vcl/idle.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SvxSuperContourDlg;
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <officecfg/Office/Draw.hxx>
|
||||
#include <sfx2/viewfrm.hxx>
|
||||
#include <vcl/commandinfoprovider.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
|
||||
#include <svx/svxids.hrc>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <unotools/localedatawrapper.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <spacing.hrc>
|
||||
|
||||
namespace SpacingListBox
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <sfx2/sidebar/ControllerItem.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <sfx2/sidebar/ControllerItem.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/sidebar/ControllerItem.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
namespace svx::sidebar {
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <svtools/toolbarmenu.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SvxLineSpacingItem;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <svl/poolitem.hxx>
|
||||
#include <tools/fldunit.hxx>
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ToolbarUnoDispatcher;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/InterimItemWindow.hxx>
|
||||
#include <svx/relfld.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace svx
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <com/sun/star/ui/XSidebar.hpp>
|
||||
#include <basegfx/range/b2drange.hxx>
|
||||
#include <vcl/EnumContext.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/dlgutil.hxx>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <sfx2/sidebar/ControllerItem.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class ColorListBox;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTCHARACTERSPACINGCONTROL_HXX
|
||||
|
||||
#include <svtools/toolbarmenu.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace svx {
|
||||
#define SPACING_NOCUSTOM 0
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <sfx2/sidebar/ControllerItem.hxx>
|
||||
#include <sfx2/sidebar/PanelLayout.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
namespace svx::sidebar
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <comphelper/propertyvalue.hxx>
|
||||
#include <o3tl/string_view.hxx>
|
||||
#include <vcl/toolbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <svl/intitem.hxx>
|
||||
#include <svl/itempool.hxx>
|
||||
#include <svl/eitem.hxx>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vcl/InterimItemWindow.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <com/sun/star/frame/XFrame.hpp>
|
||||
|
||||
class XLineWidthItem;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SW_SOURCE_UI_DBUI_MMLAYOUTPAGE_HXX
|
||||
|
||||
#include <vcl/wizardmachine.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <mailmergehelper.hxx>
|
||||
#include <com/sun/star/uno/Reference.h>
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/print.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
#include <envimg.hxx>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/idle.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <numberingtypelistbox.hxx>
|
||||
#include <svx/paraprev.hxx>
|
||||
#include <vcl/weld/EntryTreeView.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <svx/frmdirlbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <map>
|
||||
#include "colex.hxx"
|
||||
#include "prcntfld.hxx"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/print.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
|
||||
/// Dedicated drop caps dialog, opened by the .uno:FormatDropcap UNO command, which is not in the
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SW_SOURCE_UIBASE_INC_ENVLOP_HXX
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include "envimg.hxx"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <svx/dlgutil.hxx>
|
||||
#include <svx/frmdirlbox.hxx>
|
||||
#include <svx/swframeexample.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <swtypes.hxx>
|
||||
#include "bmpwin.hxx"
|
||||
#include "prcntfld.hxx"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_LABIMP_HXX
|
||||
#define INCLUDED_SW_SOURCE_UIBASE_INC_LABIMP_HXX
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
inline int getfldval(const weld::MetricSpinButton& rField)
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SW_SOURCE_UIBASE_INC_LINENUM_HXX
|
||||
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include "numberingtypelistbox.hxx"
|
||||
|
||||
class SwView;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define INCLUDED_SW_SOURCE_UIBASE_INC_NUM_HXX
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include "numprevw.hxx"
|
||||
#include <numrule.hxx>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <utility>
|
||||
#include <vcl/textfilter.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svtools/ctrlbox.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <svtools/ctrlbox.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
// footnote settings TabPage
|
||||
class SwFootNotePage final : public SfxTabPage
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include "colex.hxx"
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <svtools/unitconv.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <swdllapi.h>
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
class SwWrtShell;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/langbox.hxx>
|
||||
#include <vcl/idle.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/TreeView.hxx>
|
||||
#include <vcl/weld/customweld.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#define INCLUDED_SW_SOURCE_UIBASE_INC_WATERMARKDIALOG_HXX
|
||||
|
||||
#include <sfx2/bindings.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
#include <vcl/weld/weld.hxx>
|
||||
#include <svx/colorbox.hxx>
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <sfx2/basedlgs.hxx>
|
||||
#include <svx/swframetypes.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
class SwWrtShell;
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <tools/fldunit.hxx>
|
||||
#include <svl/poolitem.hxx>
|
||||
#include <svx/relfld.hxx>
|
||||
#include <vcl/weld/MetricSpinButton.hxx>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user