summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/inc/ControlFocusHelper.hxx44
-rw-r--r--cui/source/inc/dbregister.hxx1
-rw-r--r--cui/source/inc/optpath.hxx1
-rw-r--r--cui/source/options/optpath.cxx11
4 files changed, 0 insertions, 57 deletions
diff --git a/cui/source/inc/ControlFocusHelper.hxx b/cui/source/inc/ControlFocusHelper.hxx
deleted file mode 100644
index 6530f3cf6740..000000000000
--- a/cui/source/inc/ControlFocusHelper.hxx
+++ /dev/null
@@ -1,44 +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_CUI_SOURCE_INC_CONTROLFOCUSHELPER_HXX
-#define INCLUDED_CUI_SOURCE_INC_CONTROLFOCUSHELPER_HXX
-
-#include <vcl/ctrl.hxx>
-
-// class SvxControlFocusHelper ---------------------------------------------
-
-class SvxControlFocusHelper : public Control
-{
-private:
- VclPtr<Control> m_pFocusCtrl;
-
-public:
- SvxControlFocusHelper( vcl::Window* pParent, const ResId& rId ) :
- Control( pParent, rId ), m_pFocusCtrl( NULL ) {}
- virtual ~SvxControlFocusHelper();
- virtual void dispose() SAL_OVERRIDE;
-
- void SetFocusControl( Control* pCtrl ) { m_pFocusCtrl = pCtrl; }
-
- virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
-};
-
-#endif // INCLUDED_CUI_SOURCE_INC_CONTROLFOCUSHELPER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/dbregister.hxx b/cui/source/inc/dbregister.hxx
index 0c9d91e34051..00c26d18c969 100644
--- a/cui/source/inc/dbregister.hxx
+++ b/cui/source/inc/dbregister.hxx
@@ -25,7 +25,6 @@
#include <svl/poolitem.hxx>
#include <svtools/simptabl.hxx>
#include "optpath.hxx"
-#include "ControlFocusHelper.hxx"
class SvTreeListEntry;
namespace svx
diff --git a/cui/source/inc/optpath.hxx b/cui/source/inc/optpath.hxx
index a394d095f6a9..d793485d6fdd 100644
--- a/cui/source/inc/optpath.hxx
+++ b/cui/source/inc/optpath.hxx
@@ -23,7 +23,6 @@
#include <svtools/simptabl.hxx>
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
-#include "ControlFocusHelper.hxx"
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
#include <svtools/dialogclosedlistener.hxx>
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 218f814e97fb..0bab1a92168a 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -161,17 +161,6 @@ OUString Convert_Impl( const OUString& rValue )
return aReturn;
}
-// class SvxControlFocusHelper ---------------------------------------------
-
-bool SvxControlFocusHelper::Notify( NotifyEvent& rNEvt )
-{
- bool nRet = Control::Notify( rNEvt );
-
- if ( m_pFocusCtrl && rNEvt.GetWindow() != m_pFocusCtrl && rNEvt.GetType() == MouseNotifyEvent::GETFOCUS )
- m_pFocusCtrl->GrabFocus();
- return nRet;
-}
-
// functions -------------------------------------------------------------
bool IsMultiPath_Impl( const sal_uInt16 nIndex )