diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-19 13:17:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-19 19:18:51 +0200 |
commit | e2c7a6bd572644b928704f6cb3696b568ac0aba1 (patch) | |
tree | b9f64cf65d77edf2798b03de60d47602ebe95b15 /sd/source/ui/inc/tools | |
parent | fcf776a09a2c5cd692480c8ec4a678e3d04739c9 (diff) |
loplugin::unusedmethods
Change-Id: I6a07860edb13588b83345babeb53675aedc43f7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150607
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/inc/tools')
-rw-r--r-- | sd/source/ui/inc/tools/ConfigurationAccess.hxx | 38 | ||||
-rw-r--r-- | sd/source/ui/inc/tools/PropertySet.hxx | 109 |
2 files changed, 0 insertions, 147 deletions
diff --git a/sd/source/ui/inc/tools/ConfigurationAccess.hxx b/sd/source/ui/inc/tools/ConfigurationAccess.hxx index b86a30fffdab..97b5e92dc041 100644 --- a/sd/source/ui/inc/tools/ConfigurationAccess.hxx +++ b/sd/source/ui/inc/tools/ConfigurationAccess.hxx @@ -54,11 +54,6 @@ public: const OUString& rsRootName, const WriteMode eMode); - ConfigurationAccess( - const css::uno::Reference<css::uno::XComponentContext>& rxContext, - const OUString& rsRootName, - const WriteMode eMode); - /** Return a configuration node below the root of the called object. @param rsPathToNode The relative path from the root (as given the constructor) to @@ -97,39 +92,6 @@ public: const OUString&, const std::vector<css::uno::Any>&) > Functor; - /** Execute a functor for all elements of the given container. - @param rxContainer - The container is a XNameAccess to a list of the configuration. - This can be a node returned by GetConfigurationNode(). - @param rArguments - The functor is called with arguments that are children of each - element of the container. The set of children is specified in this - list. - @param rFunctor - The functor to be executed for some or all of the elements in - the given container. - */ - static void ForAll ( - const css::uno::Reference<css::container::XNameAccess>& rxContainer, - const ::std::vector<OUString>& rArguments, - const Functor& rFunctor); - - /** Fill a list with the string contents of all sub-elements in the given container. - @param rxContainer - The container is a XNameAccess to a list of the configuration. - This can be a node returned by GetConfigurationNode(). - @param rsArgument - This specifies which string children of the elements in the - container are to be inserted into the list. The specified child - has to be of type string. - @param rList - The list to be filled. - */ - static void FillList( - const css::uno::Reference<css::container::XNameAccess>& rxContainer, - const OUString& rsArgument, - ::std::vector<OUString>& rList); - private: css::uno::Reference<css::uno::XInterface> mxRoot; diff --git a/sd/source/ui/inc/tools/PropertySet.hxx b/sd/source/ui/inc/tools/PropertySet.hxx deleted file mode 100644 index 04727be0dbe4..000000000000 --- a/sd/source/ui/inc/tools/PropertySet.hxx +++ /dev/null @@ -1,109 +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 . - */ - -#pragma once - -#include <comphelper/compbase.hxx> -#include <com/sun/star/beans/XPropertySet.hpp> -#include <map> -#include <memory> - -namespace sd::tools { - -typedef ::comphelper::WeakComponentImplHelper < - css::beans::XPropertySet -> PropertySetInterfaceBase; - -/** A very simple implementation of the XPropertySet interface. It does not - support constrained properties and thus does not support vetoable - listeners. It does not support the optional property set info. - - In order to use it you have to derive from this class and implement the - GetPropertyValue() and SetPropertyValue() methods. -*/ -class PropertySet : public PropertySetInterfaceBase -{ -public: - explicit PropertySet(); - virtual ~PropertySet() override; - - // XPropertySet - - virtual css::uno::Reference<css::beans::XPropertySetInfo> - SAL_CALL getPropertySetInfo() override; - - virtual void SAL_CALL setPropertyValue ( - const OUString& rsPropertyName, - const css::uno::Any& rsPropertyValue) override; - - virtual css::uno::Any SAL_CALL getPropertyValue (const OUString& rsPropertyName) override; - - virtual void SAL_CALL addPropertyChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) override; - - virtual void SAL_CALL removePropertyChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) override; - - virtual void SAL_CALL addVetoableChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) override; - - virtual void SAL_CALL removeVetoableChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) override; - -protected: - /** Return the requested property value. - @throw css::beans::UnknownPropertyException when the - property is not supported. - */ - virtual css::uno::Any GetPropertyValue (const OUString& rsPropertyName) = 0; - /** Set the given property value. - @return the old value. - @throw css::beans::UnknownPropertyException when the - property is not supported. - */ - virtual css::uno::Any SetPropertyValue ( - const OUString& rsPropertyName, - const css::uno::Any& rValue) = 0; - -private: - typedef ::std::multimap<OUString, - css::uno::Reference<css::beans::XPropertyChangeListener> > ChangeListenerContainer; - std::unique_ptr<ChangeListenerContainer> mpChangeListeners; - - /** Call all listeners that are registered for the given property name. - Call this method with an empty property name to call listeners that - are registered for all properties. - */ - void CallListeners ( - const OUString& rsPropertyName, - const css::beans::PropertyChangeEvent& rEvent); - - /** @throws css::lang::DisposedException when the object has already been - disposed. - */ - void ThrowIfDisposed(); -}; - -} // end of namespace ::sd::tools - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |