add Toggleable as a separate thing to a Button

and inherit ToggleButton from both it and Button

Change-Id: If0e500aca8d0ffa087cb5e2bfc1786372fbff4eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115921
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2021-05-21 18:19:58 +02:00
parent f19a599f69
commit 9940f077fd
468 changed files with 1218 additions and 1161 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ void BreakPointDialog::CheckButtons()
}
}
IMPL_LINK(BreakPointDialog, CheckBoxHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(BreakPointDialog, CheckBoxHdl, weld::Toggleable&, rButton, void)
{
BreakPoint* pBrk = GetSelectedBreakPoint();
if (pBrk)
+1 -1
View File
@@ -37,7 +37,7 @@ class BreakPointDialog final : public weld::GenericDialogController
std::unique_ptr<weld::SpinButton> m_xNumericField;
void CheckButtons();
DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
DECL_LINK(EditModifyHdl, weld::ComboBox&, void);
DECL_LINK(FieldModifyHdl, weld::SpinButton&, void);
DECL_LINK(ButtonHdl, weld::Button&, void);
@@ -75,7 +75,7 @@ void Dim3DLookResourceGroup::fillParameter(ChartTypeParameter& rParameter)
}
}
IMPL_LINK_NOARG(Dim3DLookResourceGroup, Dim3DLookCheckHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(Dim3DLookResourceGroup, Dim3DLookCheckHdl, weld::Toggleable&, void)
{
if (m_pChangeListener)
m_pChangeListener->stateChanged();
@@ -110,7 +110,7 @@ void SortByXValuesResourceGroup::fillParameter(ChartTypeParameter& rParameter)
rParameter.bSortByXValues = m_xCB_XValueSorting->get_active();
}
IMPL_LINK_NOARG(SortByXValuesResourceGroup, SortByXValuesCheckHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SortByXValuesResourceGroup, SortByXValuesCheckHdl, weld::Toggleable&, void)
{
if (m_pChangeListener)
m_pChangeListener->stateChanged();
@@ -184,7 +184,7 @@ void StackingResourceGroup::fillParameter(ChartTypeParameter& rParameter)
rParameter.eStackMode = GlobalStackMode_STACK_Z;
}
IMPL_LINK(StackingResourceGroup, StackingChangeHdl, weld::ToggleButton&, rRadio, void)
IMPL_LINK(StackingResourceGroup, StackingChangeHdl, weld::Toggleable&, rRadio, void)
{
//for each radio click there are coming two change events
//first uncheck of previous button -> ignore that call
@@ -193,7 +193,7 @@ IMPL_LINK(StackingResourceGroup, StackingChangeHdl, weld::ToggleButton&, rRadio,
m_pChangeListener->stateChanged();
}
IMPL_LINK_NOARG(StackingResourceGroup, StackingEnableHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(StackingResourceGroup, StackingEnableHdl, weld::Toggleable&, void)
{
if (m_pChangeListener)
m_pChangeListener->stateChanged();
@@ -221,7 +221,7 @@ IMPL_LINK(DataLabelResources, NumberFormatDialogHdl, weld::Button&, rButton, voi
}
}
IMPL_LINK_NOARG(DataLabelResources, CheckHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(DataLabelResources, CheckHdl, weld::Toggleable&, void)
{
EnableControls();
}
@@ -84,7 +84,7 @@ private:
std::unique_ptr<weld::CheckButton> m_xCBCustomLeaderLines;
DECL_LINK(NumberFormatDialogHdl, weld::Button&, void );
DECL_LINK(CheckHdl, weld::ToggleButton&, void );
DECL_LINK(CheckHdl, weld::Toggleable&, void );
void EnableControls();
};
@@ -339,7 +339,7 @@ IMPL_LINK_NOARG( ErrorBarResources, CategoryChosen2, weld::ComboBox&, void )
CategoryChosen(*m_xRbConst);
}
IMPL_LINK_NOARG( ErrorBarResources, CategoryChosen, weld::ToggleButton&, void )
IMPL_LINK_NOARG( ErrorBarResources, CategoryChosen, weld::Toggleable&, void )
{
m_bErrorKindUnique = true;
SvxChartKindError eOldError = m_eErrorKind;
@@ -392,7 +392,7 @@ IMPL_LINK_NOARG( ErrorBarResources, CategoryChosen, weld::ToggleButton&, void )
UpdateControlStates();
}
IMPL_LINK_NOARG(ErrorBarResources, SynchronizePosAndNeg, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ErrorBarResources, SynchronizePosAndNeg, weld::Toggleable&, void)
{
UpdateControlStates();
PosValueChanged( *m_xMfPositive );
@@ -412,7 +412,7 @@ IMPL_LINK_NOARG(ErrorBarResources, PosValueChanged, weld::MetricSpinButton&, voi
}
}
IMPL_LINK_NOARG(ErrorBarResources, IndicatorChanged, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ErrorBarResources, IndicatorChanged, weld::Toggleable&, void)
{
m_bIndicatorUnique = true;
if( m_xRbBoth->get_active())
@@ -158,7 +158,7 @@ void LegendPositionResources::writeToModel( const css::uno::Reference< frame::XM
}
}
IMPL_LINK_NOARG(LegendPositionResources, PositionEnableHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(LegendPositionResources, PositionEnableHdl, weld::Toggleable&, void)
{
bool bEnable = !m_xCbxShow || m_xCbxShow->get_active();
@@ -218,7 +218,7 @@ void LegendPositionResources::writeToItemSet( SfxItemSet& rOutAttrs ) const
rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, !m_xCbxShow || m_xCbxShow->get_active()) );
}
IMPL_LINK (LegendPositionResources, PositionChangeHdl, weld::ToggleButton&, rRadio, void)
IMPL_LINK (LegendPositionResources, PositionChangeHdl, weld::Toggleable&, rRadio, void)
{
//for each radio click there are coming two change events
//first uncheck of previous button -> ignore that call
@@ -83,7 +83,7 @@ TrendlineResources::TrendlineResources(weld::Builder& rBuilder, const SfxItemSet
rInterceptFormatter.ClearMinValue();
rInterceptFormatter.ClearMaxValue();
Link<weld::ToggleButton&,void> aLink = LINK(this, TrendlineResources, SelectTrendLine);
Link<weld::Toggleable&,void> aLink = LINK(this, TrendlineResources, SelectTrendLine);
m_xRB_Linear->connect_toggled( aLink );
m_xRB_Logarithmic->connect_toggled( aLink );
m_xRB_Exponential->connect_toggled( aLink );
@@ -105,7 +105,7 @@ TrendlineResources::TrendlineResources(weld::Builder& rBuilder, const SfxItemSet
TrendlineResources::~TrendlineResources()
{}
IMPL_LINK_NOARG(TrendlineResources, SelectTrendLine, weld::ToggleButton&, void)
IMPL_LINK_NOARG(TrendlineResources, SelectTrendLine, weld::Toggleable&, void)
{
if (m_xRB_Linear->get_active())
m_eTrendLineType = SvxChartRegress::Linear;
@@ -427,7 +427,7 @@ void TrendlineResources::SetNbPoints( sal_Int32 nNbPoints )
UpdateControlStates();
}
IMPL_LINK_NOARG(TrendlineResources, ShowEquation, weld::ToggleButton&, void)
IMPL_LINK_NOARG(TrendlineResources, ShowEquation, weld::Toggleable&, void)
{
m_xEE_XName->set_sensitive(m_xCB_ShowEquation->get_active());
m_xEE_YName->set_sensitive(m_xCB_ShowEquation->get_active());
@@ -30,7 +30,7 @@ namespace weld { class FormattedSpinButton; }
namespace weld { class Image; }
namespace weld { class RadioButton; }
namespace weld { class SpinButton; }
namespace weld { class ToggleButton; }
namespace weld { class Toggleable; }
class SvNumberFormatter;
@@ -87,10 +87,10 @@ private:
std::unique_ptr<weld::ComboBox> m_xCB_RegressionMovingType;
void UpdateControlStates();
DECL_LINK(SelectTrendLine, weld::ToggleButton&, void);
DECL_LINK(SelectTrendLine, weld::Toggleable&, void);
DECL_LINK(ChangeSpinValue, weld::SpinButton&, void);
DECL_LINK(ChangeFormattedValue, weld::FormattedSpinButton&, void);
DECL_LINK(ShowEquation, weld::ToggleButton&, void);
DECL_LINK(ShowEquation, weld::Toggleable&, void);
};
} // namespace chart
@@ -288,7 +288,7 @@ IMPL_LINK_NOARG(ThreeD_SceneAppearance_TabPage, SelectSchemeHdl, weld::ComboBox&
initControlsFromModel();
}
IMPL_LINK_NOARG(ThreeD_SceneAppearance_TabPage, SelectShading, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ThreeD_SceneAppearance_TabPage, SelectShading, weld::Toggleable&, void)
{
if( !m_bUpdateOtherControls )
return;
@@ -297,7 +297,7 @@ IMPL_LINK_NOARG(ThreeD_SceneAppearance_TabPage, SelectShading, weld::ToggleButto
updateScheme();
}
IMPL_LINK(ThreeD_SceneAppearance_TabPage, SelectRoundedEdgeOrObjectLines, weld::ToggleButton&, rCheckBox, void)
IMPL_LINK(ThreeD_SceneAppearance_TabPage, SelectRoundedEdgeOrObjectLines, weld::Toggleable&, rCheckBox, void)
{
if( !m_bUpdateOtherControls )
return;
@@ -38,8 +38,8 @@ public:
private:
DECL_LINK( SelectSchemeHdl, weld::ComboBox&, void );
DECL_LINK( SelectShading, weld::ToggleButton&, void );
DECL_LINK( SelectRoundedEdgeOrObjectLines, weld::ToggleButton&, void );
DECL_LINK( SelectShading, weld::Toggleable&, void );
DECL_LINK( SelectRoundedEdgeOrObjectLines, weld::Toggleable&, void );
void initControlsFromModel();
void applyShadeModeToModel();
@@ -209,13 +209,13 @@ IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, PerspectiveChanged, Timer *, void)
applyPerspectiveToModel();
}
IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, PerspectiveToggled, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, PerspectiveToggled, weld::Toggleable&, void)
{
m_xMFPerspective->set_sensitive(m_xCbxPerspective->get_active());
applyPerspectiveToModel();
}
IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, RightAngledAxesToggled, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, RightAngledAxesToggled, weld::Toggleable&, void)
{
ControllerLockHelperGuard aGuard( m_rControllerLockHelper );
@@ -47,8 +47,8 @@ public:
DECL_LINK( PerspectiveChanged, Timer *, void);
// is called immediately when a field changes
DECL_LINK( PerspectiveEdited, weld::MetricSpinButton&, void );
DECL_LINK( PerspectiveToggled, weld::ToggleButton&, void );
DECL_LINK( RightAngledAxesToggled, weld::ToggleButton&, void );
DECL_LINK( PerspectiveToggled, weld::Toggleable&, void );
DECL_LINK( RightAngledAxesToggled, weld::Toggleable&, void );
private:
void applyAnglesToModel();
@@ -270,7 +270,7 @@ void SchAxisLabelTabPage::SetComplexCategories( bool bComplexCategories )
// event handling routines
IMPL_LINK_NOARG(SchAxisLabelTabPage, StackedToggleHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SchAxisLabelTabPage, StackedToggleHdl, weld::Toggleable&, void)
{
bool bActive = m_xCbStacked->get_active() && m_xCbStacked->get_sensitive();
m_xNfRotate->set_sensitive(!bActive);
@@ -279,7 +279,7 @@ IMPL_LINK_NOARG(SchAxisLabelTabPage, StackedToggleHdl, weld::ToggleButton&, void
m_xFtRotate->set_sensitive(!bActive);
}
IMPL_LINK_NOARG(SchAxisLabelTabPage, ToggleShowLabel, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SchAxisLabelTabPage, ToggleShowLabel, weld::Toggleable&, void)
{
bool bEnable = ( m_xCbShowDescription->get_state() != TRISTATE_FALSE );
@@ -65,8 +65,8 @@ private:
std::unique_ptr<svx::DialControl> m_xCtrlDial;
std::unique_ptr<weld::CustomWeld> m_xCtrlDialWin;
DECL_LINK(StackedToggleHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleShowLabel, weld::ToggleButton&, void);
DECL_LINK(StackedToggleHdl, weld::Toggleable&, void);
DECL_LINK(ToggleShowLabel, weld::Toggleable&, void);
public:
SchAxisLabelTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
@@ -316,12 +316,12 @@ IMPL_LINK_NOARG(RangeChooserTabPage, ControlEditedHdl, weld::Entry&, void)
isValid();
}
IMPL_LINK_NOARG(RangeChooserTabPage, ControlChangedRadioHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(RangeChooserTabPage, ControlChangedRadioHdl, weld::Toggleable&, void)
{
ControlChangedHdl(*m_xED_Range);
}
IMPL_LINK_NOARG(RangeChooserTabPage, ControlChangedCheckBoxHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(RangeChooserTabPage, ControlChangedCheckBoxHdl, weld::Toggleable&, void)
{
ControlChangedHdl(*m_xED_Range);
}
@@ -64,8 +64,8 @@ private:
DECL_LINK( ChooseRangeHdl, weld::Button&, void );
DECL_LINK( ControlChangedHdl, weld::Entry&, void );
DECL_LINK( ControlChangedCheckBoxHdl, weld::ToggleButton&, void );
DECL_LINK( ControlChangedRadioHdl, weld::ToggleButton&, void );
DECL_LINK( ControlChangedCheckBoxHdl, weld::Toggleable&, void );
DECL_LINK( ControlChangedRadioHdl, weld::Toggleable&, void );
DECL_LINK( ControlEditedHdl, weld::Entry&, void );
sal_Int32 m_nChangingControlCalls;
@@ -168,7 +168,7 @@ void ScaleTabPage::EnableControls()
EnableValueHdl(*m_xCbx_AutoTimeResolution);
}
IMPL_LINK( ScaleTabPage, EnableValueHdl, weld::ToggleButton&, rCbx, void )
IMPL_LINK( ScaleTabPage, EnableValueHdl, weld::Toggleable&, rCbx, void )
{
bool bEnable = !rCbx.get_active() && rCbx.get_sensitive();
if (&rCbx == m_xCbxAutoMin.get())
@@ -83,7 +83,7 @@ private:
void EnableControls();
DECL_LINK(SelectAxisTypeHdl, weld::ComboBox&, void);
DECL_LINK(EnableValueHdl, weld::ToggleButton&, void);
DECL_LINK(EnableValueHdl, weld::Toggleable&, void);
/** shows a warning window due to an invalid input.
@@ -60,7 +60,7 @@ SchOptionTabPage::~SchOptionTabPage()
{
}
IMPL_LINK_NOARG(SchOptionTabPage, EnableHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SchOptionTabPage, EnableHdl, weld::Toggleable&, void)
{
if( m_nAllSeriesAxisIndex == 0 )
m_xCBAxisSideBySide->set_sensitive( m_xRbtAxis2->get_active());
@@ -47,7 +47,7 @@ private: //methods
void AdaptControlPositionsAndVisibility();
private: //member
DECL_LINK(EnableHdl, weld::ToggleButton&, void );
DECL_LINK(EnableHdl, weld::Toggleable&, void );
sal_Int32 m_nAllSeriesAxisIndex;
@@ -60,7 +60,7 @@ SchAlignmentTabPage::SchAlignmentTabPage(weld::Container* pPage, weld::DialogCon
}
}
IMPL_LINK_NOARG(SchAlignmentTabPage, StackedToggleHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SchAlignmentTabPage, StackedToggleHdl, weld::Toggleable&, void)
{
bool bActive = m_xCbStacked->get_active();
m_xNfRotate->set_sensitive(!bActive);
@@ -45,7 +45,7 @@ private:
std::unique_ptr<svx::DialControl> m_xCtrlDial;
std::unique_ptr<weld::CustomWeld> m_xCtrlDialWin;
DECL_LINK(StackedToggleHdl, weld::ToggleButton&, void);
DECL_LINK(StackedToggleHdl, weld::Toggleable&, void);
public:
SchAlignmentTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs, bool bWithRotation = true);
@@ -132,7 +132,7 @@ void TitlesAndObjectsTabPage::commitToModel()
}
}
IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeCheckBoxHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeCheckBoxHdl, weld::Toggleable&, void)
{
ChangeHdl(nullptr);
}
@@ -49,7 +49,7 @@ private:
void commitToModel();
DECL_LINK( ChangeHdl, LinkParamNone*, void );
DECL_LINK( ChangeEditHdl, weld::Entry&, void );
DECL_LINK( ChangeCheckBoxHdl, weld::ToggleButton&, void );
DECL_LINK( ChangeCheckBoxHdl, weld::Toggleable&, void );
std::unique_ptr< TitleResources > m_xTitleResources;
std::unique_ptr< LegendPositionResources > m_xLegendPositionResources;
@@ -36,7 +36,7 @@ namespace weld { class Image; }
namespace weld { class Label; }
namespace weld { class MetricSpinButton; }
namespace weld { class RadioButton; }
namespace weld { class ToggleButton; }
namespace weld { class Toggleable; }
namespace weld { class Widget; }
namespace chart
@@ -124,11 +124,11 @@ private:
std::unique_ptr<weld::Label> m_xUIStringNeg;
std::unique_ptr<weld::Label> m_xUIStringRbRange;
DECL_LINK( CategoryChosen, weld::ToggleButton&, void );
DECL_LINK( CategoryChosen, weld::Toggleable&, void );
DECL_LINK( CategoryChosen2, weld::ComboBox&, void );
DECL_LINK( SynchronizePosAndNeg, weld::ToggleButton&, void );
DECL_LINK( SynchronizePosAndNeg, weld::Toggleable&, void );
DECL_LINK( PosValueChanged, weld::MetricSpinButton&, void );
DECL_LINK( IndicatorChanged, weld::ToggleButton&, void );
DECL_LINK( IndicatorChanged, weld::Toggleable&, void );
DECL_LINK( ChooseRange, weld::Button&, void );
DECL_LINK( RangeChanged, weld::Entry&, void );
@@ -26,7 +26,7 @@ namespace com::sun::star::uno { class XComponentContext; }
namespace weld { class Builder; }
namespace weld { class CheckButton; }
namespace weld { class RadioButton; }
namespace weld { class ToggleButton; }
namespace weld { class Toggleable; }
namespace chart
{
@@ -50,8 +50,8 @@ public:
void SetChangeHdl( const Link<LinkParamNone*,void>& rLink );
DECL_LINK( PositionEnableHdl, weld::ToggleButton&, void );
DECL_LINK( PositionChangeHdl, weld::ToggleButton&, void );
DECL_LINK( PositionEnableHdl, weld::Toggleable&, void );
DECL_LINK( PositionChangeHdl, weld::Toggleable&, void );
private:
void impl_setRadioButtonToggleHdl();
@@ -244,7 +244,7 @@ void ChartAxisPanel::Initialize()
updateData();
Link<weld::ToggleButton&,void> aLink = LINK(this, ChartAxisPanel, CheckBoxHdl);
Link<weld::Toggleable&,void> aLink = LINK(this, ChartAxisPanel, CheckBoxHdl);
mxCBShowLabel->connect_toggled(aLink);
mxCBReverse->connect_toggled(aLink);
@@ -345,7 +345,7 @@ void ChartAxisPanel::selectionChanged(bool bCorrectType)
updateData();
}
IMPL_LINK(ChartAxisPanel, CheckBoxHdl, weld::ToggleButton&, rCheckbox, void)
IMPL_LINK(ChartAxisPanel, CheckBoxHdl, weld::Toggleable&, rCheckbox, void)
{
OUString aCID = getCID(mxModel);
bool bChecked = rCheckbox.get_active();
@@ -83,7 +83,7 @@ private:
void Initialize();
void doUpdateModel(css::uno::Reference<css::frame::XModel> xModel);
DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
DECL_LINK(ListBoxHdl, weld::ComboBox&, void);
DECL_LINK(TextRotationHdl, weld::MetricSpinButton&, void);
};
@@ -378,7 +378,7 @@ void ChartElementsPanel::Initialize()
xBroadcaster->addModifyListener(mxListener);
updateData();
Link<weld::ToggleButton&,void> aLink = LINK(this, ChartElementsPanel, CheckBoxHdl);
Link<weld::Toggleable&,void> aLink = LINK(this, ChartElementsPanel, CheckBoxHdl);
mxCBTitle->connect_toggled(aLink);
mxCBSubtitle->connect_toggled(aLink);
mxCBXAxis->connect_toggled(aLink);
@@ -586,7 +586,7 @@ void ChartElementsPanel::updateModel(css::uno::Reference<css::frame::XModel> xMo
doUpdateModel(xModel);
}
IMPL_LINK(ChartElementsPanel, CheckBoxHdl, weld::ToggleButton&, rCheckBox, void)
IMPL_LINK(ChartElementsPanel, CheckBoxHdl, weld::Toggleable&, rCheckBox, void)
{
bool bChecked = rCheckBox.get_active();
if (&rCheckBox == mxCBTitle.get())
@@ -106,7 +106,7 @@ private:
void setTitleVisible(TitleHelper::eTitleType eTitle, bool bVisible);
DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
DECL_LINK(EditHdl, weld::Entry&, void);
DECL_LINK(LegendPosHdl, weld::ComboBox&, void);
};
@@ -273,7 +273,7 @@ void ChartErrorBarPanel::Initialize()
updateData();
Link<weld::ToggleButton&,void> aLink = LINK(this, ChartErrorBarPanel, RadioBtnHdl);
Link<weld::Toggleable&,void> aLink = LINK(this, ChartErrorBarPanel, RadioBtnHdl);
mxRBPosAndNeg->connect_toggled(aLink);
mxRBPos->connect_toggled(aLink);
mxRBNeg->connect_toggled(aLink);
@@ -393,7 +393,7 @@ void ChartErrorBarPanel::updateModel(css::uno::Reference<css::frame::XModel> xMo
doUpdateModel(xModel);
}
IMPL_LINK_NOARG(ChartErrorBarPanel, RadioBtnHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ChartErrorBarPanel, RadioBtnHdl, weld::Toggleable&, void)
{
OUString aCID = getCID(mxModel);
bool bPos = mxRBPosAndNeg->get_active() || mxRBPos->get_active();
@@ -80,7 +80,7 @@ private:
void Initialize();
void doUpdateModel(css::uno::Reference<css::frame::XModel> xModel);
DECL_LINK(RadioBtnHdl, weld::ToggleButton&, void);
DECL_LINK(RadioBtnHdl, weld::Toggleable&, void);
DECL_LINK(ListBoxHdl, weld::ComboBox&, void);
DECL_LINK(NumericFieldHdl, weld::SpinButton&, void);
};
@@ -327,13 +327,13 @@ void ChartSeriesPanel::Initialize()
updateData();
Link<weld::ToggleButton&,void> aLink = LINK(this, ChartSeriesPanel, CheckBoxHdl);
Link<weld::Toggleable&,void> aLink = LINK(this, ChartSeriesPanel, CheckBoxHdl);
mxCBLabel->connect_toggled(aLink);
mxCBTrendline->connect_toggled(aLink);
mxCBXError->connect_toggled(aLink);
mxCBYError->connect_toggled(aLink);
Link<weld::ToggleButton&,void> aLink2 = LINK(this, ChartSeriesPanel, RadioBtnHdl);
Link<weld::Toggleable&,void> aLink2 = LINK(this, ChartSeriesPanel, RadioBtnHdl);
mxRBPrimaryAxis->connect_toggled(aLink2);
mxRBSecondaryAxis->connect_toggled(aLink2);
@@ -444,7 +444,7 @@ void ChartSeriesPanel::selectionChanged(bool bCorrectType)
updateData();
}
IMPL_LINK(ChartSeriesPanel, CheckBoxHdl, weld::ToggleButton&, rCheckBox, void)
IMPL_LINK(ChartSeriesPanel, CheckBoxHdl, weld::Toggleable&, rCheckBox, void)
{
bool bChecked = rCheckBox.get_active();
OUString aCID = getCID(mxModel);
@@ -458,7 +458,7 @@ IMPL_LINK(ChartSeriesPanel, CheckBoxHdl, weld::ToggleButton&, rCheckBox, void)
setErrorBarVisible(mxModel, aCID, true, bChecked);
}
IMPL_LINK_NOARG(ChartSeriesPanel, RadioBtnHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ChartSeriesPanel, RadioBtnHdl, weld::Toggleable&, void)
{
OUString aCID = getCID(mxModel);
bool bChecked = mxRBPrimaryAxis->get_active();
@@ -100,8 +100,8 @@ private:
void Initialize();
void doUpdateModel(css::uno::Reference<css::frame::XModel> xModel);
DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
DECL_LINK(RadioBtnHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
DECL_LINK(RadioBtnHdl, weld::Toggleable&, void);
DECL_LINK(ListBoxHdl, weld::ComboBox&, void);
};
+4 -4
View File
@@ -49,7 +49,7 @@ public:
void fillParameter(ChartTypeParameter& rParameter);
private:
DECL_LINK(Dim3DLookCheckHdl, weld::ToggleButton&, void);
DECL_LINK(Dim3DLookCheckHdl, weld::Toggleable&, void);
DECL_LINK(SelectSchemeHdl, weld::ComboBox&, void);
private:
@@ -68,7 +68,7 @@ public:
void fillParameter(ChartTypeParameter& rParameter);
private:
DECL_LINK(SortByXValuesCheckHdl, weld::ToggleButton&, void);
DECL_LINK(SortByXValuesCheckHdl, weld::Toggleable&, void);
private:
std::unique_ptr<weld::CheckButton> m_xCB_XValueSorting;
@@ -85,8 +85,8 @@ public:
void fillParameter(ChartTypeParameter& rParameter);
private:
DECL_LINK(StackingChangeHdl, weld::ToggleButton&, void);
DECL_LINK(StackingEnableHdl, weld::ToggleButton&, void);
DECL_LINK(StackingChangeHdl, weld::Toggleable&, void);
DECL_LINK(StackingEnableHdl, weld::Toggleable&, void);
private:
std::unique_ptr<weld::CheckButton> m_xCB_Stacked;
+1 -1
View File
@@ -1253,7 +1253,7 @@ IMPL_LINK(SfxAcceleratorConfigPage, SelectHdl, weld::TreeView&, rListBox, void)
}
}
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RadioHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RadioHdl, weld::Toggleable&, void)
{
uno::Reference<ui::XAcceleratorConfiguration> xOld = m_xAct;
+2 -2
View File
@@ -126,7 +126,7 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea
Link<weld::ComboBox&, void> aComboBoxSelectHandler
= LINK(this, FontFeaturesDialog, ComboBoxSelectedHdl);
Link<weld::ToggleButton&, void> aCheckBoxToggleHandler
Link<weld::Toggleable&, void> aCheckBoxToggleHandler
= LINK(this, FontFeaturesDialog, CheckBoxToggledHdl);
if (aDefinition.getType() == vcl::font::FeatureParameterType::ENUM)
@@ -172,7 +172,7 @@ void FontFeaturesDialog::updateFontPreview()
m_aPreviewWindow.SetFont(rPreviewFont, rPreviewFontCJK, rPreviewFontCTL);
}
IMPL_LINK_NOARG(FontFeaturesDialog, CheckBoxToggledHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(FontFeaturesDialog, CheckBoxToggledHdl, weld::Toggleable&, void)
{
updateFontPreview();
}
+1 -1
View File
@@ -448,7 +448,7 @@ IMPL_LINK( SpellDialog, ExtClickHdl, weld::Button&, rBtn, void )
}
}
IMPL_LINK_NOARG(SpellDialog, CheckGrammarHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SpellDialog, CheckGrammarHdl, weld::Toggleable&, void)
{
rParent.SetGrammarChecking(m_xCheckGrammarCB->get_active());
Impl_Restore(true);
+3 -3
View File
@@ -773,7 +773,7 @@ public:
DECL_LINK(ColorModifyMetricHdl, weld::MetricSpinButton&, void);
DECL_LINK(ColorModifySpinHdl, weld::SpinButton&, void);
DECL_LINK(ColorModifyEditHdl, weld::Entry&, void);
DECL_LINK(ModeModifyHdl, weld::ToggleButton&, void);
DECL_LINK(ModeModifyHdl, weld::Toggleable&, void);
Color GetColor() const;
@@ -840,7 +840,7 @@ ColorPickerDialog::ColorPickerDialog(weld::Window* pParent, Color nColor, sal_In
m_xEDHex->connect_changed(LINK(this, ColorPickerDialog, ColorModifyEditHdl));
Link<weld::ToggleButton&,void> aLink2 = LINK( this, ColorPickerDialog, ModeModifyHdl );
Link<weld::Toggleable&,void> aLink2 = LINK( this, ColorPickerDialog, ModeModifyHdl );
m_xRBRed->connect_toggled( aLink2 );
m_xRBGreen->connect_toggled( aLink2 );
m_xRBBlue->connect_toggled( aLink2 );
@@ -1120,7 +1120,7 @@ IMPL_LINK(ColorPickerDialog, ColorModifySpinHdl, weld::SpinButton&, rEdit, void)
}
IMPL_LINK_NOARG(ColorPickerDialog, ModeModifyHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ColorPickerDialog, ModeModifyHdl, weld::Toggleable&, void)
{
ColorMode eMode = HUE;
+3 -3
View File
@@ -240,14 +240,14 @@ short FmSearchDialog::run()
return nRet;
}
IMPL_LINK(FmSearchDialog, OnToggledSearchRadio, weld::ToggleButton&, rButton, void)
IMPL_LINK(FmSearchDialog, OnToggledSearchRadio, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
EnableSearchForDependees(true);
}
IMPL_LINK(FmSearchDialog, OnToggledFieldRadios, weld::ToggleButton&, rButton, void)
IMPL_LINK(FmSearchDialog, OnToggledFieldRadios, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
@@ -369,7 +369,7 @@ IMPL_LINK_NOARG(FmSearchDialog, OnFieldSelected, weld::ComboBox&, void)
m_arrContextFields[nCurrentContext] = m_plbField->get_active_text();
}
IMPL_LINK(FmSearchDialog, OnCheckBoxToggled, weld::ToggleButton&, rBox, void)
IMPL_LINK(FmSearchDialog, OnCheckBoxToggled, weld::Toggleable&, rBox, void)
{
bool bChecked = rBox.get_active();
+1 -1
View File
@@ -857,7 +857,7 @@ void TPGalleryThemeProperties::TakeFiles()
}
}
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickPreviewHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickPreviewHdl, weld::Toggleable&, void)
{
if ( !bInputAllowed )
return;
+2 -2
View File
@@ -175,7 +175,7 @@ GraphicFilterMosaic::GraphicFilterMosaic(weld::Window* pParent, const Graphic& r
mxMtrWidth->grab_focus();
}
IMPL_LINK_NOARG(GraphicFilterMosaic, CheckBoxModifyHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(GraphicFilterMosaic, CheckBoxModifyHdl, weld::Toggleable&, void)
{
GetModifyHdl().Call(nullptr);
}
@@ -276,7 +276,7 @@ GraphicFilterSolarize::GraphicFilterSolarize(weld::Window* pParent, const Graphi
mxCbxInvert->connect_toggled(LINK(this, GraphicFilterSolarize, CheckBoxModifyHdl));
}
IMPL_LINK_NOARG(GraphicFilterSolarize, CheckBoxModifyHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(GraphicFilterSolarize, CheckBoxModifyHdl, weld::Toggleable&, void)
{
GetModifyHdl().Call(nullptr);
}
+5 -5
View File
@@ -205,7 +205,7 @@ namespace svx
void set_active(bool active) { m_xControl->set_active(active); }
bool get_active() const { return m_xControl->get_active(); }
void connect_toggled(const Link<weld::ToggleButton&, void>& rLink) { m_xControl->connect_toggled(rLink); }
void connect_toggled(const Link<weld::Toggleable&, void>& rLink) { m_xControl->connect_toggled(rLink); }
private:
Size GetOptimalSize() const;
@@ -527,7 +527,7 @@ namespace svx
m_xFind->connect_clicked(rHdl);
}
void HangulHanjaConversionDialog::SetConversionFormatChangedHdl( const Link<weld::ToggleButton&,void>& rHdl )
void HangulHanjaConversionDialog::SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& rHdl )
{
m_xSimpleConversion->connect_toggled( rHdl );
m_xHangulBracketed->connect_toggled( rHdl );
@@ -538,7 +538,7 @@ namespace svx
m_xHangulBelow->connect_toggled( rHdl );
}
void HangulHanjaConversionDialog::SetClickByCharacterHdl( const Link<weld::ToggleButton&,void>& _rHdl )
void HangulHanjaConversionDialog::SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& _rHdl )
{
m_aClickByCharacterLink = _rHdl;
}
@@ -558,14 +558,14 @@ namespace svx
m_xReplaceAll->set_sensitive( m_bDocumentMode && bSameLen );
}
IMPL_LINK(HangulHanjaConversionDialog, ClickByCharacterHdl, weld::ToggleButton&, rBox, void)
IMPL_LINK(HangulHanjaConversionDialog, ClickByCharacterHdl, weld::Toggleable&, rBox, void)
{
m_aClickByCharacterLink.Call(rBox);
bool bByCharacter = rBox.get_active();
m_xSuggestions->DisplayListBox( !bByCharacter );
}
IMPL_LINK(HangulHanjaConversionDialog, OnConversionDirectionClicked, weld::ToggleButton&, rBox, void)
IMPL_LINK(HangulHanjaConversionDialog, OnConversionDirectionClicked, weld::Toggleable&, rBox, void)
{
weld::CheckButton* pOtherBox = nullptr;
if (&rBox == m_xHangulOnly.get())
+3 -3
View File
@@ -67,7 +67,7 @@ SvxHyperlinkInternetTp::SvxHyperlinkInternetTp(weld::Container* pParent,
m_xRbtLinktypInternet->set_active(true);
// set handlers
Link<weld::ToggleButton&, void> aLink( LINK ( this, SvxHyperlinkInternetTp, Click_SmartProtocol_Impl ) );
Link<weld::Toggleable&, void> aLink( LINK ( this, SvxHyperlinkInternetTp, Click_SmartProtocol_Impl ) );
m_xRbtLinktypInternet->connect_toggled( aLink );
m_xRbtLinktypFTP->connect_toggled( aLink );
m_xCbAnonymous->connect_toggled( LINK ( this, SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl ) );
@@ -314,7 +314,7 @@ INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons() const
|* Click on Radiobutton : Internet or FTP
|*
|************************************************************************/
IMPL_LINK(SvxHyperlinkInternetTp, Click_SmartProtocol_Impl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SvxHyperlinkInternetTp, Click_SmartProtocol_Impl, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
@@ -327,7 +327,7 @@ IMPL_LINK(SvxHyperlinkInternetTp, Click_SmartProtocol_Impl, weld::ToggleButton&,
|* Click on Checkbox : Anonymous user
|*
|************************************************************************/
IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxHyperlinkInternetTp, ClickAnonymousHdl_Impl, weld::Toggleable&, void)
{
// disable login-editfields if checked
if ( m_xCbAnonymous->get_active() )
+4 -4
View File
@@ -105,7 +105,7 @@ IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl, weld::Button&, void)
}
}
IMPL_LINK(SvInsertOleDlg, RadioHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SvInsertOleDlg, RadioHdl, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
@@ -140,7 +140,7 @@ SvInsertOleDlg::SvInsertOleDlg(weld::Window* pParent, const Reference<embed::XSt
m_xLbObjecttype->get_height_rows(6));
m_xLbObjecttype->connect_row_activated(LINK(this, SvInsertOleDlg, DoubleClickHdl));
m_xBtnFilepath->connect_clicked(LINK( this, SvInsertOleDlg, BrowseHdl));
Link<weld::ToggleButton&,void> aLink( LINK( this, SvInsertOleDlg, RadioHdl ) );
Link<weld::Toggleable&,void> aLink( LINK( this, SvInsertOleDlg, RadioHdl ) );
m_xRbNewObject->connect_toggled( aLink );
m_xRbObjectFromfile->connect_toggled( aLink );
m_xRbNewObject->set_active(true);
@@ -361,7 +361,7 @@ void SfxInsertFloatingFrameDialog::Init()
m_xNMMarginHeight = m_xBuilder->weld_spin_button("height");
m_xCBMarginHeightDefault = m_xBuilder->weld_check_button("defaultheight");
Link<weld::ToggleButton&, void> aLink(LINK(this, SfxInsertFloatingFrameDialog, CheckHdl));
Link<weld::Toggleable&, void> aLink(LINK(this, SfxInsertFloatingFrameDialog, CheckHdl));
m_xCBMarginWidthDefault->connect_toggled(aLink);
m_xCBMarginHeightDefault->connect_toggled(aLink);
@@ -548,7 +548,7 @@ short SfxInsertFloatingFrameDialog::run()
return nRet;
}
IMPL_LINK(SfxInsertFloatingFrameDialog, CheckHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SfxInsertFloatingFrameDialog, CheckHdl, weld::Toggleable&, rButton, void)
{
weld::CheckButton& rCB = dynamic_cast<weld::CheckButton&>(rButton);
if (&rCB == m_xCBMarginWidthDefault.get())
+1 -1
View File
@@ -221,7 +221,7 @@ IMPL_LINK_NOARG( SvBaseLinksDlg, LinksDoubleClickHdl, weld::TreeView&, bool )
return true;
}
IMPL_LINK(SvBaseLinksDlg, ToggleHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SvBaseLinksDlg, ToggleHdl, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
+1 -1
View File
@@ -159,7 +159,7 @@ bool PasswordToOpenModifyDialog::IsRecommendToOpenReadonly() const
return m_xOpenReadonlyCB->get_active();
}
IMPL_LINK_NOARG(PasswordToOpenModifyDialog, ReadonlyOnOffHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(PasswordToOpenModifyDialog, ReadonlyOnOffHdl, weld::Toggleable&, void)
{
bool bEnable = m_xOpenReadonlyCB->get_active();
m_xPasswdToModifyED->set_sensitive(bEnable);
+1 -1
View File
@@ -50,7 +50,7 @@ SvxSplitTableDlg::SvxSplitTableDlg(weld::Window *pParent, bool bIsTableVertical,
}
}
IMPL_LINK(SvxSplitTableDlg, ToggleHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SvxSplitTableDlg, ToggleHdl, weld::Toggleable&, rButton, void)
{
if (!rButton.get_active())
return;
+2 -2
View File
@@ -98,7 +98,7 @@ ToolbarmodeDialog::ToolbarmodeDialog(weld::Window* pParent)
{
static_assert(SAL_N_ELEMENTS(m_pRadioButtons) == SAL_N_ELEMENTS(TOOLBARMODES_ARRAY));
Link<weld::ToggleButton&, void> aLink = LINK(this, ToolbarmodeDialog, SelectToolbarmode);
Link<weld::Toggleable&, void> aLink = LINK(this, ToolbarmodeDialog, SelectToolbarmode);
const OUString sCurrentMode = GetCurrentMode();
for (tools::ULong i = 0; i < SAL_N_ELEMENTS(m_pRadioButtons); i++)
@@ -161,7 +161,7 @@ void ToolbarmodeDialog::UpdateImage(std::u16string_view sFileName)
}
}
IMPL_LINK_NOARG(ToolbarmodeDialog, SelectToolbarmode, weld::ToggleButton&, void)
IMPL_LINK_NOARG(ToolbarmodeDialog, SelectToolbarmode, weld::Toggleable&, void)
{
const int i = GetActiveRadioButton();
if (i > -1)
+6 -6
View File
@@ -138,14 +138,14 @@ SvxZoomDialog::SvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet)
, m_xBookModeChk(m_xBuilder->weld_check_button("bookmode"))
, m_xOKBtn(m_xBuilder->weld_button("ok"))
{
Link<weld::ToggleButton&, void> aLink = LINK(this, SvxZoomDialog, UserHdl);
Link<weld::Toggleable&, void> aLink = LINK(this, SvxZoomDialog, UserHdl);
m_x100Btn->connect_toggled(aLink);
m_xOptimalBtn->connect_toggled(aLink);
m_xPageWidthBtn->connect_toggled(aLink);
m_xWholePageBtn->connect_toggled(aLink);
m_xUserBtn->connect_toggled(aLink);
Link<weld::ToggleButton&, void> aViewLayoutLink = LINK(this, SvxZoomDialog, ViewLayoutUserHdl);
Link<weld::Toggleable&, void> aViewLayoutLink = LINK(this, SvxZoomDialog, ViewLayoutUserHdl);
m_xAutomaticBtn->connect_toggled(aViewLayoutLink);
m_xSingleBtn->connect_toggled(aViewLayoutLink);
m_xColumnsBtn->connect_toggled(aViewLayoutLink);
@@ -154,7 +154,7 @@ SvxZoomDialog::SvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet)
= LINK(this, SvxZoomDialog, ViewLayoutSpinHdl);
m_xColumnsEdit->connect_value_changed(aViewLayoutSpinLink);
Link<weld::ToggleButton&, void> aViewLayoutCheckLink
Link<weld::Toggleable&, void> aViewLayoutCheckLink
= LINK(this, SvxZoomDialog, ViewLayoutCheckHdl);
m_xBookModeChk->connect_toggled(aViewLayoutCheckLink);
@@ -273,7 +273,7 @@ SvxZoomDialog::SvxZoomDialog(weld::Window* pParent, const SfxItemSet& rCoreSet)
}
}
IMPL_LINK_NOARG(SvxZoomDialog, UserHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxZoomDialog, UserHdl, weld::Toggleable&, void)
{
m_bModified = true;
@@ -296,7 +296,7 @@ IMPL_LINK_NOARG(SvxZoomDialog, SpinHdl, weld::MetricSpinButton&, void)
m_bModified = true;
}
IMPL_LINK_NOARG(SvxZoomDialog, ViewLayoutUserHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxZoomDialog, ViewLayoutUserHdl, weld::Toggleable&, void)
{
m_bModified = true;
@@ -332,7 +332,7 @@ IMPL_LINK_NOARG(SvxZoomDialog, ViewLayoutSpinHdl, weld::SpinButton&, void)
m_bModified = true;
}
IMPL_LINK_NOARG(SvxZoomDialog, ViewLayoutCheckHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxZoomDialog, ViewLayoutCheckHdl, weld::Toggleable&, void)
{
if (!m_xColumnsBtn->get_active())
return;
+2 -2
View File
@@ -458,12 +458,12 @@ void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link<weld:
m_xDlg->SetChangeAllHdl(rHdl);
}
void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link<weld::ToggleButton&,void>& _rHdl )
void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& _rHdl )
{
m_xDlg->SetClickByCharacterHdl(_rHdl );
}
void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl(const Link<weld::ToggleButton&,void>& rHdl)
void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl(const Link<weld::Toggleable&,void>& rHdl)
{
m_xDlg->SetConversionFormatChangedHdl(rHdl);
}
+2 -2
View File
@@ -192,8 +192,8 @@ public:
virtual void SetIgnoreAllHdl( const Link<weld::Button&,void>& _rHdl ) override ;
virtual void SetChangeHdl( const Link<weld::Button&,void>& _rHdl ) override ;
virtual void SetChangeAllHdl( const Link<weld::Button&,void>& rHdl ) override ;
virtual void SetClickByCharacterHdl( const Link<weld::ToggleButton&,void>& rHdl ) override ;
virtual void SetConversionFormatChangedHdl( const Link<weld::ToggleButton&,void>& _rHdl ) override ;
virtual void SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& rHdl ) override ;
virtual void SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& _rHdl ) override ;
virtual void SetFindHdl( const Link<weld::Button&,void>& _rHdl ) override;
virtual bool GetUseBothDirections( ) const override;
virtual editeng::HangulHanjaConversion::ConversionDirection
+1 -1
View File
@@ -59,7 +59,7 @@ private:
int fillGrid(std::vector<vcl::font::Feature> const& rFontFeatures);
DECL_LINK(ComboBoxSelectedHdl, weld::ComboBox&, void);
DECL_LINK(CheckBoxToggledHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxToggledHdl, weld::Toggleable&, void);
public:
FontFeaturesDialog(weld::Window* pParent, OUString const& rFontName);
+1 -1
View File
@@ -172,7 +172,7 @@ private:
DECL_LINK(ChangeAllHdl, weld::Button&, void);
DECL_LINK(IgnoreAllHdl, weld::Button&, void);
DECL_LINK(IgnoreHdl, weld::Button&, void);
DECL_LINK(CheckGrammarHdl, weld::ToggleButton&, void);
DECL_LINK(CheckGrammarHdl, weld::Toggleable&, void);
DECL_LINK(ExtClickHdl, weld::Button&, void);
DECL_LINK(CancelHdl, weld::Button&, void);
DECL_LINK(ModifyHdl, LinkParamNone*, void);
+1 -1
View File
@@ -122,7 +122,7 @@ private:
DECL_LINK(Save, weld::Button&, void);
DECL_LINK(Load, weld::Button&, void);
DECL_LINK(Default, weld::Button&, void);
DECL_LINK(RadioHdl, weld::ToggleButton&, void);
DECL_LINK(RadioHdl, weld::Toggleable&, void);
DECL_LINK(ImplUpdateDataHdl, Timer*, void);
DECL_LINK(FocusOut_Impl, weld::Widget&, void);
DECL_LINK(TimeOut_Impl, Timer*, void);
+5 -5
View File
@@ -65,11 +65,11 @@ private:
bool HasAlignmentChanged( const SfxItemSet& rNew, sal_uInt16 nWhich ) const;
DECL_LINK(UpdateEnableHdl, weld::ComboBox&, void);
DECL_LINK(StackedClickHdl, weld::ToggleButton&, void);
DECL_LINK(AsianModeClickHdl, weld::ToggleButton&, void);
DECL_LINK(WrapClickHdl, weld::ToggleButton&, void);
DECL_LINK(HyphenClickHdl, weld::ToggleButton&, void);
DECL_LINK(ShrinkClickHdl, weld::ToggleButton&, void);
DECL_LINK(StackedClickHdl, weld::Toggleable&, void);
DECL_LINK(AsianModeClickHdl, weld::Toggleable&, void);
DECL_LINK(WrapClickHdl, weld::Toggleable&, void);
DECL_LINK(HyphenClickHdl, weld::Toggleable&, void);
DECL_LINK(ShrinkClickHdl, weld::Toggleable&, void);
private:
weld::TriStateEnabled m_aStackedState;
+2 -2
View File
@@ -340,7 +340,7 @@ private:
std::unique_ptr<weld::TreeView> m_xLBEntries;
std::unique_ptr<weld::Button> m_xPBEntries;
DECL_LINK(CheckHdl, weld::ToggleButton&, void);
DECL_LINK(CheckHdl, weld::Toggleable&, void);
DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool);
public:
@@ -388,7 +388,7 @@ private:
Enables/disables all controls in the tab page (except from the
check box.
*/
DECL_LINK(CheckHdl, weld::ToggleButton&, void);
DECL_LINK(CheckHdl, weld::Toggleable&, void);
/** Handler for the push button
+2 -2
View File
@@ -165,8 +165,8 @@ private:
DECL_LINK(LinesChanged_Impl, LinkParamNone*, void);
DECL_LINK(ModifyDistanceHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ModifyWidthHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(SyncHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(RemoveAdjacentCellBorderHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(SyncHdl_Impl, weld::Toggleable&, void);
DECL_LINK(RemoveAdjacentCellBorderHdl_Impl, weld::Toggleable&, void);
sal_uInt16 GetPresetImageId(sal_uInt16 nValueSetIdx) const;
const char* GetPresetStringId(sal_uInt16 nValueSetIdx) const;
+9 -9
View File
@@ -205,10 +205,10 @@ private:
void SelectHdl_Impl(const weld::ComboBox*);
DECL_LINK(SelectListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(OutlineBtnClickHdl, weld::ToggleButton&, void);
DECL_LINK(ShadowBtnClickHdl, weld::ToggleButton&, void);
DECL_LINK(HiddenBtnClickHdl, weld::ToggleButton&, void);
DECL_LINK(CbClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(OutlineBtnClickHdl, weld::Toggleable&, void);
DECL_LINK(ShadowBtnClickHdl, weld::Toggleable&, void);
DECL_LINK(HiddenBtnClickHdl, weld::Toggleable&, void);
DECL_LINK(CbClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ColorBoxSelectHdl_Impl, ColorListBox&, void);
DECL_LINK(ModifyFontTransparencyHdl_Impl, weld::MetricSpinButton&, void);
@@ -272,10 +272,10 @@ private:
void UpdatePreview_Impl( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
void SetEscapement_Impl( SvxEscapement nEsc );
DECL_LINK(PositionHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(RotationHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(AutoPositionHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(FitToLineHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(PositionHdl_Impl, weld::Toggleable&, void);
DECL_LINK(RotationHdl_Impl, weld::Toggleable&, void);
DECL_LINK(AutoPositionHdl_Impl, weld::Toggleable&, void);
DECL_LINK(FitToLineHdl_Impl, weld::Toggleable&, void);
DECL_LINK(KerningModifyHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ValueChangedHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ScaleWidthModifyHdl_Impl, weld::MetricSpinButton&, void);
@@ -317,7 +317,7 @@ private:
void SelectCharacter(weld::TreeView* pBox);
void SetBracket(sal_Unicode cBracket, bool bStart);
DECL_LINK(TwoLinesHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(TwoLinesHdl_Impl, weld::Toggleable&, void);
DECL_LINK(CharacterMapHdl_Impl, weld::TreeView&, void);
public:
+3 -3
View File
@@ -148,8 +148,8 @@ private:
void SaveParams() const;
// Handler for the Controls
DECL_LINK(OnToggledSearchRadio, weld::ToggleButton&, void);
DECL_LINK(OnToggledFieldRadios, weld::ToggleButton&, void);
DECL_LINK(OnToggledSearchRadio, weld::Toggleable&, void);
DECL_LINK(OnToggledFieldRadios, weld::Toggleable&, void);
DECL_LINK(OnClickedSearchAgain, weld::Button&, void);
DECL_LINK(OnClickedSpecialSettings, weld::Button&, void);
@@ -159,7 +159,7 @@ private:
DECL_LINK(OnFieldSelected, weld::ComboBox&, void);
DECL_LINK(OnFocusGrabbed, weld::Widget&, void);
DECL_LINK(OnCheckBoxToggled, weld::ToggleButton&, void);
DECL_LINK(OnCheckBoxToggled, weld::Toggleable&, void);
DECL_LINK(OnContextSelection, weld::ComboBox&, void);
+1 -1
View File
@@ -251,7 +251,7 @@ class TPGalleryThemeProperties : public SfxTabPage
void DoPreview();
void EndSearchProgressHdl(sal_Int32 nResult);
DECL_LINK(ClickPreviewHdl, weld::ToggleButton&, void);
DECL_LINK(ClickPreviewHdl, weld::Toggleable&, void);
DECL_LINK(ClickSearchHdl, weld::Button&, void);
DECL_LINK(ClickTakeHdl, weld::Button&, void);
DECL_LINK(ClickTakeAllHdl, weld::Button&, void);
+2 -2
View File
@@ -101,7 +101,7 @@ private:
std::unique_ptr<weld::MetricSpinButton> mxMtrWidth;
std::unique_ptr<weld::MetricSpinButton> mxMtrHeight;
std::unique_ptr<weld::CheckButton> mxCbxEdges;
DECL_LINK(CheckBoxModifyHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxModifyHdl, weld::Toggleable&, void);
DECL_LINK(EditModifyHdl, weld::MetricSpinButton&, void);
public:
@@ -117,7 +117,7 @@ class GraphicFilterSolarize : public GraphicFilterDialog
private:
std::unique_ptr<weld::MetricSpinButton> mxMtrThreshold;
std::unique_ptr<weld::CheckButton> mxCbxInvert;
DECL_LINK(CheckBoxModifyHdl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxModifyHdl, weld::Toggleable&, void);
DECL_LINK(EditModifyHdl, weld::MetricSpinButton&, void);
public:
+22 -22
View File
@@ -39,8 +39,8 @@ class ButtonBox
{
private:
sal_Int32 mnCurrentButton;
std::vector<weld::ToggleButton*> maButtonList;
std::map<weld::ToggleButton*, sal_Int32 > maButtonToPos;
std::vector<weld::Toggleable*> maButtonList;
std::map<weld::Toggleable*, sal_Int32 > maButtonToPos;
void SelectButtonImpl( sal_Int32 nPos )
{
if(mnCurrentButton != NO_BUTTON_SELECTED)
@@ -55,21 +55,21 @@ class ButtonBox
{
mnCurrentButton = NO_BUTTON_SELECTED;
};
void AddButton(weld::ToggleButton* pButton)
void AddButton(weld::Toggleable* pButton)
{
maButtonList.push_back(pButton);
maButtonToPos.insert( std::make_pair(pButton, maButtonList.size() - 1) );
}
sal_Int32 GetCurrentButtonPos() const { return mnCurrentButton; }
sal_Int32 GetButtonPos(weld::ToggleButton* pButton)
sal_Int32 GetButtonPos(weld::Toggleable* pButton)
{
std::map<weld::ToggleButton*, sal_Int32>::const_iterator aBtnPos = maButtonToPos.find(pButton);
std::map<weld::Toggleable*, sal_Int32>::const_iterator aBtnPos = maButtonToPos.find(pButton);
if(aBtnPos != maButtonToPos.end())
return aBtnPos->second;
else
return -1;
}
void SelectButton(weld::ToggleButton* pButton)
void SelectButton(weld::Toggleable* pButton)
{
sal_Int32 nPos = GetButtonPos(pButton);
if(nPos != -1)
@@ -168,9 +168,9 @@ class SvxTransparenceTabPage : public SfxTabPage
std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
DECL_LINK(ClickTransOffHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickTransLinearHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickTransGradientHdl_Impl, weld::ToggleButton&, void );
DECL_LINK(ClickTransOffHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ClickTransLinearHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ClickTransGradientHdl_Impl, weld::Toggleable&, void );
DECL_LINK(ModifyTransparentHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ModifiedTrgrEditHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ModifiedTrgrListBoxHdl_Impl, weld::ComboBox&, void);
@@ -235,22 +235,22 @@ private:
protected:
std::unique_ptr<weld::Container> m_xFillTab;
std::unique_ptr<weld::ToggleButton> m_xBtnNone;
std::unique_ptr<weld::ToggleButton> m_xBtnColor;
std::unique_ptr<weld::ToggleButton> m_xBtnGradient;
std::unique_ptr<weld::ToggleButton> m_xBtnHatch;
std::unique_ptr<weld::ToggleButton> m_xBtnBitmap;
std::unique_ptr<weld::ToggleButton> m_xBtnPattern;
std::unique_ptr<weld::Toggleable> m_xBtnNone;
std::unique_ptr<weld::Toggleable> m_xBtnColor;
std::unique_ptr<weld::Toggleable> m_xBtnGradient;
std::unique_ptr<weld::Toggleable> m_xBtnHatch;
std::unique_ptr<weld::Toggleable> m_xBtnBitmap;
std::unique_ptr<weld::Toggleable> m_xBtnPattern;
void SetOptimalSize(weld::DialogController* pController);
void SelectFillType( weld::ToggleButton& rButton, const SfxItemSet* _pSet = nullptr );
void SelectFillType( weld::Toggleable& rButton, const SfxItemSet* _pSet = nullptr );
SfxTabPage* GetFillTabPage() { return m_xFillTabPage.get(); }
bool IsBtnClicked() const { return m_bBtnClicked; }
private:
DECL_LINK(SelectFillTypeHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(SelectFillTypeHdl_Impl, weld::Toggleable&, void);
template< typename TabPage >
bool FillItemSet_Impl( SfxItemSet* );
@@ -315,7 +315,7 @@ private:
std::unique_ptr<weld::CustomWeld> m_xCtlPosition;
std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
DECL_LINK(ClickShadowHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickShadowHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ModifyShadowHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(SelectShadowHdl_Impl, ColorListBox&, void);
@@ -387,7 +387,7 @@ private:
DECL_LINK( ModifiedMetricHdl_Impl, weld::MetricSpinButton&, void );
DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
DECL_LINK( ChangeAutoStepHdl_Impl, weld::ToggleButton&, void );
DECL_LINK( ChangeAutoStepHdl_Impl, weld::Toggleable&, void );
DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
void ModifiedHdl_Impl(void const *);
@@ -451,7 +451,7 @@ private:
DECL_LINK( ModifiedEditHdl_Impl, weld::MetricSpinButton&, void );
DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
DECL_LINK( ToggleHatchBackgroundColor_Impl, weld::ToggleButton&, void );
DECL_LINK( ToggleHatchBackgroundColor_Impl, weld::Toggleable&, void );
DECL_LINK( ModifiedBackgroundHdl_Impl, ColorListBox&, void );
DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
void ModifiedHdl_Impl(void const *);
@@ -527,7 +527,7 @@ private:
std::unique_ptr<weld::CustomWeld> m_xBitmapLBWin;
DECL_LINK( ModifyBitmapHdl, ValueSet*, void );
DECL_LINK( ClickScaleHdl, weld::ToggleButton&, void );
DECL_LINK( ClickScaleHdl, weld::Toggleable&, void );
DECL_LINK( ModifyBitmapStyleHdl, weld::ComboBox&, void );
DECL_LINK( ModifyBitmapSizeHdl, weld::MetricSpinButton&, void );
DECL_LINK( ModifyBitmapPositionHdl, weld::ComboBox&, void );
@@ -695,7 +695,7 @@ private:
DECL_LINK(SelectPaletteLBHdl, weld::ComboBox&, void);
DECL_LINK( SelectValSetHdl_Impl, ValueSet*, void );
DECL_LINK( SelectColorModeHdl_Impl, weld::ToggleButton&, void );
DECL_LINK( SelectColorModeHdl_Impl, weld::Toggleable&, void );
void ChangeColor(const Color &rNewColor, bool bUpdatePreset = true);
void SetColorModel(ColorModel eModel);
void ChangeColorModel();
+6 -6
View File
@@ -171,17 +171,17 @@ private:
// handler for gallery popup menu button + size
DECL_LINK(GraphicHdl_Impl, const OString&, void);
DECL_LINK(SizeHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(MenuCreateHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(RatioHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(MenuCreateHdl_Impl, weld::Toggleable&, void);
DECL_LINK(RatioHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ClickInvisibleHdl_Impl, weld::ComboBox&, void);
void ClickInvisibleHdl_Impl();
DECL_LINK(ChangeStartClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ChangeStartClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ChangeStartListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(ChangeStartModifyHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ChangeEndListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(ChangeEndModifyHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ChangeEndClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ChangeEndClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ChangePreviewListBoxHdl_Impl, ColorListBox&, void);
DECL_LINK(ChangePreviewModifyHdl_Impl, weld::MetricSpinButton&, void);
void ChangePreviewHdl_Impl(const weld::MetricSpinButton*);
@@ -282,10 +282,10 @@ private:
DECL_LINK(ChangeNumber2Hdl_Impl, weld::SpinButton&, void);
DECL_LINK(ClickLoadHdl_Impl, weld::Button&, void);
DECL_LINK(ClickSaveHdl_Impl, weld::Button&, void);
DECL_LINK(ChangeMetricHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ChangeMetricHdl_Impl, weld::Toggleable&, void);
DECL_LINK(SelectTypeListBoxHdl_Impl, weld::ComboBox&, void);
void SelectTypeHdl_Impl(const weld::ComboBox*);
void ChangeMetricHdl_Impl(const weld::ToggleButton*);
void ChangeMetricHdl_Impl(const weld::Toggleable*);
void CheckChanges_Impl();
+5 -5
View File
@@ -96,7 +96,7 @@ namespace svx
bool m_bDocumentMode;
Link<LinkParamNone*,void> m_aOptionsChangedLink;
Link<weld::ToggleButton&,void> m_aClickByCharacterLink;
Link<weld::Toggleable&,void> m_aClickByCharacterLink;
std::unique_ptr<weld::Button> m_xFind;
std::unique_ptr<weld::Button> m_xIgnore;
@@ -128,8 +128,8 @@ namespace svx
void SetChangeHdl( const Link<weld::Button&,void>& _rHdl );
void SetChangeAllHdl( const Link<weld::Button&,void>& _rHdl );
void SetClickByCharacterHdl( const Link<weld::ToggleButton&,void>& _rHdl );
void SetConversionFormatChangedHdl( const Link<weld::ToggleButton&,void>& _rHdl );
void SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& _rHdl );
void SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& _rHdl );
void SetFindHdl( const Link<weld::Button&,void>& _rHdl );
OUString GetCurrentString( ) const;
@@ -164,8 +164,8 @@ namespace svx
DECL_LINK( OnOption, weld::Button&, void );
DECL_LINK( OnSuggestionModified, weld::Entry&, void );
DECL_LINK( OnSuggestionSelected, SuggestionDisplay&, void );
DECL_LINK( OnConversionDirectionClicked, weld::ToggleButton&, void );
DECL_LINK( ClickByCharacterHdl, weld::ToggleButton&, void );
DECL_LINK( OnConversionDirectionClicked, weld::Toggleable&, void );
DECL_LINK( ClickByCharacterHdl, weld::Toggleable&, void );
/// fill the suggestion list box with suggestions for the actual input
void FillSuggestions( const css::uno::Sequence< OUString >& _rSuggestions );
+2 -2
View File
@@ -45,8 +45,8 @@ private:
std::unique_ptr<weld::Entry> m_xEdPassword;
std::unique_ptr<weld::CheckButton> m_xCbAnonymous;
DECL_LINK( Click_SmartProtocol_Impl, weld::ToggleButton&, void ); ///< Radiobutton toggled: Type HTTP or FTP
DECL_LINK( ClickAnonymousHdl_Impl, weld::ToggleButton&, void ); ///< Checkbox : Anonymous User
DECL_LINK( Click_SmartProtocol_Impl, weld::Toggleable&, void ); ///< Radiobutton toggled: Type HTTP or FTP
DECL_LINK( ClickAnonymousHdl_Impl, weld::Toggleable&, void ); ///< Checkbox : Anonymous User
DECL_LINK( ModifiedLoginHdl_Impl, weld::Entry&, void ); ///< Contents of editfield "Login" modified
DECL_LINK( LostFocusTargetHdl_Impl, weld::Widget&, void ); ///< Combobox "Target" lost its focus
DECL_LINK( ModifiedTargetHdl_Impl, weld::ComboBox&, void ); ///< Contents of editfield "Target" modified
+2 -2
View File
@@ -64,7 +64,7 @@ class SvInsertOleDlg : public InsertObjectDialog_Impl
DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
DECL_LINK(BrowseHdl, weld::Button&, void);
DECL_LINK(RadioHdl, weld::ToggleButton&, void);
DECL_LINK(RadioHdl, weld::Toggleable&, void);
bool IsCreateNew() const override { return m_xRbNewObject->get_active(); }
public:
@@ -99,7 +99,7 @@ private:
std::unique_ptr<weld::CheckButton> m_xCBMarginHeightDefault;
DECL_LINK(OpenHdl, weld::Button&, void);
DECL_LINK(CheckHdl, weld::ToggleButton&, void);
DECL_LINK(CheckHdl, weld::Toggleable&, void);
void Init();
+1 -1
View File
@@ -73,7 +73,7 @@ private:
void SetupType_Impl( SdrCaptionType nType );
DECL_LINK(ExtensionSelectHdl_Impl, weld::ComboBox&, void);
DECL_LINK(PositionSelectHdl_Impl, weld::ComboBox&, void);
DECL_LINK(LineOptHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(LineOptHdl_Impl, weld::Toggleable&, void);
DECL_LINK(SelectCaptTypeHdl_Impl, ValueSet*, void);
public:
+1 -1
View File
@@ -58,7 +58,7 @@ class SvBaseLinksDlg : public weld::GenericDialogController
DECL_LINK(LinksSelectHdl, weld::TreeView&, void);
DECL_LINK(LinksDoubleClickHdl, weld::TreeView&, bool);
DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleHdl, weld::Toggleable&, void);
DECL_LINK(UpdateNowClickHdl, weld::Button&, void);
DECL_LINK(ChangeSourceClickHdl, weld::Button&, void);
DECL_LINK(BreakLinkClickHdl, weld::Button&, void);
+2 -2
View File
@@ -57,11 +57,11 @@ private:
void FillUnitLB();
DECL_LINK(ClickAutoPosHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickAutoPosHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ChangeAttrEditHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(ChangeAttrSpinHdl_Impl, weld::SpinButton&, void);
DECL_LINK(ChangeAttrListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(ChangeAttrClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ChangeAttrClickHdl_Impl, weld::Toggleable&, void);
void ChangeAttrHdl_Impl(void const *);
public:
+2 -2
View File
@@ -135,12 +135,12 @@ private:
DECL_LINK(DoubleClickHdl_Impl, weld::TreeView&, bool);
DECL_LINK(SelFormatListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(SelFormatTreeListBoxHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelFormatClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(SelFormatClickHdl_Impl, weld::Toggleable&, void);
void SelFormatHdl_Impl(weld::Widget*);
DECL_LINK(ClickHdl_Impl, weld::Button&, void);
DECL_LINK(EditModifyHdl_Impl, weld::Entry&, void);
DECL_LINK(OptEditHdl_Impl, weld::SpinButton&, void);
DECL_LINK(OptClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(OptClickHdl_Impl, weld::Toggleable&, void);
void EditHdl_Impl(const weld::Entry*);
void OptHdl_Impl(const weld::Widget*);
+4 -4
View File
@@ -265,17 +265,17 @@ class SvxNumOptionsTabPage : public SfxTabPage
DECL_LINK(NumberTypeSelectHdl_Impl, weld::ComboBox&, void);
DECL_LINK(LevelHdl_Impl, weld::TreeView&, void);
DECL_LINK(LevelHdl, void *, void);
DECL_LINK(PopupActivateHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(PopupActivateHdl_Impl, weld::Toggleable&, void);
DECL_LINK(GraphicHdl_Impl, const OString&, void);
DECL_LINK(BulletHdl_Impl, weld::Button&, void);
DECL_LINK(SizeHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(RatioHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(RatioHdl_Impl, weld::Toggleable&, void);
DECL_LINK(CharFmtHdl_Impl, weld::ComboBox&, void);
DECL_LINK(EditModifyHdl_Impl, weld::Entry&, void);
DECL_LINK(SpinModifyHdl_Impl, weld::SpinButton&, void);
DECL_LINK(AllLevelHdl_Impl, weld::SpinButton&, void);
DECL_LINK(OrientHdl_Impl, weld::ComboBox&, void);
DECL_LINK(SameLevelHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(SameLevelHdl_Impl, weld::Toggleable&, void);
DECL_LINK(BulColorHdl_Impl, ColorListBox&, void);
DECL_LINK(BulRelSizeHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(PreviewInvalidateHdl_Impl, Timer*, void);
@@ -354,7 +354,7 @@ class SvxNumPositionTabPage : public SfxTabPage
DECL_LINK(LevelHdl, void *, void);
DECL_LINK(EditModifyHdl_Impl, weld::ComboBox&, void);
DECL_LINK(DistanceHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(RelativeHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(RelativeHdl_Impl, weld::Toggleable&, void);
DECL_LINK(StandardHdl_Impl, weld::Button&, void);
void InitPosAndSpaceMode();
+1 -1
View File
@@ -42,7 +42,7 @@ class SvxAsianLayoutPage : public SfxTabPage
std::unique_ptr<weld::Label> m_xHintFT;
DECL_LINK(LanguageHdl, weld::ComboBox&, void);
DECL_LINK(ChangeStandardHdl, weld::ToggleButton&, void);
DECL_LINK(ChangeStandardHdl, weld::Toggleable&, void);
DECL_LINK(ModifyHdl, weld::Entry&, void);
public:
+3 -3
View File
@@ -136,11 +136,11 @@ private:
DECL_LINK(LayoutHdl_Impl, weld::ComboBox&, void);
DECL_LINK(GutterPositionHdl_Impl, weld::ComboBox&, void);
DECL_LINK(PaperBinHdl_Impl, weld::Widget&, void);
DECL_LINK(SwapOrientation_Impl, weld::ToggleButton&, void);
DECL_LINK(SwapOrientation_Impl, weld::Toggleable&, void);
void SwapFirstValues_Impl( bool bSet );
DECL_LINK(BorderModify_Impl, weld::MetricSpinButton&, void);
void InitHeadFoot_Impl( const SfxItemSet& rSet );
DECL_LINK(CenterHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(CenterHdl_Impl, weld::Toggleable&, void);
void UpdateExample_Impl( bool bResetbackground = false );
DECL_LINK(PaperSizeSelect_Impl, weld::ComboBox&, void );
@@ -153,7 +153,7 @@ private:
void RangeHdl_Impl();
void CalcMargin_Impl();
DECL_LINK(RegisterModify, weld::ToggleButton&, void);
DECL_LINK(RegisterModify, weld::Toggleable&, void);
// page direction
/** Disables vertical page direction entries in the text flow listbox. */
+10 -10
View File
@@ -86,7 +86,7 @@ private:
DECL_LINK(LineDistPopupHdl_Impl, weld::ComboBox&, void);
DECL_LINK(LineDistHdl_Impl, weld::ComboBox&, void);
DECL_LINK(ModifyHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(AutoHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(AutoHdl_Impl, weld::Toggleable&, void);
bool m_bLineDistToggled = false;
@@ -148,7 +148,7 @@ class SvxParaAlignTabPage : public SfxTabPage
std::unique_ptr<weld::Widget> m_xPropertiesFL;
std::unique_ptr<svx::FrameDirectionListBox> m_xTextDirectionLB;
DECL_LINK(AlignHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(AlignHdl_Impl, weld::Toggleable&, void);
DECL_LINK(LastLineHdl_Impl, weld::ComboBox&, void);
DECL_LINK(TextDirectionHdl_Impl, weld::ComboBox&, void);
@@ -264,16 +264,16 @@ private:
void OrphanHdl();
void WidowHdl();
DECL_LINK(PageBreakHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(KeepTogetherHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(WidowHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(OrphanHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(HyphenClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ApplyCollClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(PageBreakHdl_Impl, weld::Toggleable&, void);
DECL_LINK(KeepTogetherHdl_Impl, weld::Toggleable&, void);
DECL_LINK(WidowHdl_Impl, weld::Toggleable&, void);
DECL_LINK(OrphanHdl_Impl, weld::Toggleable&, void);
DECL_LINK(HyphenClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ApplyCollClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(PageBreakPosHdl_Impl, weld::ComboBox&, void);
DECL_LINK(PageBreakTypeHdl_Impl, weld::ComboBox&, void);
DECL_LINK(PageNumBoxClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(KeepParaBoxClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(PageNumBoxClickHdl_Impl, weld::Toggleable&, void);
DECL_LINK(KeepParaBoxClickHdl_Impl, weld::Toggleable&, void);
virtual void PageCreated(const SfxAllItemSet& aSet) override;
};
+1 -1
View File
@@ -47,7 +47,7 @@ class PasswordToOpenModifyDialog : public SfxDialogController
DECL_LINK(OkBtnClickHdl, weld::Button&, void);
DECL_LINK(ReadonlyOnOffHdl, weld::ToggleButton&, void);
DECL_LINK(ReadonlyOnOffHdl, weld::Toggleable&, void);
DECL_LINK(ChangeHdl, weld::Entry&, void);
PasswordToOpenModifyDialog( const PasswordToOpenModifyDialog & ) = delete;
+1 -1
View File
@@ -35,7 +35,7 @@ private:
public:
SvxSplitTableDlg(weld::Window *pParent, bool bIsTableVertical, tools::Long nMaxVertical, tools::Long nMaxHorizontal);
DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleHdl, weld::Toggleable&, void);
bool IsHorizontal() const;
bool IsProportional() const;
+4 -4
View File
@@ -84,13 +84,13 @@ class SvxSwPosSizeTabPage : public SfxTabPage
std::unique_ptr<weld::CustomWeld> m_xExampleWN;
DECL_LINK(RangeModifyHdl, weld::Widget&, void);
DECL_LINK(RangeModifyClickHdl, weld::ToggleButton&, void);
DECL_LINK(AnchorTypeHdl, weld::ToggleButton&, void);
DECL_LINK(RangeModifyClickHdl, weld::Toggleable&, void);
DECL_LINK(AnchorTypeHdl, weld::Toggleable&, void);
DECL_LINK(PosHdl, weld::ComboBox&, void);
DECL_LINK(RelHdl, weld::ComboBox&, void);
DECL_LINK(MirrorHdl, weld::ToggleButton&, void);
DECL_LINK(MirrorHdl, weld::Toggleable&, void);
DECL_LINK(ModifyHdl, weld::MetricSpinButton&, void);
DECL_LINK(ProtectHdl, weld::ToggleButton&, void);
DECL_LINK(ProtectHdl, weld::Toggleable&, void);
void InitPos(RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel,
sal_uInt16 nV, sal_uInt16 nVRel,
+2 -2
View File
@@ -129,8 +129,8 @@ private:
DECL_LINK(DelHdl_Impl, weld::Button&, void);
DECL_LINK(DelAllHdl_Impl, weld::Button&, void);
DECL_LINK(FillTypeCheckHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(TabTypeCheckHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(FillTypeCheckHdl_Impl, weld::Toggleable&, void);
DECL_LINK(TabTypeCheckHdl_Impl, weld::Toggleable&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, bool);
DECL_LINK(ModifyHdl_Impl, weld::ComboBox&, void);
+3 -3
View File
@@ -67,9 +67,9 @@ private:
std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
DECL_LINK( SelectEffectHdl_Impl, weld::ComboBox&, void );
DECL_LINK( ClickEndlessHdl_Impl, weld::ToggleButton&, void );
DECL_LINK( ClickAutoHdl_Impl, weld::ToggleButton&, void );
DECL_LINK( ClickPixelHdl_Impl, weld::ToggleButton&, void );
DECL_LINK( ClickEndlessHdl_Impl, weld::Toggleable&, void );
DECL_LINK( ClickAutoHdl_Impl, weld::Toggleable&, void );
DECL_LINK( ClickPixelHdl_Impl, weld::Toggleable&, void );
DECL_LINK( ClickDirectionHdl_Impl, weld::Button&, void );
void SelectDirection( SdrTextAniDirection nValue );
+2 -2
View File
@@ -63,8 +63,8 @@ private:
std::unique_ptr<weld::CustomWeld> m_xCtlPosition;
std::unique_ptr<weld::CheckButton> m_xTsbFullWidth;
DECL_LINK(ClickFullWidthHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(ClickFullWidthHdl_Impl, weld::Toggleable&, void);
DECL_LINK(ClickHdl_Impl, weld::Toggleable&, void);
/** Return whether the text direction is from left to right (</sal_True>) or
top to bottom (</sal_False>).
+1 -1
View File
@@ -30,7 +30,7 @@ private:
void UpdateImage(std::u16string_view sFileName);
int GetActiveRadioButton();
DECL_LINK(SelectToolbarmode, weld::ToggleButton&, void);
DECL_LINK(SelectToolbarmode, weld::Toggleable&, void);
DECL_LINK(OnApplyClick, weld::Button&, void);
};
+4 -4
View File
@@ -116,16 +116,16 @@ private:
std::unique_ptr<weld::CheckButton> m_xTsbAutoGrowWidth;
std::unique_ptr<weld::CheckButton> m_xTsbAutoGrowHeight;
DECL_LINK(ChangePosProtectHdl, weld::ToggleButton&, void);
DECL_LINK(ChangeSizeProtectHdl, weld::ToggleButton&, void);
DECL_LINK(ChangePosProtectHdl, weld::Toggleable&, void);
DECL_LINK(ChangeSizeProtectHdl, weld::Toggleable&, void);
void SetMinMaxPosition();
void GetTopLeftPosition(double& rfX, double& rfY, const basegfx::B2DRange& rRange);
DECL_LINK( ChangeWidthHdl, weld::MetricSpinButton&, void );
DECL_LINK( ChangeHeightHdl, weld::MetricSpinButton&, void );
DECL_LINK( ClickSizeProtectHdl, weld::ToggleButton&, void );
DECL_LINK( ClickAutoHdl, weld::ToggleButton&, void );
DECL_LINK( ClickSizeProtectHdl, weld::Toggleable&, void );
DECL_LINK( ClickAutoHdl, weld::Toggleable&, void );
public:
SvxPositionSizeTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
+3 -3
View File
@@ -45,11 +45,11 @@ private:
std::unique_ptr<weld::CheckButton> m_xBookModeChk;
std::unique_ptr<weld::Button> m_xOKBtn;
DECL_LINK(UserHdl, weld::ToggleButton&, void);
DECL_LINK(UserHdl, weld::Toggleable&, void);
DECL_LINK(SpinHdl, weld::MetricSpinButton&, void);
DECL_LINK(ViewLayoutUserHdl, weld::ToggleButton&, void);
DECL_LINK(ViewLayoutUserHdl, weld::Toggleable&, void);
DECL_LINK(ViewLayoutSpinHdl, weld::SpinButton&, void);
DECL_LINK(ViewLayoutCheckHdl, weld::ToggleButton&, void);
DECL_LINK(ViewLayoutCheckHdl, weld::Toggleable&, void);
DECL_LINK(OKHdl, weld::Button&, void);
public:
+1 -1
View File
@@ -221,7 +221,7 @@ namespace offapp
updateCurrentRow();
}
IMPL_LINK( ConnectionPoolOptionsPage, OnEnabledDisabled, weld::ToggleButton&, rCheckBox, void )
IMPL_LINK( ConnectionPoolOptionsPage, OnEnabledDisabled, weld::Toggleable&, rCheckBox, void )
{
bool bGloballyEnabled = m_xEnablePooling->get_active();
bool bLocalDriverChanged = m_xDriverPoolingEnabled.get() == &rCheckBox;
+1 -1
View File
@@ -57,7 +57,7 @@ namespace offapp
bool isModifiedDriverList() const;
void saveDriverList() { m_aSavedSettings = m_aSettings; }
DECL_LINK(OnEnabledDisabled, weld::ToggleButton&, void);
DECL_LINK(OnEnabledDisabled, weld::Toggleable&, void);
DECL_LINK(OnSpinValueChanged, weld::SpinButton&, void);
DECL_LINK(OnDriverRowChanged, weld::TreeView&, void);
+2 -2
View File
@@ -249,7 +249,7 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet* )
m_xFontHeightLB->save_value();
}
IMPL_LINK(SvxFontSubstTabPage, ToggleHdl, weld::ToggleButton&, rButton, void)
IMPL_LINK(SvxFontSubstTabPage, ToggleHdl, weld::Toggleable&, rButton, void)
{
SelectHdl(&rButton);
}
@@ -362,7 +362,7 @@ void SvxFontSubstTabPage::SelectHdl(const weld::Widget* pWin)
CheckEnable();
}
IMPL_LINK(SvxFontSubstTabPage, NonPropFontsHdl, weld::ToggleButton&, rBox, void)
IMPL_LINK(SvxFontSubstTabPage, NonPropFontsHdl, weld::Toggleable&, rBox, void)
{
OUString sFontName = m_xFontNameLB->get_active_text();
bool bNonPropOnly = rBox.get_active();
+2 -2
View File
@@ -39,10 +39,10 @@ class SvxFontSubstTabPage : public SfxTabPage
std::unique_ptr<weld::ComboBox> m_xFontHeightLB;
DECL_LINK(SelectComboBoxHdl, weld::ComboBox&, void);
DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleHdl, weld::Toggleable&, void);
DECL_LINK(ClickHdl, weld::Button&, void);
DECL_LINK(TreeListBoxSelectHdl, weld::TreeView&, void);
DECL_LINK(NonPropFontsHdl, weld::ToggleButton&, void);
DECL_LINK(NonPropFontsHdl, weld::Toggleable&, void);
DECL_LINK(HeaderBarClick, int, void);
DECL_LINK(ResizeHdl, const Size&, void);
+1 -1
View File
@@ -335,7 +335,7 @@ IMPL_LINK_NOARG(SvxAsianLayoutPage, LanguageHdl, weld::ComboBox&, void)
m_xEndED->set_text(sEnd);
}
IMPL_LINK(SvxAsianLayoutPage, ChangeStandardHdl, weld::ToggleButton&, rBox, void)
IMPL_LINK(SvxAsianLayoutPage, ChangeStandardHdl, weld::Toggleable&, rBox, void)
{
bool bCheck = rBox.get_active();
m_xStartED->set_sensitive(!bCheck);
+12 -12
View File
@@ -165,12 +165,12 @@ public:
explicit ColorConfigWindow_Impl(weld::Window* pTopLevel, weld::Container* pParent);
public:
void SetLinks(Link<weld::ToggleButton&,void> const&,
void SetLinks(Link<weld::Toggleable&,void> const&,
Link<ColorListBox&,void> const&,
Link<weld::Widget&,void> const&,
weld::ScrolledWindow& rScroll);
void Update(EditableColorConfig const*, EditableExtendedColorConfig const*);
void ClickHdl(EditableColorConfig*, weld::ToggleButton&);
void ClickHdl(EditableColorConfig*, weld::Toggleable&);
void ColorHdl(EditableColorConfig*, EditableExtendedColorConfig*, const ColorListBox*);
weld::Widget& GetWidget1()
@@ -218,7 +218,7 @@ private:
}
void Hide ();
public:
void SetLinks(Link<weld::ToggleButton&,void> const&,
void SetLinks(Link<weld::Toggleable&,void> const&,
Link<ColorListBox&,void> const&,
Link<weld::Widget&,void> const&);
void Update (ColorConfigValue const&);
@@ -226,7 +226,7 @@ private:
void ColorChanged (ColorConfigValue&);
void ColorChanged (ExtendedColorConfigValue&);
public:
bool Is(const weld::ToggleButton* pBox) const { return m_xText.get() == pBox; }
bool Is(const weld::Toggleable* pBox) const { return m_xText.get() == pBox; }
bool Is(const ColorListBox* pBox) const { return m_xColorList.get() == pBox; }
private:
// checkbox (CheckBox) or simple text (FixedText)
@@ -310,13 +310,13 @@ void ColorConfigWindow_Impl::Entry::Hide()
}
// SetLinks()
void ColorConfigWindow_Impl::Entry::SetLinks(Link<weld::ToggleButton&,void> const& rCheckLink,
void ColorConfigWindow_Impl::Entry::SetLinks(Link<weld::Toggleable&,void> const& rCheckLink,
Link<ColorListBox&,void> const& rColorLink,
Link<weld::Widget&,void> const& rGetFocusLink)
{
m_xColorList->SetSelectHdl(rColorLink);
m_xColorList->connect_focus_in(rGetFocusLink);
if (weld::ToggleButton* pCheckBox = dynamic_cast<weld::ToggleButton*>(m_xText.get()))
if (weld::Toggleable* pCheckBox = dynamic_cast<weld::Toggleable*>(m_xText.get()))
{
pCheckBox->connect_toggled(rCheckLink);
pCheckBox->connect_focus_in(rGetFocusLink);
@@ -328,7 +328,7 @@ void ColorConfigWindow_Impl::Entry::Update(ColorConfigValue const& rValue)
{
Color aColor(rValue.nColor);
m_xColorList->SelectEntry(aColor);
if (weld::ToggleButton* pCheckBox = dynamic_cast<weld::ToggleButton*>(m_xText.get()))
if (weld::Toggleable* pCheckBox = dynamic_cast<weld::Toggleable*>(m_xText.get()))
pCheckBox->set_active(rValue.bIsVisible);
}
@@ -461,7 +461,7 @@ void ColorConfigWindow_Impl::AdjustExtraWidths(int nTextWidth)
}
// SetLinks()
void ColorConfigWindow_Impl::SetLinks(Link<weld::ToggleButton&,void> const& aCheckLink,
void ColorConfigWindow_Impl::SetLinks(Link<weld::Toggleable&,void> const& aCheckLink,
Link<ColorListBox&,void> const& aColorLink,
Link<weld::Widget&,void> const& rGetFocusLink,
weld::ScrolledWindow& rScroll)
@@ -503,7 +503,7 @@ void ColorConfigWindow_Impl::Update (
}
// ClickHdl()
void ColorConfigWindow_Impl::ClickHdl(EditableColorConfig* pConfig, weld::ToggleButton& rBox)
void ColorConfigWindow_Impl::ClickHdl(EditableColorConfig* pConfig, weld::Toggleable& rBox)
{
for (unsigned i = 0; i != ColorConfigEntryCount; ++i)
{
@@ -591,7 +591,7 @@ class ColorConfigCtrl_Impl
EditableColorConfig* pColorConfig;
EditableExtendedColorConfig* pExtColorConfig;
DECL_LINK(ClickHdl, weld::ToggleButton&, void);
DECL_LINK(ClickHdl, weld::Toggleable&, void);
DECL_LINK(ColorHdl, ColorListBox&, void);
DECL_LINK(ControlFocusHdl, weld::Widget&, void);
@@ -629,7 +629,7 @@ ColorConfigCtrl_Impl::ColorConfigCtrl_Impl(weld::Window* pTopLevel, weld::Builde
{
m_xBody->set_stack_background();
Link<weld::ToggleButton&,void> aCheckLink = LINK(this, ColorConfigCtrl_Impl, ClickHdl);
Link<weld::Toggleable&,void> aCheckLink = LINK(this, ColorConfigCtrl_Impl, ClickHdl);
Link<ColorListBox&,void> aColorLink = LINK(this, ColorConfigCtrl_Impl, ColorHdl);
Link<weld::Widget&,void> const& aGetFocusLink = LINK(this, ColorConfigCtrl_Impl, ControlFocusHdl);
m_xScrollWindow->SetLinks(aCheckLink, aColorLink, aGetFocusLink, *m_xVScroll);
@@ -641,7 +641,7 @@ void ColorConfigCtrl_Impl::Update ()
m_xScrollWindow->Update(pColorConfig, pExtColorConfig);
}
IMPL_LINK(ColorConfigCtrl_Impl, ClickHdl, weld::ToggleButton&, rBox, void)
IMPL_LINK(ColorConfigCtrl_Impl, ClickHdl, weld::Toggleable&, rBox, void)
{
DBG_ASSERT(pColorConfig, "Configuration not set");
m_xScrollWindow->ClickHdl(pColorConfig, rBox);
+1 -1
View File
@@ -24,7 +24,7 @@
// class SvxCTLOptionsPage -----------------------------------------------------
IMPL_LINK_NOARG(SvxCTLOptionsPage, SequenceCheckingCB_Hdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxCTLOptionsPage, SequenceCheckingCB_Hdl, weld::Toggleable&, void)
{
bool bIsSequenceChecking = m_xSequenceCheckingCB->get_active();
m_xRestrictedCB->set_sensitive( bIsSequenceChecking );
+1 -1
View File
@@ -32,7 +32,7 @@ private:
std::unique_ptr<weld::RadioButton> m_xMovementVisualRB;
std::unique_ptr<weld::ComboBox> m_xNumeralsLB;
DECL_LINK( SequenceCheckingCB_Hdl, weld::ToggleButton&, void );
DECL_LINK( SequenceCheckingCB_Hdl, weld::Toggleable&, void );
public:
SvxCTLOptionsPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
+2 -2
View File
@@ -55,12 +55,12 @@ OfaMSFilterTabPage::~OfaMSFilterTabPage()
{
}
IMPL_LINK_NOARG(OfaMSFilterTabPage, LoadWordBasicCheckHdl_Impl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(OfaMSFilterTabPage, LoadWordBasicCheckHdl_Impl, weld::Toggleable&, void)
{
m_xWBasicWbctblCB->set_sensitive(m_xWBasicCodeCB->get_active());
}
IMPL_LINK_NOARG(OfaMSFilterTabPage, LoadExcelBasicCheckHdl_Impl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(OfaMSFilterTabPage, LoadExcelBasicCheckHdl_Impl, weld::Toggleable&, void)
{
m_xEBasicExectblCB->set_sensitive(m_xEBasicCodeCB->get_active());
}
+2 -2
View File
@@ -31,8 +31,8 @@ class OfaMSFilterTabPage : public SfxTabPage
std::unique_ptr<weld::CheckButton> m_xPBasicCodeCB;
std::unique_ptr<weld::CheckButton> m_xPBasicStgCB;
DECL_LINK(LoadWordBasicCheckHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(LoadExcelBasicCheckHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(LoadWordBasicCheckHdl_Impl, weld::Toggleable&, void);
DECL_LINK(LoadExcelBasicCheckHdl_Impl, weld::Toggleable&, void);
public:
OfaMSFilterTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
virtual ~OfaMSFilterTabPage() override;
+4 -4
View File
@@ -626,7 +626,7 @@ IMPL_STATIC_LINK_NOARG(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void)
comphelper::dispatchCommand(".uno:AdditionsDialog", aArgs);
}
IMPL_LINK_NOARG( OfaViewTabPage, OnAntialiasingToggled, weld::ToggleButton&, void )
IMPL_LINK_NOARG( OfaViewTabPage, OnAntialiasingToggled, weld::Toggleable&, void )
{
bool bAAEnabled = m_xFontAntiAliasing->get_active();
@@ -634,7 +634,7 @@ IMPL_LINK_NOARG( OfaViewTabPage, OnAntialiasingToggled, weld::ToggleButton&, voi
m_xAAPointLimit->set_sensitive(bAAEnabled);
}
IMPL_LINK_NOARG(OfaViewTabPage, OnUseSkiaToggled, weld::ToggleButton&, void)
IMPL_LINK_NOARG(OfaViewTabPage, OnUseSkiaToggled, weld::Toggleable&, void)
{
UpdateSkiaStatus();
}
@@ -1201,7 +1201,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage(weld::Container* pPage, weld::DialogCon
m_xLocaleSettingLB->connect_changed( LINK( this, OfaLanguagesTabPage, LocaleSettingHdl ) );
m_xDatePatternsED->connect_changed( LINK( this, OfaLanguagesTabPage, DatePatternsHdl ) );
Link<weld::ToggleButton&,void> aLink( LINK( this, OfaLanguagesTabPage, SupportHdl ) );
Link<weld::Toggleable&,void> aLink( LINK( this, OfaLanguagesTabPage, SupportHdl ) );
m_xAsianSupportCB->connect_toggled( aLink );
m_xCTLSupportCB->connect_toggled( aLink );
@@ -1638,7 +1638,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet )
}
}
IMPL_LINK(OfaLanguagesTabPage, SupportHdl, weld::ToggleButton&, rBox, void)
IMPL_LINK(OfaLanguagesTabPage, SupportHdl, weld::Toggleable&, rBox, void)
{
bool bCheck = rBox.get_active();
if ( m_xAsianSupportCB.get() == &rBox )
+3 -3
View File
@@ -116,8 +116,8 @@ private:
std::unique_ptr<weld::ComboBox> m_xMouseMiddleLB;
std::unique_ptr<weld::Button> m_xMoreIcons;
DECL_LINK(OnAntialiasingToggled, weld::ToggleButton&, void);
DECL_LINK(OnUseSkiaToggled, weld::ToggleButton&, void);
DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void);
DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void);
DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void);
void UpdateSkiaStatus();
void HideSkiaWidgets();
@@ -165,7 +165,7 @@ class OfaLanguagesTabPage : public SfxTabPage
std::unique_ptr<weld::CheckButton> m_xCTLSupportCB;
std::unique_ptr<weld::CheckButton> m_xIgnoreLanguageChangeCB;
DECL_LINK(SupportHdl, weld::ToggleButton&, void);
DECL_LINK(SupportHdl, weld::Toggleable&, void);
DECL_LINK(LocaleSettingHdl, weld::ComboBox&, void);
DECL_LINK(DatePatternsHdl, weld::Entry&, void);
+1 -1
View File
@@ -155,7 +155,7 @@ void OfaHtmlTabPage::Reset( const SfxItemSet* )
m_xCharSetLB->SelectTextEncoding( rHtmlOpt.GetTextEncoding() );
}
IMPL_LINK(OfaHtmlTabPage, CheckBoxHdl_Impl, weld::ToggleButton&, rBox, void)
IMPL_LINK(OfaHtmlTabPage, CheckBoxHdl_Impl, weld::Toggleable&, rBox, void)
{
m_xStarBasicWarningCB->set_sensitive(!rBox.get_active());
}
+1 -1
View File
@@ -42,7 +42,7 @@ class OfaHtmlTabPage : public SfxTabPage
std::unique_ptr<weld::CheckButton> m_xSaveGrfLocalCB;
std::unique_ptr<SvxTextEncodingBox> m_xCharSetLB;
DECL_LINK(CheckBoxHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(CheckBoxHdl_Impl, weld::Toggleable&, void);
public:
OfaHtmlTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
+2 -2
View File
@@ -527,7 +527,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SecurityOptionsHdl, weld::Button&, void)
m_xSecOptDlg->run();
}
IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl, weld::Toggleable&, void)
{
try
{
@@ -606,7 +606,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordHdl, weld::Button&, void)
{}
}
IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl, weld::ToggleButton&, void)
IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl, weld::Toggleable&, void)
{
try
{

Some files were not shown because too many files have changed in this diff Show More