summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilerplugins/clang/constantparam.booleans.results8
-rw-r--r--compilerplugins/clang/overrideparam.cxx4
-rw-r--r--include/svx/checklbx.hxx68
-rw-r--r--solenv/clang-format/blacklist4
-rw-r--r--svx/Library_svxcore.mk1
-rw-r--r--svx/source/dialog/checklbx.cxx161
-rw-r--r--sw/source/uibase/inc/optcomp.hxx1
-rw-r--r--sw/source/uibase/inc/optload.hxx1
8 files changed, 0 insertions, 248 deletions
diff --git a/compilerplugins/clang/constantparam.booleans.results b/compilerplugins/clang/constantparam.booleans.results
index 39637cd6b887..a39ccbc292a8 100644
--- a/compilerplugins/clang/constantparam.booleans.results
+++ b/compilerplugins/clang/constantparam.booleans.results
@@ -254,10 +254,6 @@ cui/source/inc/hangulhanjadlg.hxx:60
class rtl::OUString svx::SuggestionDisplay::GetEntry(unsigned short) const
unsigned short nPos
0
-cui/source/inc/radiobtnbox.hxx:40
- void svx::SvxRadioButtonListBox::SvxRadioButtonListBox(class SvSimpleTableContainer &,long)
- long nBits
- 0
cui/source/inc/scriptdlg.hxx:122
void SvxScriptOrgDialog::insertEntry(const class rtl::OUString &,const class rtl::OUString &,const class weld::TreeIter *,_Bool,class std::unique_ptr<class SFEntry, struct std::default_delete<class SFEntry> > &&,const class rtl::OUString &,_Bool)
_Bool bChildrenOnDemand
@@ -1114,10 +1110,6 @@ include/svx/algitem.hxx:39
void SvxOrientationItem::SvxOrientationItem(int,_Bool,const unsigned short)
const unsigned short nId
0
-include/svx/checklbx.hxx:55
- void SvxCheckListBox::SelectEntryPos(unsigned long)
- unsigned long nPos
- 0
include/svx/colorwindow.hxx:147
void ColorWindow::ColorWindow(const class std::shared_ptr<class PaletteManager> &,class ColorStatus &,unsigned short,const class com::sun::star::uno::Reference<class com::sun::star::frame::XFrame> &,class weld::Window *,class weld::MenuButton *,_Bool,const class std::function<void (const class rtl::OUString &, const struct std::pair<class Color, class rtl::OUString> &)> &)
_Bool bInterimBuilder
diff --git a/compilerplugins/clang/overrideparam.cxx b/compilerplugins/clang/overrideparam.cxx
index 27aecb82615f..61efe15b1eb0 100644
--- a/compilerplugins/clang/overrideparam.cxx
+++ b/compilerplugins/clang/overrideparam.cxx
@@ -54,10 +54,6 @@ bool OverrideParam::VisitCXXMethodDecl(const CXXMethodDecl * methodDecl) {
return true;
}
loplugin::DeclCheck dc(methodDecl);
- // there is an InsertEntry override here which causes trouble if I modify it
- if (dc.Function("InsertEntry").Class("SvxCheckListBox").GlobalNamespace()) {
- return true;
- }
// This class is overriding ShowCursor(bool) AND declaring a ShowCursor() method.
// Adding a default param causes 'ambiguous override'.
if (dc.Function("ShowCursor").Class("ScTabViewShell").GlobalNamespace()) {
diff --git a/include/svx/checklbx.hxx b/include/svx/checklbx.hxx
deleted file mode 100644
index 44eeb3631143..000000000000
--- a/include/svx/checklbx.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SVX_CHECKLBX_HXX
-#define INCLUDED_SVX_CHECKLBX_HXX
-
-#include <rtl/ustring.hxx>
-#include <vcl/treelistbox.hxx>
-#include <svx/svxdllapi.h>
-#include <tools/solar.h>
-#include <tools/wintypes.hxx>
-#include <vcl/window.hxx>
-#include <memory>
-
-class SvLBoxButtonData;
-class SvTreeListEntry;
-
-class SVX_DLLPUBLIC SvxCheckListBox : public SvTreeListBox
-{
- using Window::GetText;
-
-private:
- std::unique_ptr<SvLBoxButtonData> pCheckButton;
-
- SVX_DLLPRIVATE void Init_Impl();
-
- using SvTreeListBox::InsertEntry;
- // Avoid ambiguity with new InsertEntry:
- virtual SvTreeListEntry* InsertEntry( const OUString& rText, SvTreeListEntry* pParent,
- bool bChildrenOnDemand,
- sal_uLong nPos, void* pUserData,
- SvLBoxButtonKind eButtonKind ) override;
-
-public:
- SvxCheckListBox( vcl::Window* pParent, WinBits nWinStyle = 0 );
- virtual ~SvxCheckListBox() override;
- virtual void dispose() override;
-
- void SelectEntryPos ( sal_uLong nPos );
- sal_uLong GetSelectedEntryPos () const;
-
- void CheckEntryPos ( sal_uLong nPos, bool bCheck = true );
- bool IsChecked ( sal_uLong nPos ) const;
- void ToggleCheckButton ( SvTreeListEntry* pEntry );
-
- virtual void MouseButtonDown ( const MouseEvent& rMEvt ) override;
- virtual void KeyInput ( const KeyEvent& rKEvt ) override;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist
index 0978262baf92..925add79640c 100644
--- a/solenv/clang-format/blacklist
+++ b/solenv/clang-format/blacklist
@@ -2810,7 +2810,6 @@ cui/source/inc/paragrph.hxx
cui/source/inc/passwdomdlg.hxx
cui/source/inc/pastedlg.hxx
cui/source/inc/postdlg.hxx
-cui/source/inc/radiobtnbox.hxx
cui/source/inc/screenshotannotationdlg.hxx
cui/source/inc/scriptdlg.hxx
cui/source/inc/sdrcelldlg.hxx
@@ -2882,7 +2881,6 @@ cui/source/options/optsave.cxx
cui/source/options/optsave.hxx
cui/source/options/optupdt.cxx
cui/source/options/optupdt.hxx
-cui/source/options/radiobtnbox.cxx
cui/source/options/sdbcdriverenum.cxx
cui/source/options/sdbcdriverenum.hxx
cui/source/options/securityoptions.cxx
@@ -7075,7 +7073,6 @@ include/svx/bmpmask.hxx
include/svx/camera3d.hxx
include/svx/charmap.hxx
include/svx/charthelper.hxx
-include/svx/checklbx.hxx
include/svx/chrtitem.hxx
include/svx/clipboardctl.hxx
include/svx/clipfmtitem.hxx
@@ -14005,7 +14002,6 @@ svx/source/dialog/SvxNumOptionsTabPageHelper.cxx
svx/source/dialog/_bmpmask.cxx
svx/source/dialog/_contdlg.cxx
svx/source/dialog/charmap.cxx
-svx/source/dialog/checklbx.cxx
svx/source/dialog/compressgraphicdialog.cxx
svx/source/dialog/connctrl.cxx
svx/source/dialog/contimp.hxx
diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk
index fc9449fede66..c36e0f6ae09a 100644
--- a/svx/Library_svxcore.mk
+++ b/svx/Library_svxcore.mk
@@ -111,7 +111,6 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\
svx/source/customshapes/EnhancedCustomShapeFunctionParser \
svx/source/customshapes/EnhancedCustomShapeGeometry \
svx/source/customshapes/EnhancedCustomShapeTypeNames \
- svx/source/dialog/checklbx \
svx/source/dialog/dialmgr \
svx/source/dialog/dlgutil \
svx/source/dialog/hexcolorcontrol \
diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx
deleted file mode 100644
index 1a9c63ad1134..000000000000
--- a/svx/source/dialog/checklbx.cxx
+++ /dev/null
@@ -1,161 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <vcl/event.hxx>
-#include <vcl/svlbitm.hxx>
-#include <vcl/treelistentry.hxx>
-#include <svx/checklbx.hxx>
-#include <vcl/builderfactory.hxx>
-
-SvxCheckListBox::SvxCheckListBox( vcl::Window* pParent, WinBits nWinStyle ) :
-
- SvTreeListBox( pParent, nWinStyle )
-
-{
- Init_Impl();
-}
-
-SvxCheckListBox::~SvxCheckListBox()
-{
- disposeOnce();
-}
-
-void SvxCheckListBox::dispose()
-{
- pCheckButton.reset();
- SvTreeListBox::dispose();
-}
-
-void SvxCheckListBox::Init_Impl()
-{
- pCheckButton.reset(new SvLBoxButtonData( this ));
- EnableCheckButton( pCheckButton.get() );
-}
-
-void SvxCheckListBox::SelectEntryPos( sal_uLong nPos )
-{
- if ( nPos < GetEntryCount() )
- Select( GetEntry( nPos ) );
-}
-
-
-sal_uLong SvxCheckListBox::GetSelectedEntryPos() const
-{
- SvTreeListEntry* pEntry = GetCurEntry();
-
- if ( pEntry )
- return GetModel()->GetAbsPos( pEntry );
- return TREELIST_ENTRY_NOTFOUND;
-}
-
-
-void SvxCheckListBox::CheckEntryPos( sal_uLong nPos, bool bCheck )
-{
- if ( nPos < GetEntryCount() )
- SetCheckButtonState( GetEntry( nPos ), bCheck ? SvButtonState::Checked : SvButtonState::Unchecked );
-}
-
-
-bool SvxCheckListBox::IsChecked( sal_uLong nPos ) const
-{
- if ( nPos < GetEntryCount() )
- return GetCheckButtonState( GetEntry( nPos ) ) == SvButtonState::Checked;
- else
- return false;
-}
-
-
-void SvxCheckListBox::ToggleCheckButton( SvTreeListEntry* pEntry )
-{
- if ( pEntry )
- {
- if ( !IsSelected( pEntry ) )
- Select( pEntry );
- else
- CheckEntryPos( GetSelectedEntryPos(), !IsChecked( GetSelectedEntryPos() ) );
- }
-}
-
-
-void SvxCheckListBox::MouseButtonDown( const MouseEvent& rMEvt )
-{
- if ( rMEvt.IsLeft() )
- {
- const Point aPnt = rMEvt.GetPosPixel();
- SvTreeListEntry* pEntry = GetEntry( aPnt );
-
- if ( pEntry )
- {
- bool bCheck = GetCheckButtonState( pEntry ) == SvButtonState::Checked;
- SvLBoxItem* pItem = GetItem( pEntry, aPnt.X() );
-
- if (pItem && pItem->GetType() == SvLBoxItemType::Button)
- {
- SvTreeListBox::MouseButtonDown( rMEvt );
- Select( pEntry );
- return;
- }
- else
- {
- ToggleCheckButton( pEntry );
- SvTreeListBox::MouseButtonDown( rMEvt );
-
- // check if the entry below the mouse changed during the base method call. This is possible if,
- // for instance, a handler invoked by the base class tampers with the list entries.
- const SvTreeListEntry* pNewEntry = GetEntry( aPnt );
- if ( pNewEntry != pEntry )
- return;
-
- if ( bCheck != ( GetCheckButtonState( pEntry ) == SvButtonState::Checked ) )
- CheckButtonHdl();
- return;
- }
- }
- }
- SvTreeListBox::MouseButtonDown( rMEvt );
-}
-
-
-void SvxCheckListBox::KeyInput( const KeyEvent& rKEvt )
-{
- const vcl::KeyCode& rKey = rKEvt.GetKeyCode();
-
- if ( rKey.GetCode() == KEY_RETURN || rKey.GetCode() == KEY_SPACE )
- {
- SvTreeListEntry* pEntry = GetCurEntry();
-
- if ( pEntry )
- {
- bool bCheck = GetCheckButtonState( pEntry ) == SvButtonState::Checked;
- ToggleCheckButton( pEntry );
- if ( bCheck != ( GetCheckButtonState( pEntry ) == SvButtonState::Checked ) )
- CheckButtonHdl();
- }
- }
- else if ( GetEntryCount() )
- SvTreeListBox::KeyInput( rKEvt );
-}
-
-
-SvTreeListEntry* SvxCheckListBox::InsertEntry( const OUString& rText, SvTreeListEntry* pParent, bool bChildrenOnDemand, sal_uLong nPos, void* pUserData, SvLBoxButtonKind eButtonKind )
-{
- return SvTreeListBox::InsertEntry( rText, pParent, bChildrenOnDemand, nPos, pUserData, eButtonKind );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/optcomp.hxx b/sw/source/uibase/inc/optcomp.hxx
index ca12a02e4fde..2337893b5ed5 100644
--- a/sw/source/uibase/inc/optcomp.hxx
+++ b/sw/source/uibase/inc/optcomp.hxx
@@ -26,7 +26,6 @@
#include <vcl/lstbox.hxx>
#include <unotools/compatibility.hxx>
#include <unotools/compatibilityviewoptions.hxx>
-#include <svx/checklbx.hxx>
#include <rtl/ustring.hxx>
class SwWrtShell;
diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx
index 8d00320c2035..7b0193acf652 100644
--- a/sw/source/uibase/inc/optload.hxx
+++ b/sw/source/uibase/inc/optload.hxx
@@ -29,7 +29,6 @@
#include <vcl/weld.hxx>
#include <svx/strarray.hxx>
#include <sfx2/basedlgs.hxx>
-#include <svx/checklbx.hxx>
#include "caption.hxx"
class SwFieldMgr;