weld: Switch TreeView selection changed signal param to ItemView

Switch the param for the signal and handlers used when
the selection in a weld::TreeView changes from weld::TreeView&
to the base class, weld::ItemView&.

This is in preparation of moving the logic to the weld::ItemView
base class in an upcoming commit.

Handler implementations that require a weld::TreeView
instance can use the one that the signal is connected
to, e.g. use the class member directly inside of the
implementation instead of using the param (as is done
in most of the places anyway).

Change-Id: I0bbf8fe1dbd95906a5224155d48d832bcd144532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203366
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-04-10 06:36:08 +02:00
parent 8b43eb49e9
commit 03d5d803c4
287 changed files with 415 additions and 419 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ IMPL_LINK_NOARG(ColorSchemeDialog, OptionHdl, weld::Toggleable&, void)
}
}
IMPL_LINK_NOARG(ColorSchemeDialog, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(ColorSchemeDialog, SelectHdl, weld::ItemView&, void)
{
// Apply the selected scheme only for the current ModulWinLayout for preview
// Only if the user presses OK the scheme will be applied to all ModulWinLayout(s)
+2 -2
View File
@@ -224,7 +224,7 @@ private:
void implEnableChildren(const weld::TreeIter& rEntry, bool bEnable);
DECL_STATIC_LINK(WatchWindow, ButtonHdl, weld::Button&, void);
DECL_LINK(TreeListHdl, weld::TreeView&, void);
DECL_LINK(TreeListHdl, weld::ItemView&, void);
DECL_LINK(RequestingChildrenHdl, const weld::TreeIter&, bool);
DECL_LINK(ActivateHdl, weld::Entry&, bool);
DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
@@ -500,7 +500,7 @@ private:
TextView* GetParentEditView();
DECL_LINK(ImplDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(ImplSelectHdl, weld::TreeView&, void);
DECL_LINK(ImplSelectHdl, weld::ItemView&, void);
DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
public:
+2 -2
View File
@@ -1875,7 +1875,7 @@ IMPL_STATIC_LINK_NOARG(WatchWindow, ButtonHdl, weld::Button&, void)
pDispatcher->Execute(SID_BASICIDE_REMOVEWATCH);
}
IMPL_LINK_NOARG(WatchWindow, TreeListHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(WatchWindow, TreeListHdl, weld::ItemView&, void)
{
std::unique_ptr<weld::TreeIter> xCurEntry = m_xTreeListBox->get_cursor();
if (!xCurEntry)
@@ -2671,7 +2671,7 @@ IMPL_LINK_NOARG(CodeCompleteWindow, ImplDoubleClickHdl, const weld::TreeIter&, b
return true;
}
IMPL_LINK_NOARG(CodeCompleteWindow, ImplSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(CodeCompleteWindow, ImplSelectHdl, weld::ItemView&, void)
{
//give back the focus to the parent
pParent->GrabFocus();
+2 -2
View File
@@ -483,13 +483,13 @@ IMPL_LINK_NOARG(MacroChooser, MacroDoubleClickHdl, const weld::TreeIter&, bool)
return true;
}
IMPL_LINK_NOARG(MacroChooser, MacroSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(MacroChooser, MacroSelectHdl, weld::ItemView&, void)
{
UpdateFields();
CheckButtons();
}
IMPL_LINK_NOARG(MacroChooser, BasicSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(MacroChooser, BasicSelectHdl, weld::ItemView&, void)
{
SbModule* pModule = nullptr;
if (std::unique_ptr<weld::TreeIter> pCursor = m_xBasicBox->get_cursor())
+2 -2
View File
@@ -56,9 +56,9 @@ private:
Mode nMode;
DECL_LINK(MacroSelectHdl, weld::TreeView&, void);
DECL_LINK(MacroSelectHdl, weld::ItemView&, void);
DECL_LINK(MacroDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(BasicSelectHdl, weld::TreeView&, void);
DECL_LINK(BasicSelectHdl, weld::ItemView&, void);
DECL_LINK(EditModifyHdl, weld::Entry&, void);
DECL_LINK(ContextMenuHdl, const CommandEvent&, bool);
DECL_LINK(ButtonHdl, weld::Button&, void);
+1 -4
View File
@@ -430,10 +430,7 @@ void LibPage::ActivatePage()
SetCurLib();
}
IMPL_LINK_NOARG(LibPage, TreeListHighlightHdl, weld::TreeView&, void)
{
CheckButtons();
}
IMPL_LINK_NOARG(LibPage, TreeListHighlightHdl, weld::ItemView&, void) { CheckButtons(); }
IMPL_LINK_NOARG( LibPage, BasicSelectHdl, weld::ComboBox&, void )
{
+1 -4
View File
@@ -677,10 +677,7 @@ void ObjectPage::CheckButtons()
m_xDelButton->set_sensitive(false);
}
IMPL_LINK_NOARG(ObjectPage, BasicBoxHighlightHdl, weld::TreeView&, void)
{
CheckButtons();
}
IMPL_LINK_NOARG(ObjectPage, BasicBoxHighlightHdl, weld::ItemView&, void) { CheckButtons(); }
IMPL_LINK(ObjectPage, ButtonHdl, weld::Button&, rButton, void)
{
+2 -2
View File
@@ -145,7 +145,7 @@ class ObjectPage final : public OrganizePage
std::unique_ptr<weld::Button> m_xDelButton;
std::unique_ptr<SbTreeListBoxDropTarget> m_xDropTarget;
DECL_LINK( BasicBoxHighlightHdl, weld::TreeView&, void );
DECL_LINK(BasicBoxHighlightHdl, weld::ItemView&, void);
DECL_LINK( ButtonHdl, weld::Button&, void );
DECL_LINK( EditingEntryHdl, const weld::TreeIter&, bool );
typedef std::pair<const weld::TreeIter&, OUString> IterString;
@@ -181,7 +181,7 @@ class LibPage final : public OrganizePage
ScriptDocument m_aCurDocument;
LibraryLocation m_eCurLocation;
DECL_LINK( TreeListHighlightHdl, weld::TreeView&, void );
DECL_LINK(TreeListHighlightHdl, weld::ItemView&, void);
DECL_LINK( BasicSelectHdl, weld::ComboBox&, void );
DECL_LINK( ButtonHdl, weld::Button&, void );
DECL_LINK( CheckPasswordHdl, SvxPasswordDialog *, bool );
+5 -5
View File
@@ -107,7 +107,7 @@ bool IsExpandable(const IdeSymbolInfo& rSymbol)
}
std::shared_ptr<const IdeSymbolInfo>
GetSymbolForIter(const weld::TreeIter& rIter, const weld::TreeView& rTree,
GetSymbolForIter(const weld::TreeIter& rIter, const weld::ItemView& rTree,
const std::map<OUString, std::shared_ptr<IdeSymbolInfo>>& rIndex)
{
const OUString sId = rTree.get_id(rIter);
@@ -727,12 +727,12 @@ void ObjectBrowser::dispose()
m_xScopeSelector->connect_changed(Link<weld::ComboBox&, void>());
if (m_xLeftTreeView)
{
m_xLeftTreeView->connect_selection_changed(Link<weld::TreeView&, void>());
m_xLeftTreeView->connect_selection_changed(Link<weld::ItemView&, void>());
m_xLeftTreeView->connect_expanding(Link<const weld::TreeIter&, bool>());
}
if (m_xRightMembersView)
{
m_xRightMembersView->connect_selection_changed(Link<weld::TreeView&, void>());
m_xRightMembersView->connect_selection_changed(Link<weld::ItemView&, void>());
}
m_pDocNotifier->dispose();
@@ -1138,7 +1138,7 @@ void ObjectBrowser::onDocumentClosed(const ScriptDocument&) { ScheduleRefresh();
void ObjectBrowser::onDocumentTitleChanged(const ScriptDocument&) { ScheduleRefresh(); }
void ObjectBrowser::onDocumentModeChanged(const ScriptDocument&) { /* STUB */}
IMPL_LINK(ObjectBrowser, OnLeftTreeSelect, weld::TreeView&, rTree, void)
IMPL_LINK(ObjectBrowser, OnLeftTreeSelect, weld::ItemView&, rTree, void)
{
if (m_bDisposed)
{
@@ -1171,7 +1171,7 @@ IMPL_LINK(ObjectBrowser, OnLeftTreeSelect, weld::TreeView&, rTree, void)
}
}
IMPL_LINK(ObjectBrowser, OnRightTreeSelect, weld::TreeView&, rTree, void)
IMPL_LINK(ObjectBrowser, OnRightTreeSelect, weld::ItemView&, rTree, void)
{
if (m_bDisposed)
{
+1 -1
View File
@@ -198,7 +198,7 @@ IMPL_LINK_NOARG(ManageLanguageDialog, MakeDefHdl, weld::Button&, void)
}
}
IMPL_LINK_NOARG(ManageLanguageDialog, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(ManageLanguageDialog, SelectHdl, weld::ItemView&, void)
{
const sal_Int32 nCount = m_xLanguageLB->n_children();
bool bEmpty = ( !nCount ||
+1 -1
View File
@@ -44,7 +44,7 @@ private:
DECL_LINK(BtnOkHdl, weld::Button&, void);
DECL_LINK(OptionHdl, weld::Toggleable&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
public:
ColorSchemeDialog(weld::Window* pParent, VclPtr<ModulWindowLayout> pModulWinLayout);
+1 -1
View File
@@ -240,7 +240,7 @@ public:
std::unique_ptr<Entry>&& rUserData,
weld::TreeIter* pRet = nullptr);
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xControl->connect_selection_changed(rLink);
}
+1 -1
View File
@@ -65,7 +65,7 @@ private:
DECL_LINK(AddHdl, weld::Button&, void);
DECL_LINK(DeleteHdl, weld::Button&, void);
DECL_LINK(MakeDefHdl, weld::Button&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
public:
ManageLanguageDialog(weld::Window* pParent, std::shared_ptr<LocalizationMgr> _pLMgr);
+2 -2
View File
@@ -129,8 +129,8 @@ private:
std::unique_ptr<basctl::DocumentEventNotifier> m_pDocNotifier;
// UI Event Handlers
DECL_LINK(OnLeftTreeSelect, weld::TreeView&, void);
DECL_LINK(OnRightTreeSelect, weld::TreeView&, void);
DECL_LINK(OnLeftTreeSelect, weld::ItemView&, void);
DECL_LINK(OnRightTreeSelect, weld::ItemView&, void);
DECL_LINK(OnRightNodeExpand, const weld::TreeIter&, bool);
DECL_LINK(OnRightTreeDoubleClick, const weld::TreeIter&, bool);
DECL_LINK(OnNodeExpand, const weld::TreeIter&, bool);
@@ -382,7 +382,7 @@ void GeometryResourceGroup::fillParameter(ChartTypeParameter& rParameter)
rParameter.nGeometry3D = nSelected;
}
IMPL_LINK_NOARG(GeometryResourceGroup, GeometryChangeHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(GeometryResourceGroup, GeometryChangeHdl, weld::ItemView&, void)
{
if (m_pChangeListener)
m_pChangeListener->stateChanged();
@@ -32,7 +32,7 @@ BarGeometryResources::BarGeometryResources(weld::Builder* pBuilder)
m_xLB_Geometry->set_size_request(-1, m_xLB_Geometry->get_height_rows(std::size(CHART_TYPE)));
}
void BarGeometryResources::connect_changed(const Link<weld::TreeView&, void>& rLink)
void BarGeometryResources::connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xLB_Geometry->connect_selection_changed(rLink);
}
@@ -227,10 +227,7 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectSubTypeHdl, ValueSet*, void)
}
}
IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl, weld::TreeView&, void)
{
selectMainType();
}
IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl, weld::ItemView&, void) { selectMainType(); }
void ChartTypeTabPage::selectMainType()
{
@@ -27,7 +27,11 @@
#include <vcl/wizardmachine.hxx>
namespace weld { class CustomWeld; }
namespace weld
{
class CustomWeld;
class ItemView;
}
class ValueSet;
@@ -64,7 +68,7 @@ private:
void commitToModel( const ChartTypeParameter& rParameter );
void selectMainType();
DECL_LINK(SelectMainTypeHdl, weld::TreeView&, void);
DECL_LINK(SelectMainTypeHdl, weld::ItemView&, void);
DECL_LINK(SelectSubTypeHdl, ValueSet*, void );
std::unique_ptr<Dim3DLookResourceGroup> m_pDim3DLookResourceGroup;
@@ -451,7 +451,7 @@ void DataSourceTabPage::updateControlState()
isValid();
}
IMPL_LINK_NOARG(DataSourceTabPage, SeriesSelectionChangedHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(DataSourceTabPage, SeriesSelectionChangedHdl, weld::ItemView&, void)
{
m_rDialogModel.startControllerLockTimer();
if (m_xLB_SERIES->get_selected_index() != -1)
@@ -462,7 +462,7 @@ IMPL_LINK_NOARG(DataSourceTabPage, SeriesSelectionChangedHdl, weld::TreeView&, v
updateControlState();
}
IMPL_LINK_NOARG(DataSourceTabPage, RoleSelectionChangedHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(DataSourceTabPage, RoleSelectionChangedHdl, weld::ItemView&, void)
{
m_rDialogModel.startControllerLockTimer();
int nEntry = m_xLB_ROLE->get_selected_index();
@@ -23,6 +23,7 @@
#include <vcl/wizardmachine.hxx>
#include <vcl/weld/Entry.hxx>
#include <vcl/weld/ItemView.hxx>
#include <RangeSelectionListener.hxx>
@@ -69,8 +70,8 @@ private:
virtual void initializePage() override;
DECL_LINK( SeriesSelectionChangedHdl, weld::TreeView&, void );
DECL_LINK( RoleSelectionChangedHdl, weld::TreeView&, void );
DECL_LINK(SeriesSelectionChangedHdl, weld::ItemView&, void);
DECL_LINK(RoleSelectionChangedHdl, weld::ItemView&, void);
DECL_LINK( MainRangeButtonClickedHdl, weld::Button&, void );
DECL_LINK( CategoriesRangeButtonClickedHdl, weld::Button&, void );
DECL_LINK( AddButtonClickedHdl, weld::Button&, void );
+1 -1
View File
@@ -140,7 +140,7 @@ public:
void fillParameter(ChartTypeParameter& rParameter);
private:
DECL_LINK(GeometryChangeHdl, weld::TreeView&, void);
DECL_LINK(GeometryChangeHdl, weld::ItemView&, void);
private:
BarGeometryResources m_aGeometryResources;
+1 -1
View File
@@ -35,7 +35,7 @@ public:
sal_Int32 get_selected_index() const;
void select(sal_Int32 nPos);
void connect_changed(const Link<weld::TreeView&, void>& rLink);
void connect_changed(const Link<weld::ItemView&, void>& rLink);
private:
std::unique_ptr<weld::Label> m_xFT_Geometry;
+1 -1
View File
@@ -150,7 +150,7 @@ void SvxMenuConfigPage::Init()
SelectFunctionHdl(m_xFunctions->get_widget());
}
IMPL_LINK_NOARG(SvxMenuConfigPage, SelectMenuEntry, weld::TreeView&, void) { UpdateButtonStates(); }
IMPL_LINK_NOARG(SvxMenuConfigPage, SelectMenuEntry, weld::ItemView&, void) { UpdateButtonStates(); }
void SvxMenuConfigPage::UpdateButtonStates()
{
@@ -293,7 +293,7 @@ SaveInData* SvxToolbarConfigPage::CreateSaveInData(
new ToolbarSaveInData(xCfgMgr, xParentCfgMgr, aModuleId, bDocConfig));
}
IMPL_LINK_NOARG(SvxToolbarConfigPage, SelectToolbarEntry, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxToolbarConfigPage, SelectToolbarEntry, weld::ItemView&, void)
{
UpdateButtonStates();
}
+1 -1
View File
@@ -1328,7 +1328,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RemoveHdl, weld::Button&, void)
SelectHdl(m_xFunctionBox->get_widget());
}
IMPL_LINK(SfxAcceleratorConfigPage, SelectHdl, weld::TreeView&, rListBox, void)
IMPL_LINK(SfxAcceleratorConfigPage, SelectHdl, weld::ItemView&, rListBox, void)
{
const std::vector<OUString>& rAssignments = GetAssignments();
+2 -2
View File
@@ -1651,7 +1651,7 @@ IMPL_LINK_NOARG(SvxConfigPage, FunctionDoubleClickHdl, const weld::TreeIter&, bo
return true;
}
IMPL_LINK_NOARG(SvxConfigPage, SelectFunctionHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxConfigPage, SelectFunctionHdl, weld::ItemView&, void)
{
// GetScriptURL() returns a non-empty string if a
// valid command is selected on the left box
@@ -1885,7 +1885,7 @@ IMPL_LINK_NOARG(SvxMainMenuOrganizerDialog, ModifyHdl, weld::Entry&, void)
m_xMenuListBox->select(nOldSelection);
}
IMPL_LINK_NOARG(SvxMainMenuOrganizerDialog, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxMainMenuOrganizerDialog, SelectHdl, weld::ItemView&, void)
{
UpdateButtonStates();
}
+1 -1
View File
@@ -1209,7 +1209,7 @@ SvxScriptSelectorDialog::~SvxScriptSelectorDialog()
{
}
IMPL_LINK(SvxScriptSelectorDialog, SelectHdl, weld::TreeView&, rCtrl, void)
IMPL_LINK(SvxScriptSelectorDialog, SelectHdl, weld::ItemView&, rCtrl, void)
{
if (&rCtrl == &m_xCategories->get_widget())
{
+1 -1
View File
@@ -374,7 +374,7 @@ void SvxMacroTabPage_::DisplayAppEvents(bool appEvents, int nSelectIndex)
}
// select event handler on the listbox
IMPL_LINK_NOARG( SvxMacroTabPage_, SelectEvent_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxMacroTabPage_, SelectEvent_Impl, weld::ItemView&, void)
{
int nEntry = mpImpl->xEventLB->get_selected_index();
+1 -1
View File
@@ -817,7 +817,7 @@ void MacroManagerDialog::Notify(SfxBroadcaster&, const SfxHint& rHint)
}
}
IMPL_LINK(MacroManagerDialog, SelectHdl, weld::TreeView&, rItemView, void)
IMPL_LINK(MacroManagerDialog, SelectHdl, weld::ItemView&, rItemView, void)
{
weld::TreeView& rTreeView = m_xScriptContainersListBox->get_widget();
if (&rItemView == &rTreeView)
+1 -1
View File
@@ -935,7 +935,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickTakeAllHdl, weld::Button&, void)
}
}
IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFoundHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFoundHdl, weld::ItemView&, void)
{
if (!bInputAllowed)
return;
+2 -2
View File
@@ -352,7 +352,7 @@ namespace svx
SelectSuggestionHdl(false);
}
IMPL_LINK_NOARG(SuggestionDisplay, SelectSuggestionListBoxHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SuggestionDisplay, SelectSuggestionListBoxHdl, weld::ItemView&, void)
{
SelectSuggestionHdl(true);
}
@@ -801,7 +801,7 @@ namespace svx
m_xDialog->response(RET_OK);
}
IMPL_LINK_NOARG(HangulHanjaOptionsDialog, DictsLB_SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(HangulHanjaOptionsDialog, DictsLB_SelectHdl, weld::ItemView&, void)
{
bool bSel = m_xDictsLB->get_selected_index() != -1;
+1 -1
View File
@@ -140,7 +140,7 @@ SvBaseLinksDlg::~SvBaseLinksDlg()
/*************************************************************************
|* SvBaseLinksDlg::Handler()
*************************************************************************/
IMPL_LINK_NOARG(SvBaseLinksDlg, LinksSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvBaseLinksDlg, LinksSelectHdl, weld::ItemView&, void)
{
LinksSelectHdl(m_xTbLinks.get());
}
+2 -2
View File
@@ -43,7 +43,7 @@
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::uno;
IMPL_LINK_NOARG(SvxMultiPathDialog, SelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxMultiPathDialog, SelectHdl_Impl, weld::ItemView&, void)
{
auto nCount = m_xRadioLB->n_children();
bool bIsSelected = m_xRadioLB->get_selected_index() != -1;
@@ -51,7 +51,7 @@ IMPL_LINK_NOARG(SvxMultiPathDialog, SelectHdl_Impl, weld::TreeView&, void)
m_xDelBtn->set_sensitive(bEnable && bIsSelected);
}
IMPL_LINK_NOARG(SvxPathSelectDialog, SelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxPathSelectDialog, SelectHdl_Impl, weld::ItemView&, void)
{
auto nCount = m_xPathLB->n_children();
bool bIsSelected = m_xPathLB->get_selected_index() != -1;
+1 -1
View File
@@ -55,7 +55,7 @@ void SvPasteObjectDialog::SelectObject()
}
}
IMPL_LINK_NOARG(SvPasteObjectDialog, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvPasteObjectDialog, SelectHdl, weld::ItemView&, void)
{
if (!m_xOKButton->get_sensitive())
m_xOKButton->set_sensitive(true);
+1 -1
View File
@@ -526,7 +526,7 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode > const &
}
}
IMPL_LINK_NOARG(SvxScriptOrgDialog, ScriptSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxScriptOrgDialog, ScriptSelectHdl, weld::ItemView&, void)
{
std::unique_ptr<weld::TreeIter> xIter = m_xScriptsBox->get_selected();
if (!xIter)
+1 -1
View File
@@ -180,7 +180,7 @@ IMPL_LINK_NOARG(SvxThesaurusDialog, WordSelectHdl_Impl, weld::ComboBox&, void)
m_aModifyIdle.Start();
}
IMPL_LINK_NOARG(SvxThesaurusDialog, AlternativesSelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxThesaurusDialog, AlternativesSelectHdl_Impl, weld::ItemView&, void)
{
int nEntry = m_xAlternativesCT->get_selected_index();
if (nEntry != -1)
+3 -3
View File
@@ -72,7 +72,7 @@ public:
static OUString GetDescriptionText(const OUString& rId);
OUString GetSelectedScriptName();
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xTreeView->connect_selection_changed(rLink);
}
@@ -147,7 +147,7 @@ public:
MacroManagerDialog* pMacroManagerDialog);
~ScriptContainersListBox();
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xTreeView->connect_selection_changed(rLink);
}
@@ -201,7 +201,7 @@ class MacroManagerDialog : public weld::GenericDialogController, public SfxListe
std::unique_ptr<weld::Button> m_xAssignButton;
DECL_LINK(ClickHdl, weld::Button&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(FunctionDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(ContextMenuHdl, const CommandEvent&, bool);
DECL_LINK(CheckPasswordHdl, SvxPasswordDialog*, bool);
+1 -1
View File
@@ -31,7 +31,7 @@ class SvxMenuConfigPage : public SvxConfigPage
private:
bool m_bIsMenuBar;
DECL_LINK(SelectMenuEntry, weld::TreeView&, void);
DECL_LINK(SelectMenuEntry, weld::ItemView&, void);
DECL_LINK(ContentContextMenuHdl, const CommandEvent&, bool);
DECL_LINK(FunctionContextMenuHdl, const CommandEvent&, bool);
+1 -1
View File
@@ -30,7 +30,7 @@
class SvxToolbarConfigPage : public SvxConfigPage
{
private:
DECL_LINK(SelectToolbarEntry, weld::TreeView&, void);
DECL_LINK(SelectToolbarEntry, weld::ItemView&, void);
DECL_LINK(MoveHdl, weld::Button&, void);
DECL_LINK(GearHdl, const OUString&, void);
+1 -1
View File
@@ -108,7 +108,7 @@ private:
DECL_LINK(ChangeHdl, weld::Button&, void);
DECL_LINK(RemoveHdl, weld::Button&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(SearchUpdateHdl, weld::Entry&, void);
DECL_LINK(Save, weld::Button&, void);
DECL_LINK(Load, weld::Button&, void);
+4 -4
View File
@@ -118,7 +118,7 @@ class OfaSwAutoFmtOptionsPage : public SfxTabPage
std::unique_ptr<weld::TreeView> m_xCheckLB;
std::unique_ptr<weld::Button> m_xEditPB;
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(EditHdl, weld::Button&, void);
DECL_LINK(DoubleClickEditHdl, const weld::TreeIter&, bool);
@@ -191,7 +191,7 @@ private:
std::unique_ptr<weld::Button> m_xDeleteReplacePB;
std::unique_ptr<weld::Container> m_xButtonBox;
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(NewDelButtonHdl, weld::Button&, void);
DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
DECL_LINK(EntrySizeAllocHdl, const Size&, void);
@@ -250,7 +250,7 @@ private:
DECL_LINK(NewDelButtonHdl, weld::Button&, void);
DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(ModifyHdl, weld::Entry&, void);
bool NewDelHdl(const weld::Widget*);
/// Box filled with new language
@@ -409,7 +409,7 @@ private:
Enables/disables the properties push button if selection in the
smart tag types list box changes.
*/
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
public:
/// construction via Create()
+2 -2
View File
@@ -440,7 +440,7 @@ protected:
SvxConfigPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet&);
DECL_LINK(MoveHdl, weld::Button&, void);
DECL_LINK(SelectFunctionHdl, weld::TreeView&, void);
DECL_LINK(SelectFunctionHdl, weld::ItemView&, void);
DECL_LINK(FunctionDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(SelectSaveInLocation, weld::ComboBox&, void);
DECL_LINK(SelectElementHdl, weld::ComboBox&, void);
@@ -549,7 +549,7 @@ class SvxMainMenuOrganizerDialog : public weld::GenericDialogController
DECL_LINK(MoveHdl, weld::Button&, void);
DECL_LINK(ModifyHdl, weld::Entry&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
public:
SvxMainMenuOrganizerDialog(
+3 -3
View File
@@ -117,7 +117,7 @@ class CuiConfigFunctionListBox
public:
CuiConfigFunctionListBox(std::unique_ptr<weld::TreeView> xTreeView);
void set_sensitive(bool bSensitive) { m_xTreeView->set_sensitive(bSensitive); }
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xTreeView->connect_selection_changed(rLink);
}
@@ -217,7 +217,7 @@ class CuiConfigGroupListBox
public:
CuiConfigGroupListBox(std::unique_ptr<weld::TreeView> xTreeView);
void set_sensitive(bool bSensitive) { m_xTreeView->set_sensitive(bSensitive); }
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_xTreeView->connect_selection_changed(rLink);
}
@@ -260,7 +260,7 @@ class SvxScriptSelectorDialog : public weld::GenericDialogController
std::unique_ptr<weld::Frame> m_xDescriptionFrame;
DECL_LINK(ClickHdl, weld::Button&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(FunctionDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(ContextMenuHdl, const CommandEvent&, bool);
+2 -2
View File
@@ -321,11 +321,11 @@ private:
void UpdatePreview_Impl();
void Initialize();
void SelectCharacter(weld::TreeView* pBox);
void SelectCharacter(weld::ItemView* pBox);
void SetBracket(sal_Unicode cBracket, bool bStart);
DECL_LINK(TwoLinesHdl_Impl, weld::Toggleable&, void);
DECL_LINK(CharacterMapHdl_Impl, weld::TreeView&, void);
DECL_LINK(CharacterMapHdl_Impl, weld::ItemView&, void);
public:
SvxCharTwoLinesPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
+1 -1
View File
@@ -253,7 +253,7 @@ class TPGalleryThemeProperties : public SfxTabPage
DECL_LINK(ClickSearchHdl, weld::Button&, void);
DECL_LINK(ClickTakeHdl, weld::Button&, void);
DECL_LINK(ClickTakeAllHdl, weld::Button&, void);
DECL_LINK(SelectFoundHdl, weld::TreeView&, void);
DECL_LINK(SelectFoundHdl, weld::ItemView&, void);
DECL_LINK(SelectFileTypeHdl, weld::ComboBox&, void);
DECL_LINK(DClickFoundHdl, const weld::TreeIter&, bool);
DECL_LINK(PreviewTimerHdl, Timer*, void);
+1 -1
View File
@@ -43,7 +43,7 @@ private:
DECL_LINK(DeleteHdl, weld::Button&, void);
DECL_LINK(PathBoxDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(PathSelect_Impl, weld::TreeView&, void);
DECL_LINK(PathSelect_Impl, weld::ItemView&, void);
DECL_LINK(HeaderSelect_Impl, int, void);
DECL_LINK(NameValidator, const OUString&, bool);
+2 -2
View File
@@ -63,7 +63,7 @@ namespace svx
OUString GetEntry( sal_uInt16 nPos ) const;
OUString GetSelectedEntry() const;
DECL_LINK( SelectSuggestionListBoxHdl, weld::TreeView&, void );
DECL_LINK(SelectSuggestionListBoxHdl, weld::ItemView&, void);
DECL_LINK( SelectSuggestionValueSetHdl, ValueSet*, void );
void SelectSuggestionHdl(bool bListBox);
@@ -195,7 +195,7 @@ namespace svx
std::unique_ptr<weld::Button> m_xOkPB;
DECL_LINK( OkHdl, weld::Button&, void );
DECL_LINK( DictsLB_SelectHdl, weld::TreeView&, void );
DECL_LINK(DictsLB_SelectHdl, weld::ItemView&, void);
DECL_LINK( NewDictHdl, weld::Button&, void );
DECL_LINK( EditDictHdl, weld::Button&, void );
DECL_LINK( DeleteDictHdl, weld::Button&, void );
+1 -1
View File
@@ -58,7 +58,7 @@ class SvBaseLinksDlg : public weld::GenericDialogController
ScopedVclPtr<VirtualDevice> m_xVirDev;
DECL_LINK(LinksSelectHdl, weld::TreeView&, void);
DECL_LINK(LinksSelectHdl, weld::ItemView&, void);
DECL_LINK(LinksDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK(ToggleHdl, weld::Toggleable&, void);
DECL_LINK(UpdateNowClickHdl, weld::Button&, void);
+3 -3
View File
@@ -50,9 +50,9 @@ class SfxMacroTabPage final : public SfxTabPage
Idle m_aFillGroupIdle{ "cui SfxMacroTabPage m_aFillGroupIdle" };
bool m_bGotEvents;
DECL_LINK(SelectEvent_Impl, weld::TreeView&, void);
DECL_LINK(SelectGroup_Impl, weld::TreeView&, void);
DECL_LINK(SelectMacro_Impl, weld::TreeView&, void);
DECL_LINK(SelectEvent_Impl, weld::ItemView&, void);
DECL_LINK(SelectGroup_Impl, weld::ItemView&, void);
DECL_LINK(SelectMacro_Impl, weld::ItemView&, void);
DECL_LINK(MacroTreeViewActivatedHdl, const weld::TreeIter&, bool);
DECL_LINK(AssignmentsTreeViewActivatedHdl, const weld::TreeIter&, bool);
+1 -1
View File
@@ -37,7 +37,7 @@ class SvxMacroTabPage_Impl;
class SvxMacroTabPage_ : public SfxTabPage
{
DECL_LINK( SelectEvent_Impl, weld::TreeView&, void );
DECL_LINK(SelectEvent_Impl, weld::ItemView&, void);
DECL_LINK( AssignDeleteHdl_Impl, weld::Button&, void );
DECL_LINK(DoubleClickHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK( DeleteAllHdl_Impl, weld::Button&, void );
+2 -2
View File
@@ -35,7 +35,7 @@ private:
DECL_LINK(AddHdl_Impl, weld::Button&, void);
DECL_LINK(DelHdl_Impl, weld::Button&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
DECL_LINK(CheckHdl_Impl, const weld::TreeView::iter_col&, void);
public:
@@ -56,7 +56,7 @@ private:
DECL_LINK(AddHdl_Impl, weld::Button&, void);
DECL_LINK(DelHdl_Impl, weld::Button&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
public:
SvxPathSelectDialog(weld::Window* pParent);
+1 -1
View File
@@ -138,7 +138,7 @@ private:
DECL_LINK(LostFocusHdl_Impl, weld::Widget&, void);
DECL_LINK(DoubleClickHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK(SelFormatListBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(SelFormatTreeListBoxHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelFormatTreeListBoxHdl_Impl, weld::ItemView&, void);
DECL_LINK(SelFormatClickHdl_Impl, weld::Toggleable&, void);
void SelFormatHdl_Impl(weld::Widget*);
DECL_LINK(ClickHdl_Impl, weld::Button&, void);
+2 -2
View File
@@ -283,7 +283,7 @@ class SvxNumOptionsTabPage : public SfxTabPage
void CheckForStartValue_Impl(sal_uInt16 nNumberingType);
DECL_LINK(NumberTypeSelectHdl_Impl, weld::ComboBox&, void);
DECL_LINK(LevelHdl_Impl, weld::TreeView&, void);
DECL_LINK(LevelHdl_Impl, weld::ItemView&, void);
DECL_LINK(LevelHdl, void *, void);
DECL_LINK(PopupActivateHdl_Impl, weld::Toggleable&, void);
DECL_LINK(GraphicHdl_Impl, const OUString&, void);
@@ -371,7 +371,7 @@ class SvxNumPositionTabPage : public SfxTabPage
void InitControls();
DECL_LINK(LevelHdl_Impl, weld::TreeView&, void);
DECL_LINK(LevelHdl_Impl, weld::ItemView&, void);
DECL_LINK(LevelHdl, void *, void);
DECL_LINK(EditModifyHdl_Impl, weld::ComboBox&, void);
DECL_LINK(DistanceHdl_Impl, weld::MetricSpinButton&, void);
+1 -1
View File
@@ -86,7 +86,7 @@ private:
DECL_LINK(SelectBookHdl_Impl, weld::ComboBox&, void);
DECL_LINK(SelectLangHdl_Impl, weld::ComboBox&, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(NewDelButtonHdl, weld::Button&, void);
DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
DECL_LINK(ModifyHdl, weld::Entry&, void);
+2 -2
View File
@@ -56,7 +56,7 @@ class SvxEditModulesDlg : public weld::GenericDialogController
css::uno::Reference< css::configuration::XReadWriteAccess> m_xReadWriteAccess;
DECL_LINK( SelectHdl_Impl, weld::TreeView&, void );
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
DECL_LINK( UpDownHdl_Impl, weld::Button&, void );
DECL_LINK( ClickHdl_Impl, weld::Button&, void );
DECL_LINK( BackHdl_Impl, weld::Button&, void );
@@ -122,7 +122,7 @@ private:
void AddDicBoxEntry( const css::uno::Reference< css::linguistic2::XDictionary > &rxDic, sal_uInt16 nIdx );
static sal_uInt32 GetDicUserData( const css::uno::Reference< css::linguistic2::XDictionary > &rxDic, sal_uInt16 nIdx );
DECL_LINK( SelectHdl_Impl, weld::TreeView&, void );
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
DECL_LINK( ClickHdl_Impl, weld::Button&, void );
DECL_LINK(BoxDoubleClickHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK( ModulesBoxCheckButtonHdl_Impl, const weld::TreeView::iter_col&, void );
+1 -1
View File
@@ -48,7 +48,7 @@ private:
DECL_LINK(DoubleClickPathHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK(StandardHdl_Impl, weld::Button&, void);
DECL_LINK(PathSelect_Impl, weld::TreeView&, void);
DECL_LINK(PathSelect_Impl, weld::ItemView&, void);
DECL_LINK(HeaderBarClick, int, void);
DECL_LINK(DialogClosedHdl, css::ui::dialogs::DialogClosedEvent*, void);
+1 -1
View File
@@ -44,7 +44,7 @@ class SvPasteObjectDialog : public weld::GenericDialogController
weld::TreeView& ObjectLB() { return *m_xLbInsertList; }
void SelectObject();
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(DoubleClickHdl, const weld::TreeIter&, bool);
public:
+1 -1
View File
@@ -97,7 +97,7 @@ class SvxScriptOrgDialog : public SfxDialogController
std::unique_ptr<weld::Button> m_xRenameButton;
std::unique_ptr<weld::Button> m_xDelButton;
DECL_LINK( ScriptSelectHdl, weld::TreeView&, void );
DECL_LINK(ScriptSelectHdl, weld::ItemView&, void);
DECL_LINK( ExpandingHdl, const weld::TreeIter&, bool );
DECL_LINK( ButtonHdl, weld::Button&, void );
static bool getBoolProperty( css::uno::Reference< css::beans::XPropertySet > const & xProps, OUString const & propName );
+1 -1
View File
@@ -59,7 +59,7 @@ public:
DECL_LINK( LeftBtnHdl_Impl, weld::Button&, void );
DECL_LINK( LanguageHdl_Impl, weld::ComboBox&, void );
DECL_LINK( WordSelectHdl_Impl, weld::ComboBox&, void );
DECL_LINK( AlternativesSelectHdl_Impl, weld::TreeView&, void );
DECL_LINK(AlternativesSelectHdl_Impl, weld::ItemView&, void);
DECL_LINK(AlternativesDoubleClickHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK( SelectFirstHdl_Impl, void*, void );
DECL_LINK( ReplaceEditHdl_Impl, weld::Entry&, void );
+1 -1
View File
@@ -189,7 +189,7 @@ private:
void ApplyOptions();
DECL_LINK(ShowPageHdl_Impl, weld::TreeView&, void);
DECL_LINK(ShowPageHdl_Impl, weld::ItemView&, void);
DECL_LINK(BackHdl_Impl, weld::Button&, void);
DECL_LINK(ApplyHdl_Impl, weld::Button&, void);
DECL_LINK(HelpHdl_Impl, weld::Widget&, bool);
+1 -1
View File
@@ -229,7 +229,7 @@ namespace offapp
implInitControls(*_rSet);
}
IMPL_LINK_NOARG(ConnectionPoolOptionsPage, OnDriverRowChanged, weld::TreeView&, void)
IMPL_LINK_NOARG(ConnectionPoolOptionsPage, OnDriverRowChanged, weld::ItemView&, void)
{
const int nDriverPos = m_xDriverList->get_selected_index();
bool bValidRow = (nDriverPos != -1);
+1 -1
View File
@@ -68,7 +68,7 @@ namespace offapp
DECL_LINK(OnEnabledDisabled, weld::Toggleable&, void);
DECL_LINK(OnSpinValueChanged, weld::SpinButton&, void);
DECL_LINK(OnDriverRowChanged, weld::TreeView&, void);
DECL_LINK(OnDriverRowChanged, weld::ItemView&, void);
void implInitControls(const SfxItemSet& _rSet);
+1 -1
View File
@@ -264,7 +264,7 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderSelect_Impl, int, nCol, void )
m_xPathBox->set_sort_indicator(bSortMode ? TRISTATE_TRUE : TRISTATE_FALSE, nCol);
}
IMPL_LINK_NOARG(DbRegistrationOptionsPage, PathSelect_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(DbRegistrationOptionsPage, PathSelect_Impl, weld::ItemView&, void)
{
DatabaseRegistration* pRegistration = weld::fromId<DatabaseRegistration*>(m_xPathBox->get_selected_id());
+1 -1
View File
@@ -299,7 +299,7 @@ IMPL_LINK(SvxFontSubstTabPage, ClickHdl, weld::Button&, rButton, void)
SelectHdl(&rButton);
}
IMPL_LINK(SvxFontSubstTabPage, TreeListBoxSelectHdl, weld::TreeView&, rButton, void)
IMPL_LINK(SvxFontSubstTabPage, TreeListBoxSelectHdl, weld::ItemView&, rButton, void)
{
SelectHdl(&rButton);
}
+1 -1
View File
@@ -47,7 +47,7 @@ class SvxFontSubstTabPage : public SfxTabPage
DECL_LINK(SelectComboBoxHdl, weld::ComboBox&, void);
DECL_LINK(ToggleHdl, weld::Toggleable&, void);
DECL_LINK(ClickHdl, weld::Button&, void);
DECL_LINK(TreeListBoxSelectHdl, weld::TreeView&, void);
DECL_LINK(TreeListBoxSelectHdl, weld::ItemView&, void);
DECL_LINK(NonPropFontsHdl, weld::Toggleable&, void);
DECL_LINK(HeaderBarClick, int, void);
DECL_LINK(ResizeHdl, const Size&, void);
+1 -1
View File
@@ -94,7 +94,7 @@ void SvxDefaultColorOptPage::FillBoxChartColorLB()
m_xLbChartColors->thaw();
}
IMPL_LINK_NOARG(SvxDefaultColorOptPage, LbChartColorsSelectionChangedHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxDefaultColorOptPage, LbChartColorsSelectionChangedHdl, weld::ItemView&, void)
{
auto nIndex = m_xLbChartColors->get_selected_index();
if (nIndex == -1)
+1 -1
View File
@@ -54,7 +54,7 @@ private:
DECL_LINK(RemoveChartColor, weld::Button&, void);
DECL_LINK(BoxClickedHdl, ValueSet*, void);
DECL_LINK(SelectPaletteLbHdl, weld::ComboBox&, void);
DECL_LINK(LbChartColorsSelectionChangedHdl, weld::TreeView&, void);
DECL_LINK(LbChartColorsSelectionChangedHdl, weld::ItemView&, void);
void FillPaletteLB();
+5 -4
View File
@@ -547,24 +547,25 @@ void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId )
}
}
IMPL_LINK(SvxEditDictionaryDialog, SelectHdl, weld::TreeView&, rBox, void)
IMPL_LINK(SvxEditDictionaryDialog, SelectHdl, weld::ItemView&, rBox, void)
{
if (bDoNothing)
return;
int nEntry = rBox.get_selected_index();
weld::TreeView& rTreeView = dynamic_cast<weld::TreeView&>(rBox);
int nEntry = rTreeView.get_selected_index();
if(!bFirstSelect)
{
if (nEntry != -1)
{
OUString sTmpShort(rBox.get_text(nEntry, 0));
OUString sTmpShort(rTreeView.get_text(nEntry, 0));
// without this the cursor is always at the beginning of a word, if the text
// is set over the ModifyHdl, although you're editing there at the moment
if (m_xWordED->get_text() != sTmpShort)
m_xWordED->set_text(sTmpShort);
if (&rBox == m_xDoubleColumnLB.get())
m_xReplaceED->set_text(rBox.get_text(nEntry, 1));
m_xReplaceED->set_text(rTreeView.get_text(nEntry, 1));
}
}
else
+3 -3
View File
@@ -151,7 +151,7 @@ IMPL_LINK(SvxJavaOptionsPage, CheckHdl_Impl, const weld::TreeView::iter_col&, rR
HandleCheckEntry(m_xJavaList->get_iter_index_in_parent(rRowCol.first));
}
IMPL_LINK_NOARG(SvxJavaOptionsPage, SelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxJavaOptionsPage, SelectHdl_Impl, weld::ItemView&, void)
{
UpdateJavaPathText();
}
@@ -710,7 +710,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, EditHdl_Impl, weld::Button&, void)
EditParameter();
}
IMPL_LINK_NOARG(SvxJavaParameterDlg, SelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxJavaParameterDlg, SelectHdl_Impl, weld::ItemView&, void)
{
EnableEditButton();
EnableRemoveButton();
@@ -944,7 +944,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, RemoveHdl_Impl, weld::Button&, void)
EnableRemoveButton();
}
IMPL_LINK_NOARG(SvxJavaClassPathDlg, SelectHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxJavaClassPathDlg, SelectHdl_Impl, weld::ItemView&, void)
{
EnableRemoveButton();
}
+3 -3
View File
@@ -84,7 +84,7 @@ private:
DECL_LINK(EnableHdl_Impl, weld::Toggleable&, void);
DECL_LINK(CheckHdl_Impl, const weld::TreeView::iter_col&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
DECL_LINK(AddHdl_Impl, weld::Button&, void);
DECL_LINK(ParameterHdl_Impl, weld::Button&, void);
DECL_LINK(ClassPathHdl_Impl, weld::Button&, void);
@@ -130,7 +130,7 @@ private:
DECL_LINK(ModifyHdl_Impl, weld::Entry&, void);
DECL_LINK(ActivateHdl_Impl, weld::Entry&, bool);
DECL_LINK(AssignHdl_Impl, weld::Button&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
DECL_LINK(DblClickHdl_Impl, const weld::TreeIter&, bool);
DECL_LINK(RemoveHdl_Impl, weld::Button&, void);
DECL_LINK(EditHdl_Impl, weld::Button&, void);
@@ -187,7 +187,7 @@ private:
DECL_LINK(AddArchiveHdl_Impl, weld::Button&, void);
DECL_LINK(AddPathHdl_Impl, weld::Button&, void);
DECL_LINK(RemoveHdl_Impl, weld::Button&, void);
DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(SelectHdl_Impl, weld::ItemView&, void);
bool IsPathDuplicate(std::u16string_view _rPath);
void EnableRemoveButton()
+2 -2
View File
@@ -1497,7 +1497,7 @@ IMPL_LINK(SvxLinguTabPage, ClickHdl_Impl, weld::Button&, rBtn, void)
}
}
IMPL_LINK(SvxLinguTabPage, SelectHdl_Impl, weld::TreeView&, rBox, void)
IMPL_LINK(SvxLinguTabPage, SelectHdl_Impl, weld::ItemView&, rBox, void)
{
if (m_xLinguModulesCLB.get() == &rBox)
{
@@ -1612,7 +1612,7 @@ SvxEditModulesDlg::~SvxEditModulesDlg()
delete weld::fromId<ModuleUserData_Impl*>(m_xModulesCLB->get_id(i));
}
IMPL_LINK( SvxEditModulesDlg, SelectHdl_Impl, weld::TreeView&, rBox, void )
IMPL_LINK(SvxEditModulesDlg, SelectHdl_Impl, weld::ItemView&, rBox, void)
{
int nCurPos = rBox.get_selected_index();
if (nCurPos == -1)
+1 -1
View File
@@ -342,7 +342,7 @@ void SvxPathTabPage::Reset( const SfxItemSet* )
PathSelect_Impl(*m_xPathBox);
}
IMPL_LINK_NOARG(SvxPathTabPage, PathSelect_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxPathTabPage, PathSelect_Impl, weld::ItemView&, void)
{
bool bEnable = false;
int nEntry = m_xPathBox->get_selected_index();
+1 -1
View File
@@ -611,7 +611,7 @@ sal_uInt16 OfaTreeOptionsDialog::AddGroup(const OUString& rGroupName,
return nRet - 1;
}
IMPL_LINK_NOARG(OfaTreeOptionsDialog, ShowPageHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(OfaTreeOptionsDialog, ShowPageHdl_Impl, weld::ItemView&, void)
{
SelectHdl_Impl();
}
+1 -1
View File
@@ -105,7 +105,7 @@ IMPL_LINK_NOARG(TSAURLsDialog, AddHdl_Impl, weld::Button&, void)
m_xDeleteBtn->set_sensitive(false);
}
IMPL_LINK_NOARG(TSAURLsDialog, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(TSAURLsDialog, SelectHdl, weld::ItemView&, void)
{
m_xDeleteBtn->set_sensitive(true);
}
+1 -1
View File
@@ -29,7 +29,7 @@ private:
DECL_LINK(OKHdl_Impl, weld::Button&, void);
// After operations in a TreeView we have nothing selected
// Is Selected element handler for the TreeView
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
std::set<OUString> m_aURLs;
+1 -2
View File
@@ -206,8 +206,7 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, ChangePasswordHdl, weld::Button&, void)
{}
}
IMPL_LINK_NOARG(WebConnectionInfoDialog, EntrySelectedHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(WebConnectionInfoDialog, EntrySelectedHdl, weld::ItemView&, void)
{
int nEntry = m_xPasswordsLB->get_selected_index();
if (nEntry == -1)
+1 -1
View File
@@ -37,7 +37,7 @@ namespace svx
DECL_LINK( RemovePasswordHdl, weld::Button&, void );
DECL_LINK( RemoveAllPasswordsHdl, weld::Button&, void );
DECL_LINK( ChangePasswordHdl, weld::Button&, void );
DECL_LINK( EntrySelectedHdl, weld::TreeView&, void );
DECL_LINK(EntrySelectedHdl, weld::ItemView&, void);
void FillPasswordList();
+4 -4
View File
@@ -663,7 +663,7 @@ void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet* )
m_xCheckLB->thaw();
}
IMPL_LINK(OfaSwAutoFmtOptionsPage, SelectHdl, weld::TreeView&, rBox, void)
IMPL_LINK(OfaSwAutoFmtOptionsPage, SelectHdl, weld::ItemView&, rBox, void)
{
m_xEditPB->set_sensitive(rBox.get_selected_id().toInt64() != 0);
}
@@ -958,7 +958,7 @@ void OfaAutocorrReplacePage::SetLanguage(LanguageType eSet)
}
}
IMPL_LINK_NOARG(OfaAutocorrReplacePage, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(OfaAutocorrReplacePage, SelectHdl, weld::ItemView&, void)
{
if(!bFirstSelect || !bHasSelectionText)
{
@@ -1539,7 +1539,7 @@ bool OfaAutocorrExceptPage::NewDelHdl(const weld::Widget* pBtn)
return true;
}
IMPL_LINK(OfaAutocorrExceptPage, SelectHdl, weld::TreeView&, rBox, void)
IMPL_LINK(OfaAutocorrExceptPage, SelectHdl, weld::ItemView&, rBox, void)
{
if (&rBox == m_xAbbrevLB.get())
{
@@ -2324,7 +2324,7 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, CheckHdl, weld::Toggleable&, void)
/** Handler for the list box
*/
IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, SelectHdl, weld::ItemView&, void)
{
const int nPos = m_xSmartTagTypesLB->get_selected_index();
if (nPos == -1)
+3 -3
View File
@@ -3158,7 +3158,7 @@ void SvxCharTwoLinesPage::Initialize()
m_xTwoLinesBtn->connect_toggled(LINK(this, SvxCharTwoLinesPage, TwoLinesHdl_Impl));
Link<weld::TreeView&,void> aLink = LINK(this, SvxCharTwoLinesPage, CharacterMapHdl_Impl);
Link<weld::ItemView&, void> aLink = LINK(this, SvxCharTwoLinesPage, CharacterMapHdl_Impl);
m_xStartBracketLB->connect_selection_changed(aLink);
m_xEndBracketLB->connect_selection_changed(aLink);
@@ -3170,7 +3170,7 @@ void SvxCharTwoLinesPage::Initialize()
rCTLFont.SetFontSize( Size( 0, 220 ) );
}
void SvxCharTwoLinesPage::SelectCharacter(weld::TreeView* pBox)
void SvxCharTwoLinesPage::SelectCharacter(weld::ItemView* pBox)
{
bool bStart = pBox == m_xStartBracketLB.get();
SvxCharacterMap aDlg(GetFrameWeld(), nullptr, nullptr);
@@ -3232,7 +3232,7 @@ IMPL_LINK_NOARG(SvxCharTwoLinesPage, TwoLinesHdl_Impl, weld::Toggleable&, void)
UpdatePreview_Impl();
}
IMPL_LINK(SvxCharTwoLinesPage, CharacterMapHdl_Impl, weld::TreeView&, rBox, void)
IMPL_LINK(SvxCharTwoLinesPage, CharacterMapHdl_Impl, weld::ItemView&, rBox, void)
{
int nPos = rBox.get_selected_index();
if (rBox.get_id(nPos).toInt32() == CHRDLG_ENCLOSE_SPECIAL_CHAR)
+3 -3
View File
@@ -222,7 +222,7 @@ bool SfxMacroTabPage::IsReadOnly() const
return false;
}
IMPL_LINK_NOARG(SfxMacroTabPage, SelectEvent_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SfxMacroTabPage, SelectEvent_Impl, weld::ItemView&, void)
{
weld::TreeView& rListBox = m_xEventLB->GetListBox();
int nSelected = rListBox.get_selected_index();
@@ -236,7 +236,7 @@ IMPL_LINK_NOARG(SfxMacroTabPage, SelectEvent_Impl, weld::TreeView&, void)
EnableButtons();
}
IMPL_LINK_NOARG(SfxMacroTabPage, SelectGroup_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SfxMacroTabPage, SelectGroup_Impl, weld::ItemView&, void)
{
m_xGroupLB->GroupSelected();
const OUString sScriptURI = m_xMacroLB->GetSelectedScriptURI();
@@ -248,7 +248,7 @@ IMPL_LINK_NOARG(SfxMacroTabPage, SelectGroup_Impl, weld::TreeView&, void)
EnableButtons();
}
IMPL_LINK_NOARG(SfxMacroTabPage, SelectMacro_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SfxMacroTabPage, SelectMacro_Impl, weld::ItemView&, void)
{
EnableButtons();
}
+3 -2
View File
@@ -268,7 +268,8 @@ void SvxNumberFormatTabPage::Init_Impl()
m_xCbSourceFormat->set_sensitive(false);
m_xCbSourceFormat->hide();
Link<weld::TreeView&,void> aLink2 = LINK(this, SvxNumberFormatTabPage, SelFormatTreeListBoxHdl_Impl);
Link<weld::ItemView&, void> aLink2
= LINK(this, SvxNumberFormatTabPage, SelFormatTreeListBoxHdl_Impl);
Link<weld::ComboBox&,void> aLink3 = LINK(this, SvxNumberFormatTabPage, SelFormatListBoxHdl_Impl);
m_xLbCategory->connect_selection_changed(aLink2);
m_xLbCategory->connect_focus_in(LINK(this, SvxNumberFormatTabPage, LostFocusHdl_Impl));
@@ -1115,7 +1116,7 @@ IMPL_LINK(SvxNumberFormatTabPage, SelFormatClickHdl_Impl, weld::Toggleable&, rLb
SelFormatHdl_Impl(&rLb);
}
IMPL_LINK(SvxNumberFormatTabPage, SelFormatTreeListBoxHdl_Impl, weld::TreeView&, rLb, void)
IMPL_LINK(SvxNumberFormatTabPage, SelFormatTreeListBoxHdl_Impl, weld::ItemView&, rLb, void)
{
SelFormatHdl_Impl(&rLb);
}
+2 -2
View File
@@ -1712,7 +1712,7 @@ void SvxNumOptionsTabPage::SwitchNumberType( NumberType nType )
m_xOrientLB->set_sensitive(bEnableBitmap);
}
IMPL_LINK_NOARG(SvxNumOptionsTabPage, LevelHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxNumOptionsTabPage, LevelHdl_Impl, weld::ItemView&, void)
{
if (m_pLevelHdlEvent)
return;
@@ -2818,7 +2818,7 @@ IMPL_LINK_NOARG(SvxNumPositionTabPage, EditModifyHdl_Impl, weld::ComboBox&, void
SetModified();
}
IMPL_LINK_NOARG(SvxNumPositionTabPage, LevelHdl_Impl, weld::TreeView&, void)
IMPL_LINK_NOARG(SvxNumPositionTabPage, LevelHdl_Impl, weld::ItemView&, void)
{
if (m_pLevelHdlEvent)
return;
+1 -1
View File
@@ -100,7 +100,7 @@ IMPL_LINK_NOARG(OTasksWindow, FocusOutHdl, weld::Widget&, void)
m_xTreeView->unselect_all();
}
IMPL_LINK_NOARG(OTasksWindow, OnEntrySelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(OTasksWindow, OnEntrySelectHdl, weld::ItemView&, void)
{
m_nCursorIndex = m_xTreeView->get_cursor_index();
updateHelpText();
+1 -1
View File
@@ -71,7 +71,7 @@ namespace dbaui
int m_nCursorIndex;
DECL_LINK(onSelected, const weld::TreeIter&, bool);
DECL_LINK(OnEntrySelectHdl, weld::TreeView&, void);
DECL_LINK(OnEntrySelectHdl, weld::ItemView&, void);
DECL_LINK(FocusInHdl, weld::Widget&, void);
DECL_LINK(FocusOutHdl, weld::Widget&, void);
+1 -1
View File
@@ -176,7 +176,7 @@ void TreeListBox::implStartSelectionTimer()
m_aTimer.Start();
}
IMPL_LINK_NOARG(TreeListBox, SelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(TreeListBox, SelectHdl, weld::ItemView&, void)
{
implStartSelectionTimer();
}
+1 -1
View File
@@ -419,7 +419,7 @@ void OAddTableDlg::Add()
}
}
IMPL_LINK_NOARG( OAddTableDlg, TableListSelectHdl, weld::TreeView&, void )
IMPL_LINK_NOARG(OAddTableDlg, TableListSelectHdl, weld::ItemView&, void)
{
m_xAddButton->set_sensitive( m_xCurrentList->isLeafSelected() );
}
+1 -1
View File
@@ -199,7 +199,7 @@ IMPL_LINK_NOARG(ODbaseIndexDialog, RemoveAllClickHdl, weld::Button&, void)
checkButtons();
}
IMPL_LINK_NOARG(ODbaseIndexDialog, OnListEntrySelected, weld::TreeView&, void)
IMPL_LINK_NOARG(ODbaseIndexDialog, OnListEntrySelected, weld::ItemView&, void)
{
checkButtons();
}
+1 -1
View File
@@ -87,7 +87,7 @@ class ODbaseIndexDialog : public weld::GenericDialogController
DECL_LINK( AddAllClickHdl, weld::Button&, void );
DECL_LINK( RemoveAllClickHdl, weld::Button&, void );
DECL_LINK( OKClickHdl, weld::Button&, void );
DECL_LINK( OnListEntrySelected, weld::TreeView&, void );
DECL_LINK(OnListEntrySelected, weld::ItemView&, void);
protected:
void Init();
+1 -1
View File
@@ -732,7 +732,7 @@ void DbaIndexDialog::IndexSelected()
updateToolbox();
}
IMPL_LINK_NOARG(DbaIndexDialog, OnIndexSelected, weld::TreeView&, void)
IMPL_LINK_NOARG(DbaIndexDialog, OnIndexSelected, weld::ItemView&, void)
{
if (m_bNoHandlerCall)
return;
+1 -1
View File
@@ -255,7 +255,7 @@ namespace dbaui
}
}
IMPL_LINK_NOARG(OParameterDialog, OnEntryListBoxSelected, weld::TreeView&, void)
IMPL_LINK_NOARG(OParameterDialog, OnEntryListBoxSelected, weld::ItemView&, void)
{
OnEntrySelected();
}
+2 -2
View File
@@ -233,7 +233,7 @@ public:
OExceptionChainDialog(weld::Window* pParent, ExceptionDisplayChain&& rExceptions);
protected:
DECL_LINK(OnExceptionSelected, weld::TreeView&, void);
DECL_LINK(OnExceptionSelected, weld::ItemView&, void);
private:
void insertExceptionEntry(size_t nElementPos, const ExceptionDisplayInfo& rEntry);
@@ -297,7 +297,7 @@ void OExceptionChainDialog::insertExceptionEntry(size_t nElementPos,
lcl_getImageName(rEntry.eType));
}
IMPL_LINK_NOARG(OExceptionChainDialog, OnExceptionSelected, weld::TreeView&, void)
IMPL_LINK_NOARG(OExceptionChainDialog, OnExceptionSelected, weld::ItemView&, void)
{
OUString sText;
+2 -2
View File
@@ -44,8 +44,8 @@ namespace dbaui
DECL_LINK( ButtonClickHdl, weld::Button&, void );
DECL_LINK( RightButtonClickHdl, weld::Button&, void );
DECL_LINK( AllNoneClickHdl, weld::Button&, void );
DECL_LINK( TableListClickHdl, weld::TreeView&, void );
DECL_LINK( TableListRightSelectHdl, weld::TreeView&, void );
DECL_LINK(TableListClickHdl, weld::ItemView&, void);
DECL_LINK(TableListRightSelectHdl, weld::ItemView&, void);
static void FillListBox(weld::TreeView& rTreeView, const ODatabaseExport::TColumnVector& rList, bool bCheckButtons);
+3 -3
View File
@@ -67,7 +67,7 @@ namespace dbaui
DECL_LINK(CommandHdl, const CommandEvent&, bool);
Link<weld::TreeView&, void> m_aChangeHdl;
Link<weld::ItemView&, void> m_aChangeHdl;
public:
OWizTypeSelectList(std::unique_ptr<weld::TreeView> xControl);
@@ -86,7 +86,7 @@ namespace dbaui
void set_selection_mode(SelectionMode eMode) { m_xControl->set_selection_mode(eMode); }
int count_selected_rows() const { return m_xControl->count_selected_rows(); }
void select(int pos) { m_xControl->select(pos); }
void connect_changed(const Link<weld::TreeView&, void>& rLink)
void connect_changed(const Link<weld::ItemView&, void>& rLink)
{
m_aChangeHdl = rLink;
m_xControl->connect_selection_changed(rLink);
@@ -101,7 +101,7 @@ namespace dbaui
friend class OWizTypeSelectControl;
friend class OWizTypeSelectList;
DECL_LINK( ColumnSelectHdl, weld::TreeView&, void );
DECL_LINK(ColumnSelectHdl, weld::ItemView&, void);
DECL_LINK( ButtonClickHdl, weld::Button&, void );
protected:
std::unique_ptr<OWizTypeSelectList> m_xColumnNames;
+1 -1
View File
@@ -71,7 +71,7 @@ namespace dbaui
DECL_LINK( AddClickHdl, weld::Button&, void );
DECL_LINK( CloseClickHdl, weld::Button&, void);
DECL_LINK(TableListDoubleClickHdl, const weld::TreeIter&, bool);
DECL_LINK( TableListSelectHdl, weld::TreeView&, void );
DECL_LINK(TableListSelectHdl, weld::ItemView&, void);
DECL_LINK( OnTypeSelected, weld::Toggleable&, void );
public:
+1 -1
View File
@@ -65,7 +65,7 @@ namespace dbaui
IContextMenuProvider* m_pContextMenuProvider;
DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
DECL_LINK(SelectHdl, weld::TreeView&, void);
DECL_LINK(SelectHdl, weld::ItemView&, void);
DECL_LINK(QueryTooltipHdl, const weld::TreeIter&, OUString);
DECL_LINK(CommandHdl, const CommandEvent&, bool);
DECL_LINK(DragBeginHdl, bool&, bool);
+1 -1
View File
@@ -75,7 +75,7 @@ private:
void IndexSelected();
DECL_LINK(OnIndexSelected, weld::TreeView&, void);
DECL_LINK(OnIndexSelected, weld::ItemView&, void);
DECL_LINK(OnIndexAction, const OUString&, void);
DECL_LINK(OnEntryEditing, const weld::TreeIter&, bool);
DECL_LINK(OnEntryEdited, const IterString&, bool);
+1 -1
View File
@@ -89,7 +89,7 @@ namespace dbaui
DECL_LINK(OnVisitedTimeout, Timer*, void);
DECL_LINK(OnValueModified, weld::Entry&, void);
DECL_LINK(OnEntryListBoxSelected, weld::TreeView&, void);
DECL_LINK(OnEntryListBoxSelected, weld::ItemView&, void);
DECL_LINK(OnButtonClicked, weld::Button&, void);
DECL_LINK(OnValueLoseFocusHdl, weld::Widget&, void);
bool CheckValueForError();
+2 -2
View File
@@ -236,7 +236,7 @@ namespace
}
}
IMPL_LINK_NOARG(OWizNameMatching, TableListClickHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(OWizNameMatching, TableListClickHdl, weld::ItemView&, void)
{
int nPos = m_xCTRL_LEFT->get_selected_index();
if (nPos == -1)
@@ -262,7 +262,7 @@ IMPL_LINK_NOARG(OWizNameMatching, TableListClickHdl, weld::TreeView&, void)
}
}
IMPL_LINK_NOARG( OWizNameMatching, TableListRightSelectHdl, weld::TreeView&, void )
IMPL_LINK_NOARG(OWizNameMatching, TableListRightSelectHdl, weld::ItemView&, void)
{
int nPos = m_xCTRL_RIGHT->get_selected_index();
if (nPos == -1)
+1 -1
View File
@@ -245,7 +245,7 @@ OUString OWizTypeSelect::GetTitle() const
return DBA_RES(STR_WIZ_TYPE_SELECT_TITLE);
}
IMPL_LINK_NOARG(OWizTypeSelect, ColumnSelectHdl, weld::TreeView&, void)
IMPL_LINK_NOARG(OWizTypeSelect, ColumnSelectHdl, weld::ItemView&, void)
{
OFieldDescription* pField = weld::fromId<OFieldDescription*>(m_xColumnNames->get_selected_id());
if (pField)
@@ -817,8 +817,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
return bIsIgnored;
}
IMPL_LINK_NOARG(UpdateDialog, selectionHandler, weld::TreeView&, void)
IMPL_LINK_NOARG(UpdateDialog, selectionHandler, weld::ItemView&, void)
{
OUStringBuffer b;
int nSelectedPos = m_xUpdates->get_selected_index();

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