diff options
Diffstat (limited to 'include/sfx2/itemwrapper.hxx')
-rw-r--r-- | include/sfx2/itemwrapper.hxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/include/sfx2/itemwrapper.hxx b/include/sfx2/itemwrapper.hxx deleted file mode 100644 index 193cd012e550..000000000000 --- a/include/sfx2/itemwrapper.hxx +++ /dev/null @@ -1,60 +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_SFX2_ITEMWRAPPER_HXX -#define INCLUDED_SFX2_ITEMWRAPPER_HXX - -#include <sal/config.h> -#include <sfx2/dllapi.h> -#include <svl/eitem.hxx> -#include <svl/intitem.hxx> - -class SfxItemSet; - -namespace sfx { - - -// Helpers - - -class SFX2_DLLPUBLIC ItemWrapperHelper -{ -public: - /** Returns the WID of the passed SID in the item set. */ - static sal_uInt16 GetWhichId( const SfxItemSet& rItemSet, sal_uInt16 nSlot ); - - /** Returns true, if the passed item set supports the SID. */ - static bool IsKnownItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot ); - - /** Returns an item from an item set, if it is not in "don't know" state. - @return Pointer to item, or 0 if it has "don't know" state. */ - static const SfxPoolItem* GetUniqueItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot ); - - /** Returns the default item from the pool of the passed item set. */ - static const SfxPoolItem& GetDefaultItem( const SfxItemSet& rItemSet, sal_uInt16 nSlot ); - - /** Removes an item from rDestSet, if it is default in rOldSet. */ - static void RemoveDefaultItem( SfxItemSet& rDestSet, const SfxItemSet& rOldSet, sal_uInt16 nSlot ); -}; - -} // namespace sfx - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |