[Libreoffice-commits] core.git: dbaccess/source svx/source sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Mar 11 17:36:34 UTC 2021


 dbaccess/source/ui/querydesign/TableFieldDescription.cxx |    1 
 svx/source/inc/fmshimp.hxx                               |    3 
 sw/source/core/access/accmap.cxx                         |   47 ---------------
 sw/source/uibase/utlui/shdwcrsr.cxx                      |    1 
 4 files changed, 2 insertions(+), 50 deletions(-)

New commits:
commit 13333b72bc8f0627fb934a25de63c8c789fd725d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Mar 11 10:18:45 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Mar 11 18:35:48 2021 +0100

    remove some unneeded vcl/window.hxx includes
    
    Change-Id: I2b716371e2bebe7390e7f0c7b747140d9f4bdec6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112330
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
index 95476cafd51e..c8f0a402218f 100644
--- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
+++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
@@ -22,7 +22,6 @@
 #include <osl/diagnose.h>
 #include <com/sun/star/sdbc/DataType.hpp>
 #include <comphelper/namedvaluecollection.hxx>
-#include <vcl/window.hxx>
 
 using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::uno;
diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx
index 23bb34cc3a43..4c296ed820b7 100644
--- a/svx/source/inc/fmshimp.hxx
+++ b/svx/source/inc/fmshimp.hxx
@@ -36,7 +36,6 @@
 #include <com/sun/star/form/runtime/FeatureState.hpp>
 #include <tools/diagnose_ex.h>
 #include <vcl/timer.hxx>
-#include <vcl/window.hxx>
 #include <sfx2/shell.hxx>
 #include <svx/svdmark.hxx>
 #include <svx/fmsearch.hxx>
@@ -55,6 +54,8 @@
 #include <vector>
 #include <memory>
 
+struct ImplSVEvent;
+
 typedef std::vector< css::uno::Reference< css::form::XForm > > FmFormArray;
 
 // catch database exceptions if they occur
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 95c1891057f6..5605d23ca75d 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -1656,53 +1656,6 @@ void SwAccessibleMap::DoInvalidateShapeSelection(bool bInvalidateFocusMode /*=fa
     }
 }
 
-//Merge with DoInvalidateShapeSelection
-/*
-void SwAccessibleMap::DoInvalidateShapeFocus()
-{
-    const SwViewShell *pVSh = GetShell();
-    const SwFEShell *pFESh = dynamic_cast<const SwFEShell*>( pVSh) !=  nullptr ?
-                            static_cast< const SwFEShell * >( pVSh ) : nullptr;
-    const size_t nSelShapes = pFESh ? pFESh->IsObjSelected() : 0;
-
-    if( nSelShapes != 1 )
-        return;
-
-    SwAccessibleObjShape_Impl *pShapes = nullptr;
-    SwAccessibleObjShape_Impl *pSelShape = nullptr;
-    size_t nShapes = 0;
-
-    {
-        osl::MutexGuard aGuard( maMutex );
-        if( mpShapeMap )
-            pShapes = mpShapeMap->Copy( nShapes, pFESh, &pSelShape );
-    }
-
-    if( pShapes )
-    {
-        vcl::Window *pWin = GetShell()->GetWin();
-        bool bFocused = pWin && pWin->HasFocus();
-        SwAccessibleObjShape_Impl  *pShape = pShapes;
-        while( nShapes )
-        {
-            if( pShape->second.is() )
-            {
-                if( bFocused && pShape >= pSelShape )
-                    pShape->second->SetState( AccessibleStateType::FOCUSED );
-                else
-                    pShape->second->ResetState( AccessibleStateType::FOCUSED );
-            }
-
-            --nShapes;
-            ++pShape;
-        }
-
-        delete[] pShapes;
-    }
-}
-
-*/
-
 SwAccessibleMap::SwAccessibleMap( SwViewShell *pSh ) :
     mpVSh( pSh ),
     mbShapeSelected( false ),
diff --git a/sw/source/uibase/utlui/shdwcrsr.cxx b/sw/source/uibase/utlui/shdwcrsr.cxx
index 72b313fb7d0d..2a9b2a9f3d99 100644
--- a/sw/source/uibase/utlui/shdwcrsr.cxx
+++ b/sw/source/uibase/utlui/shdwcrsr.cxx
@@ -18,7 +18,6 @@
  */
 
 #include <com/sun/star/text/HoriOrientation.hpp>
-#include <vcl/window.hxx>
 #include <shdwcrsr.hxx>
 
 using namespace ::com::sun::star;


More information about the Libreoffice-commits mailing list