loplugin:mergedclasses
Change-Id: I3eb2de4edcd4b2d757d1e0916e7c903b5d6c569e
This commit is contained in:
@@ -163,7 +163,6 @@ merge dbp::OModuleResourceClient with dbp::OUnoAutoPilot
|
||||
merge dbtools::ISQLStatementHelper with connectivity::mysql::OTables
|
||||
merge formula::ExternalReferenceHelper with ScExternalRefManager
|
||||
merge formula::IStructHelper with formula::StructPage
|
||||
merge framework::IStorageListener with framework::XMLBasedAcceleratorConfiguration
|
||||
merge frm::IAttributeHandler with frm::AttributeHandler
|
||||
merge frm::ICommandDescriptionProvider with frm::DefaultCommandDescriptionProvider
|
||||
merge frm::ICommandImageProvider with frm::DocumentCommandImageProvider
|
||||
|
@@ -387,7 +387,7 @@ void SAL_CALL XMLBasedAcceleratorConfiguration::removeResetListener(const css::u
|
||||
}
|
||||
|
||||
// IStorageListener
|
||||
void XMLBasedAcceleratorConfiguration::changesOccurred(const OUString& /*sPath*/)
|
||||
void XMLBasedAcceleratorConfiguration::changesOccurred()
|
||||
{
|
||||
reload();
|
||||
}
|
||||
|
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include <accelerators/acceleratorconfiguration.hxx>
|
||||
#include <accelerators/istoragelistener.hxx>
|
||||
#include <accelerators/presethandler.hxx>
|
||||
|
||||
#include <xml/acceleratorconfigurationreader.hxx>
|
||||
|
@@ -632,7 +632,7 @@ void PresetHandler::commitUserChanges()
|
||||
}
|
||||
}
|
||||
|
||||
void PresetHandler::addStorageListener(IStorageListener* pListener)
|
||||
void PresetHandler::addStorageListener(XMLBasedAcceleratorConfiguration* pListener)
|
||||
{
|
||||
OUString sRelPath;
|
||||
EConfigType eCfgType;
|
||||
@@ -662,7 +662,7 @@ void PresetHandler::addStorageListener(IStorageListener* pListener)
|
||||
}
|
||||
}
|
||||
|
||||
void PresetHandler::removeStorageListener(IStorageListener* pListener)
|
||||
void PresetHandler::removeStorageListener(XMLBasedAcceleratorConfiguration* pListener)
|
||||
{
|
||||
OUString sRelPath;
|
||||
EConfigType eCfgType;
|
||||
|
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <accelerators/storageholder.hxx>
|
||||
#include <accelerators/acceleratorconfiguration.hxx>
|
||||
|
||||
#include <services.h>
|
||||
|
||||
@@ -284,13 +285,13 @@ void StorageHolder::notifyPath(const OUString& sPath)
|
||||
pIt2 != rInfo.Listener.end();
|
||||
++pIt2 )
|
||||
{
|
||||
IStorageListener* pListener = *pIt2;
|
||||
XMLBasedAcceleratorConfiguration* pListener = *pIt2;
|
||||
if (pListener)
|
||||
pListener->changesOccurred(sNormedPath);
|
||||
pListener->changesOccurred();
|
||||
}
|
||||
}
|
||||
|
||||
void StorageHolder::addStorageListener( IStorageListener* pListener,
|
||||
void StorageHolder::addStorageListener( XMLBasedAcceleratorConfiguration* pListener,
|
||||
const OUString& sPath )
|
||||
{
|
||||
OUString sNormedPath = StorageHolder::impl_st_normPath(sPath);
|
||||
@@ -307,7 +308,7 @@ void StorageHolder::addStorageListener( IStorageListener* pListener,
|
||||
rInfo.Listener.push_back(pListener);
|
||||
}
|
||||
|
||||
void StorageHolder::removeStorageListener( IStorageListener* pListener,
|
||||
void StorageHolder::removeStorageListener( XMLBasedAcceleratorConfiguration* pListener,
|
||||
const OUString& sPath )
|
||||
{
|
||||
OUString sNormedPath = StorageHolder::impl_st_normPath(sPath);
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCONFIGURATION_HXX
|
||||
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCONFIGURATION_HXX
|
||||
|
||||
#include <accelerators/istoragelistener.hxx>
|
||||
#include <accelerators/presethandler.hxx>
|
||||
#include <accelerators/acceleratorcache.hxx>
|
||||
#include <accelerators/keymapping.hxx>
|
||||
@@ -61,8 +60,7 @@ const char CFG_ENTRY_MODULES[] = "Modules";
|
||||
/**
|
||||
implements a read/write access to the accelerator configuration.
|
||||
*/
|
||||
class XMLBasedAcceleratorConfiguration : public IStorageListener,
|
||||
public ::cppu::WeakImplHelper<
|
||||
class XMLBasedAcceleratorConfiguration : public ::cppu::WeakImplHelper<
|
||||
css::form::XReset, // TODO use XPresetHandler instead if available
|
||||
css::ui::XAcceleratorConfiguration > // => css::ui::XUIConfigurationPersistence
|
||||
// css::ui::XUIConfigurationStorage
|
||||
@@ -176,8 +174,8 @@ class XMLBasedAcceleratorConfiguration : public IStorageListener,
|
||||
virtual void SAL_CALL removeResetListener(const css::uno::Reference< css::form::XResetListener >& xListener)
|
||||
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
// IStorageListener
|
||||
virtual void changesOccurred(const OUString& sPath) SAL_OVERRIDE;
|
||||
// called when changes occurred in the storage
|
||||
void changesOccurred();
|
||||
|
||||
// helper for derived classes
|
||||
|
||||
|
@@ -1,49 +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_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
|
||||
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
|
||||
|
||||
#include <general.h>
|
||||
#include <stdtypes.h>
|
||||
|
||||
// definition
|
||||
|
||||
namespace framework
|
||||
{
|
||||
|
||||
/**
|
||||
TODO document me
|
||||
*/
|
||||
class IStorageListener
|
||||
{
|
||||
public:
|
||||
|
||||
/** @short TODO */
|
||||
virtual void changesOccurred(const OUString& sPath) = 0;
|
||||
|
||||
protected:
|
||||
~IStorageListener() {}
|
||||
};
|
||||
|
||||
} // namespace framework
|
||||
|
||||
#endif // INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ISTORAGELISTENER_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
@@ -355,8 +355,8 @@ class PresetHandler
|
||||
void commitUserChanges();
|
||||
|
||||
/** TODO */
|
||||
void addStorageListener(IStorageListener* pListener);
|
||||
void removeStorageListener(IStorageListener* pListener);
|
||||
void addStorageListener(XMLBasedAcceleratorConfiguration* pListener);
|
||||
void removeStorageListener(XMLBasedAcceleratorConfiguration* pListener);
|
||||
|
||||
// helper
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_STORAGEHOLDER_HXX
|
||||
#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_STORAGEHOLDER_HXX
|
||||
|
||||
#include <accelerators/istoragelistener.hxx>
|
||||
#include <general.h>
|
||||
#include <stdtypes.h>
|
||||
|
||||
@@ -29,6 +28,7 @@
|
||||
namespace framework
|
||||
{
|
||||
|
||||
class XMLBasedAcceleratorConfiguration;
|
||||
/**
|
||||
TODO document me
|
||||
*/
|
||||
@@ -41,7 +41,7 @@ class StorageHolder
|
||||
/** @short TODO */
|
||||
typedef ::std::vector< css::uno::Reference< css::embed::XStorage > > TStorageList;
|
||||
|
||||
typedef ::std::vector< IStorageListener* > TStorageListenerList;
|
||||
typedef ::std::vector< XMLBasedAcceleratorConfiguration* > TStorageListenerList;
|
||||
|
||||
struct TStorageInfo
|
||||
{
|
||||
@@ -118,12 +118,12 @@ class StorageHolder
|
||||
|
||||
/** @short TODO
|
||||
*/
|
||||
void addStorageListener( IStorageListener* pListener,
|
||||
void addStorageListener( XMLBasedAcceleratorConfiguration* pListener,
|
||||
const OUString& sPath );
|
||||
|
||||
/** @short TODO
|
||||
*/
|
||||
void removeStorageListener( IStorageListener* pListener,
|
||||
void removeStorageListener( XMLBasedAcceleratorConfiguration* pListener,
|
||||
const OUString& sPath );
|
||||
|
||||
/** @short TODO
|
||||
|
Reference in New Issue
Block a user