diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 13:01:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 20:56:30 +0200 |
commit | 61d49afadb2badc7572b04c73ee682afde1d2e7b (patch) | |
tree | ab72148a48dc97ef4fcf01218358e5e75b72a835 /include/editeng | |
parent | fac539889e32e5e47ca6b6da0a588abbe4cbe066 (diff) |
loplugin:unusedmethods
Change-Id: Id66cf12e3a59aeed1b9a7a111b841e30b248635b
Reviewed-on: https://gerrit.libreoffice.org/40876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/bulletitem.hxx | 3 | ||||
-rw-r--r-- | include/editeng/colritem.hxx | 1 | ||||
-rw-r--r-- | include/editeng/flditem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/fontitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/fwdtitem.hxx | 84 | ||||
-rw-r--r-- | include/editeng/memberids.h | 4 | ||||
-rw-r--r-- | include/editeng/rsiditem.hxx | 1 |
7 files changed, 0 insertions, 99 deletions
diff --git a/include/editeng/bulletitem.hxx b/include/editeng/bulletitem.hxx index 9fb6b1091bcb..2b3109a4f6ed 100644 --- a/include/editeng/bulletitem.hxx +++ b/include/editeng/bulletitem.hxx @@ -89,9 +89,6 @@ public: MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; - static void StoreFont( SvStream&, const vcl::Font& ); - static vcl::Font CreateFont( SvStream&, sal_uInt16 nVer ); - void CopyValidProperties( const SvxBulletItem& rCopyFrom ); }; diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index dc6979e5c04a..0e4c60702d0c 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -78,7 +78,6 @@ class EDITENG_DLLPUBLIC SvxBackgroundColorItem : public SvxColorItem SvxBackgroundColorItem(const sal_uInt16 nId); SvxBackgroundColorItem(const Color& rCol, const sal_uInt16 nId); - SvxBackgroundColorItem(SvStream& rStrm, const sal_uInt16 nId); SvxBackgroundColorItem(const SvxBackgroundColorItem& rCopy); virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override; diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx index 728a1dddce61..ed1a7edf020e 100644 --- a/include/editeng/flditem.hxx +++ b/include/editeng/flditem.hxx @@ -66,11 +66,7 @@ public: */ class EDITENG_DLLPUBLIC SvxFieldItem : public SfxPoolItem { -private: tools::SvRef<SvxFieldData> mxField; - - EDITENG_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const sal_uInt16 nId ); - public: SvxFieldItem( const SvxFieldData& rField, const sal_uInt16 nId ); SvxFieldItem( const SvxFieldItem& rItem ); diff --git a/include/editeng/fontitem.hxx b/include/editeng/fontitem.hxx index 558239f34f09..ddb974acbea5 100644 --- a/include/editeng/fontitem.hxx +++ b/include/editeng/fontitem.hxx @@ -108,8 +108,6 @@ public: SvxFontItem& operator=(const SvxFontItem& rFont); - static void EnableStoreUnicodeNames(bool bEnable); - void dumpAsXml(struct _xmlTextWriter* pWriter) const override; }; diff --git a/include/editeng/fwdtitem.hxx b/include/editeng/fwdtitem.hxx deleted file mode 100644 index 801d353cc0e7..000000000000 --- a/include/editeng/fwdtitem.hxx +++ /dev/null @@ -1,84 +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_EDITENG_FWDTITEM_HXX -#define INCLUDED_EDITENG_FWDTITEM_HXX - -#include <svl/poolitem.hxx> - - -// class SvxFontWidthItem ----------------------------------------------- - - -/* [Description] - - This item describes the font width. -*/ - -class SvxFontWidthItem : public SfxPoolItem -{ - sal_uInt16 nWidth; // 0 = default - sal_uInt16 nProp; // default 100% -public: - SvxFontWidthItem( const sal_uInt16 nSz /*= 0*/, - const sal_uInt16 nPropWidth /*= 100*/, - const sal_uInt16 nId ); - - // "pure virtual Methods" from SfxPoolItem - virtual bool operator==( const SfxPoolItem& ) const override; - virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; - virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - - virtual bool GetPresentation( SfxItemPresentation ePres, - MapUnit eCoreMetric, - MapUnit ePresMetric, - OUString &rText, const IntlWrapper& ) const override; - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - virtual void ScaleMetrics( long nMult, long nDiv ) override; - virtual bool HasMetrics() const override; - - SvxFontWidthItem& operator=(const SvxFontWidthItem& rItem ) - { - SetWidthValue( rItem.GetWidth() ); - SetProp( rItem.GetProp() ); - return *this; - } - - sal_uInt16 GetWidth() const { return nWidth; } - - void SetWidthValue( sal_uInt16 nNewWidth ) - { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - nWidth = nNewWidth; - } - - void SetProp( const sal_uInt16 nNewProp ) - { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - nProp = nNewProp; - } - - sal_uInt16 GetProp() const { return nProp; } -}; - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/memberids.h b/include/editeng/memberids.h index 611b52620096..d7d0a538ee4d 100644 --- a/include/editeng/memberids.h +++ b/include/editeng/memberids.h @@ -80,10 +80,6 @@ #define MID_ESC_HEIGHT 1 #define MID_AUTO_ESC 2 -//SvxFontWidthItem -#define MID_FONTWIDTH 0 -#define MID_FONTWIDTH_PROP 1 - //SvxFontHeightItem #define MID_FONTHEIGHT 1 #define MID_FONTHEIGHT_PROP 2 diff --git a/include/editeng/rsiditem.hxx b/include/editeng/rsiditem.hxx index 660314b63236..ab1e23a6c618 100644 --- a/include/editeng/rsiditem.hxx +++ b/include/editeng/rsiditem.hxx @@ -20,7 +20,6 @@ class EDITENG_DLLPUBLIC SvxRsidItem : public SfxUInt32Item { public: SvxRsidItem( sal_uInt32 nRsid, sal_uInt16 nId ) : SfxUInt32Item( nId, nRsid ) {} - SvxRsidItem( SvStream& rIn, sal_uInt16 nId ) : SfxUInt32Item( nId, rIn ) {} virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; |