Kaydet (Commit) 1b694dad authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: Iaaf9092ec4d6189492906648b84494d087fed81f
Reviewed-on: https://gerrit.libreoffice.org/41539Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst de2ac128
......@@ -28,7 +28,7 @@ chart2/source/view/main/OpenGLRender.hxx:104
int OpenGLRender::RenderSymbol2DShape(float,float,int)
chart2/source/view/main/OpenGLRender.hxx:121
int OpenGLRender::Create2DCircle(int)
connectivity/source/drivers/evoab2/NResultSet.hxx:125
connectivity/source/drivers/evoab2/NResultSet.hxx:123
class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> connectivity::evoab::OEvoabResultSet::operator*()
connectivity/source/drivers/evoab2/NResultSetMetaData.hxx:51
class com::sun::star::uno::Reference<class com::sun::star::sdbc::XResultSetMetaData> connectivity::evoab::OEvoabResultSetMetaData::operator Reference()
......@@ -40,7 +40,9 @@ connectivity/source/inc/OColumn.hxx:133
const class rtl::OUString & connectivity::OColumn::getCatalogName() const
connectivity/source/inc/odbc/OConnection.hxx:82
short connectivity::odbc::OConnection::Construct(const class rtl::OUString &,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> &)
dbaccess/source/ui/browser/genericcontroller.cxx:1266
cppcanvas/source/inc/canvasgraphichelper.hxx:59
const class com::sun::star::uno::Reference<class com::sun::star::rendering::XGraphicDevice> & cppcanvas::internal::CanvasGraphicHelper::getGraphicDevice() const
dbaccess/source/ui/browser/genericcontroller.cxx:1258
const type-parameter-?-? & dbaui::(anonymous namespace)::SGI_identity::operator()(const type-parameter-?-? &) const
i18nlangtag/source/languagetag/languagetag.cxx:275
const class rtl::OUString & LanguageTagImpl::getBcp47() const
......@@ -140,7 +142,7 @@ include/comphelper/unique_disposing_ptr.hxx:45
type-parameter-?-? & comphelper::unique_disposing_ptr::operator*() const
include/connectivity/FValue.hxx:327
unsigned short connectivity::ORowSetValue::operator unsigned short() const
include/editeng/editview.hxx:191
include/editeng/editview.hxx:219
class ErrCode EditView::Read(class SvStream &,enum EETextFormat,class SvKeyValueIterator *)
include/LibreOfficeKit/LibreOfficeKit.hxx:63
struct _LibreOfficeKitDocument * lok::Document::get()
......@@ -246,6 +248,12 @@ include/sax/fshelper.hxx:206
class sax_fastparser::FastSerializerHelper * sax_fastparser::FastSerializerHelper::write(long)
include/sax/fshelper.hxx:209
class sax_fastparser::FastSerializerHelper * sax_fastparser::FastSerializerHelper::writeEscaped(const char *)
include/svl/macitem.hxx:92
class SvStream & SvxMacroTableDtor::Write(class SvStream &) const
include/svl/poolitem.hxx:171
class SvStream & SfxPoolItem::Store(class SvStream &,unsigned short) const
include/svx/framelink.hxx:157
class svx::frame::Style & svx::frame::Style::MirrorSelf()
include/test/sheet/xnamedrange.hxx:22
class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> apitest::XNamedRange::init()
include/test/sheet/xsheetannotation.hxx:36
......@@ -254,6 +262,8 @@ include/test/sheet/xspreadsheets2.hxx:40
class com::sun::star::uno::Reference<class com::sun::star::lang::XComponent> apitest::XSpreadsheets2::getComponent()
include/test/sheet/xstyleloader.hxx:27
class com::sun::star::uno::Reference<class com::sun::star::lang::XComponent> apitest::XStyleLoader::getTargetComponent()
include/test/sheet/xusedareacursor.hxx:25
class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> apitest::XUsedAreaCursor::init()
include/tools/bigint.hxx:114
unsigned short BigInt::operator unsigned short() const
include/tools/bigint.hxx:115
......@@ -266,7 +276,7 @@ include/vcl/fontcharmap.hxx:48
class tools::SvRef<class FontCharMap> FontCharMap::GetDefaultMap(_Bool)
include/vcl/gdimtf.hxx:185
class SvStream & GDIMetaFile::Read(class SvStream &)
include/vcl/graphicfilter.hxx:259
include/vcl/graphicfilter.hxx:258
class ErrCode GraphicFilter::ExportGraphic(const class Graphic &,const class INetURLObject &,unsigned short,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> *)
include/vcl/menu.hxx:460
unsigned short MenuBar::AddMenuBarButton(const class Image &,const class Link<struct MenuBar::MenuBarButtonCallbackArg &, _Bool> &,const class rtl::OUString &)
......@@ -280,9 +290,9 @@ sc/source/core/opencl/formulagroupcl.cxx:968
unsigned long sc::opencl::DynamicKernelSlidingArgument::GenReductionLoopHeader(class std::basic_stringstream<char> &,_Bool &)
sc/source/core/opencl/formulagroupcl.cxx:1413
unsigned long sc::opencl::ParallelReductionVectorRef::GenReductionLoopHeader(class std::basic_stringstream<char> &,int,_Bool &)
sc/source/core/tool/scmatrix.cxx:2213
sc/source/core/tool/scmatrix.cxx:2217
type-parameter-?-? * wrapped_iterator::operator->() const
sc/source/core/tool/scmatrix.cxx:3179
sc/source/core/tool/scmatrix.cxx:3183
const class svl::SharedString & matop::COp::operator()(char,type-parameter-?-?,double,double,const class svl::SharedString &) const
sc/source/ui/vba/vbaformat.hxx:69
class com::sun::star::uno::Any ScVbaFormat::getAddIndent()
......@@ -316,7 +326,7 @@ sc/source/ui/vba/vbaformat.hxx:145
class com::sun::star::uno::Any ScVbaFormat::getMergeCells()
sc/source/ui/vba/vbaformat.hxx:151
class com::sun::star::uno::Any ScVbaFormat::getReadingOrder()
sd/source/filter/eppt/pptx-epptooxml.cxx:126
sd/source/filter/eppt/pptx-epptooxml.cxx:131
class oox::drawingml::ShapeExport & oox::core::PowerPointShapeExport::WritePageShape(const class com::sun::star::uno::Reference<class com::sun::star::drawing::XShape> &,enum PageType,_Bool)
sd/source/ui/inc/OutlineViewShell.hxx:114
class ErrCode sd::OutlineViewShell::ReadRtf(class SvStream &)
......@@ -328,7 +338,7 @@ sw/inc/calc.hxx:112
class SwSbxValue & SwSbxValue::MakeDouble()
sw/inc/editsh.hxx:617
const class GraphicAttr * SwEditShell::GetGraphicAttr(class GraphicAttr &) const
sw/source/uibase/inc/fldmgr.hxx:114
sw/source/uibase/inc/fldmgr.hxx:113
const class com::sun::star::uno::Reference<class com::sun::star::text::XNumberingTypeInfo> & SwFieldMgr::GetNumberingInfo() const
vcl/inc/PhysicalFontFace.hxx:79
int PhysicalFontFace::GetWidth() const
......
......@@ -821,13 +821,6 @@ OUString SvxExtFileField::GetFormatted() const
SV_IMPL_PERSIST1( SvxAuthorField );
SvxAuthorField::SvxAuthorField()
{
eType = SVXAUTHORTYPE_VAR;
eFormat = SVXAUTHORFORMAT_FULLNAME;
}
SvxAuthorField::SvxAuthorField( const OUString& rFirstName,
const OUString& rLastName,
const OUString& rShortName,
......
......@@ -345,7 +345,6 @@ private:
public:
SV_DECL_PERSIST1( SvxAuthorField, css::text::textfield::Type::AUTHOR )
SvxAuthorField();
SvxAuthorField(
const OUString& rFirstName,
const OUString& rLastName,
......
......@@ -41,7 +41,6 @@ class EDITENG_DLLPUBLIC SdrMeasureField: public SvxFieldData {
SdrMeasureFieldKind eMeasureFieldKind;
public:
SV_DECL_PERSIST1(SdrMeasureField, css::text::textfield::Type::MEASURE)
SdrMeasureField(): eMeasureFieldKind(SDRMEASUREFIELD_VALUE) {}
SdrMeasureField(SdrMeasureFieldKind eNewKind): eMeasureFieldKind(eNewKind) {}
virtual ~SdrMeasureField() override;
virtual SvxFieldData* Clone() const override;
......
......@@ -43,203 +43,6 @@ namespace CodecHelper
}
/** Encodes and decodes data from/to protected MS Office documents.
Implements a simple XOR encoding/decoding algorithm used in MS Excel Office
versions up to MSO 95.
*/
class OOX_DLLPUBLIC BinaryCodec_XOR
{
public:
/** Default constructor.
Two-step construction in conjunction with the initKey() and verifyKey()
functions allows to try to initialize with different passwords (e.g.
built-in default password used for Excel workbook protection).
*/
explicit BinaryCodec_XOR();
~BinaryCodec_XOR();
/** Initializes the algorithm with the specified password.
@param pnPassData
Character array containing the password. Must be zero terminated,
which results in a maximum length of 15 characters.
*/
void initKey( const sal_uInt8 pnPassData[ 16 ] );
/** Initializes the algorithm with the encryption data.
@param aData
The sequence contains the necessary data to initialize
the codec.
*/
bool initCodec( const css::uno::Sequence< css::beans::NamedValue >& aData );
/** Retrieves the encryption data
@return
The sequence contains the necessary data to initialize
the codec.
*/
css::uno::Sequence< css::beans::NamedValue > getEncryptionData();
/** Verifies the validity of the password using the passed key and hash.
@precond
The codec must be initialized with the initKey() function before
this function can be used.
@param nKey
Password key value read from the file.
@param nHash
Password hash value read from the file.
@return
True = test was successful.
*/
bool verifyKey( sal_uInt16 nKey, sal_uInt16 nHash ) const;
/** Lets the cipher skip a specific amount of bytes.
This function sets the cipher to the same state as if the specified
amount of data has been decoded with one or more calls of decode().
@precond
The codec must be initialized with the initKey() function before
this function can be used.
@param nBytes
Number of bytes to be skipped (cipher "seeks" forward).
@return
True = skip was successful (no error occurred).
*/
bool skip( sal_Int32 nBytes );
private:
sal_uInt8 mpnKey[ 16 ]; ///< Encryption key.
sal_Int32 mnOffset; ///< Key offset.
sal_uInt16 mnBaseKey; ///< Base key from password.
sal_uInt16 mnHash; ///< Hash value from password.
};
/** Encodes and decodes data from protected MSO 97+ documents.
This is a wrapper class around low level cryptographic functions from RTL.
Implementation is based on the wvDecrypt package by Caolan McNamara:
http://www.csn.ul.ie/~caolan/docs/wvDecrypt.html
*/
class OOX_DLLPUBLIC BinaryCodec_RCF
{
public:
/** Default constructor.
Two-step construction in conjunction with the initKey() and verifyKey()
functions allows to try to initialize with different passwords (e.g.
built-in default password used for Excel workbook protection).
*/
explicit BinaryCodec_RCF();
~BinaryCodec_RCF();
/** Initializes the algorithm with the encryption data.
@param aData
The sequence contains the necessary data to initialize
the codec.
*/
bool initCodec( const css::uno::Sequence< css::beans::NamedValue >& aData );
/** Retrieves the encryption data
@return
The sequence contains the necessary data to initialize
the codec.
*/
css::uno::Sequence< css::beans::NamedValue > getEncryptionData();
/** Initializes the algorithm with the specified password and document ID.
@param pnPassData
Unicode character array containing the password. Must be zero
terminated, which results in a maximum length of 15 characters.
@param pnSalt
Random salt data block read from or written to the file.
*/
void initKey(
const sal_uInt16 pnPassData[ 16 ],
const sal_uInt8 pnSalt[ 16 ] );
/** Verifies the validity of the password using the passed salt data.
@precond
The codec must be initialized with the initKey() function before
this function can be used.
@param pnVerifier
Verifier block read from the file.
@param pnVerifierHash
Verifier hash read from the file.
@return
True = test was successful.
*/
bool verifyKey(
const sal_uInt8 pnVerifier[ 16 ],
const sal_uInt8 pnVerifierHash[ 16 ] );
/** Rekeys the codec using the specified counter.
After reading a specific amount of data the cipher algorithm needs to
be rekeyed using a counter that counts the data blocks.
The block size is for example 512 bytes for MS Word files and 1024
bytes for MS Excel files.
@precond
The codec must be initialized with the initKey() function before
this function can be used.
@param nCounter
Block counter used to rekey the cipher.
*/
bool startBlock( sal_Int32 nCounter );
/** Decodes a block of memory.
@see rtl_cipher_decode()
@precond
The codec must be initialized with the initKey() function before
this function can be used.
@param pnDestData
Destination buffer. Will contain the decrypted data afterwards.
@param pnSrcData
Encrypted data block.
@param nBytes
Size of the passed data blocks. pnDestData and pnSrcData must be of
this size.
@return
True = decoding was successful (no error occurred).
*/
bool decode(
sal_uInt8* pnDestData,
const sal_uInt8* pnSrcData,
sal_Int32 nBytes );
private:
rtlCipher mhCipher;
rtlDigest mhDigest;
sal_uInt8 mpnDigestValue[ RTL_DIGEST_LENGTH_MD5 ];
sal_uInt8 mpnUnique[16];
};
} // namespace core
} // namespace oox
......
......@@ -217,16 +217,10 @@ enum INetContentType
class SVL_DLLPUBLIC INetContentTypes
{
public:
static INetContentType RegisterContentType(OUString const & rTypeName,
OUString const & rPresentation,
OUString const * pExtension = nullptr);
static INetContentType GetContentType(OUString const & rTypeName);
static OUString GetContentType(INetContentType eTypeID);
static OUString GetPresentation(INetContentType eTypeID);
static INetContentType GetContentType4Extension(OUString const & rExtension);
static INetContentType GetContentTypeFromURL(OUString const & rURL);
......
......@@ -83,7 +83,6 @@ protected:
static inline void ClearRefCount(SfxPoolItem& rItem);
static inline void AddRef(const SfxPoolItem& rItem, sal_uInt32 n = 1);
static inline sal_uInt32 ReleaseRef(const SfxPoolItem& rItem, sal_uInt32 n = 1);
static inline void SetKind( SfxPoolItem& rItem, SfxItemKind nRef );
public:
SfxItemPool( const SfxItemPool &rPool,
......@@ -206,11 +205,6 @@ inline sal_uInt32 SfxItemPool::ReleaseRef(const SfxPoolItem& rItem, sal_uInt32 n
return rItem.ReleaseRef(n);
}
inline void SfxItemPool::SetKind( SfxPoolItem& rItem, SfxItemKind nRef )
{
rItem.SetKind( nRef );
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -93,11 +93,6 @@ public:
static sal_uInt16 GetVersion() { return SVX_MACROTBL_AKTVERSION; }
SvxMacroTable::iterator begin() { return aSvxMacroTable.begin(); }
SvxMacroTable::const_iterator begin() const { return aSvxMacroTable.begin(); }
SvxMacroTable::iterator end() { return aSvxMacroTable.end(); }
SvxMacroTable::const_iterator end () const { return aSvxMacroTable.end(); }
SvxMacroTable::size_type size() const { return aSvxMacroTable.size(); }
bool empty() const { return aSvxMacroTable.empty(); }
// returns NULL if no entry exists, or a pointer to the internal value
......
......@@ -26,7 +26,6 @@ class SVL_DLLPUBLIC SfxMetricItem: public SfxInt32Item
{
public:
explicit SfxMetricItem( sal_uInt16 nWhich, sal_uInt32 nValue );
SfxMetricItem( sal_uInt16 nWhich, SvStream & );
SfxMetricItem( const SfxMetricItem& );
virtual void ScaleMetrics( long lMult, long lDiv ) override;
......
......@@ -186,7 +186,6 @@ private:
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
SVT_DLLPRIVATE static void ImplGetWeekFont( vcl::Font& rFont );
SVT_DLLPRIVATE void ImplFormat();
using Window::ImplHitTest;
SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, Date& rDate ) const;
......@@ -234,9 +233,6 @@ public:
void Select();
void SelectDate( const Date& rDate, bool bSelect = true );
void SetNoSelection();
bool IsDateSelected( const Date& rDate ) const;
Date GetFirstSelectedDate() const;
void EnableCallEverySelect() { mbAllSel = true; }
......
......@@ -773,7 +773,6 @@ public:
void SetMargin2() { SetMargin2( 0, RulerMarginStyle::Invisible ); }
void SetMargin2( long nPos, RulerMarginStyle nMarginStyle = RulerMarginStyle::Sizeable );
long GetMargin2() const;
long GetPageWidth() const;
void SetLeftFrameMargin( long nPos );
void SetRightFrameMargin( long nPos );
......
......@@ -172,13 +172,12 @@ class SVX_DLLPUBLIC EnhancedCustomShape2d : public SfxItemSet
SAL_DLLPRIVATE bool IsFlipVert() { return bFlipV; };
SAL_DLLPRIVATE bool IsFlipHorz() { return bFlipH; };
SAL_DLLPRIVATE sal_Int32 GetRotateAngle() { return nRotateAngle; };
bool IsPostRotate() const;
SdrObject* CreateLineGeometry();
SdrObject* CreateObject( bool bLineGeometryNeededOnly );
void ApplyGluePoints( SdrObject* pObj );
tools::Rectangle GetTextRect() const;
const tools::Rectangle& GetLogicRect() const { return aLogicRect; }
tools::Rectangle GetTextRect() const;
const tools::Rectangle& GetLogicRect() const { return aLogicRect; }
sal_uInt32 GetHdlCount() const;
bool GetHandlePosition( const sal_uInt32 nIndex, Point& rReturnPosition ) const;
......
......@@ -155,8 +155,6 @@ public:
/** Mirrors this style (exchanges primary and secondary), if it is a double frame style. */
Style& MirrorSelf();
/** Returns this style mirrored, if it is a double frame style, otherwise a simple copy. */
Style Mirror() const;
/** return the Cell using this style (if set) */
const Cell* GetUsingCell() const { return mpUsingCell; }
......@@ -185,7 +183,6 @@ bool operator==( const Style& rL, const Style& rR );
SVX_DLLPUBLIC bool operator<( const Style& rL, const Style& rR );
inline bool operator>( const Style& rL, const Style& rR ) { return rR < rL; }
inline bool operator<=( const Style& rL, const Style& rR ) { return !(rR < rL); }
/** Extends the Style struct with an angle for diagonal frame borders.
......@@ -198,18 +195,10 @@ class SAL_WARN_UNUSED DiagStyle : public Style
{
public:
/** Constructs an invisible diagonal frame style. */
explicit DiagStyle() : mfAngle( 0.0 ) {}
explicit DiagStyle() {}
/** Constructs a diagonal frame style passed style and angle. */
explicit DiagStyle( const Style& rStyle, double fAngle ) :
Style( rStyle ), mfAngle( fAngle ) {}
double GetAngle() const { return mfAngle; }
/** Returns this style mirrored, if it is a double frame style, otherwise a simple copy. */
DiagStyle Mirror() const { return DiagStyle( Style::Mirror(), mfAngle ); }
private:
double mfAngle; /// Angle between this and hor. or vert. border.
explicit DiagStyle( const Style& rStyle, double /*fAngle*/ ) :
Style( rStyle ) {}
};
......@@ -224,33 +213,6 @@ private:
*/
SVX_DLLPUBLIC double GetHorDiagAngle( long nWidth, long nHeight );
/** Returns the angle between horizontal border of a rectangle and its diagonal.
The returned values represents the inner angle between the diagonals and
horizontal borders, and is therefore in the range [0,PI/2] (inclusive).
*/
inline double GetHorDiagAngle( const tools::Rectangle& rRect )
{ return GetHorDiagAngle( rRect.GetWidth(), rRect.GetHeight() ); }
/** Returns the angle between vertical border of a rectangle and its diagonal.
The returned values represents the inner angle between the diagonals and
vertical borders, and is therefore in the range [0,PI/2] (inclusive). The
passed sizes may be negative, calculation is done with absolute values.
*/
inline double GetVerDiagAngle( long nWidth, long nHeight )
{ return GetHorDiagAngle( nHeight, nWidth ); }
/** Returns the angle between vertical border of a rectangle and its diagonal.
The returned values represents the inner angle between the diagonals and
vertical borders, and is therefore in the range [0,PI/2] (inclusive).
*/
inline double GetVerDiagAngle( const tools::Rectangle& rRect )
{ return GetVerDiagAngle( rRect.GetWidth(), rRect.GetHeight() ); }
/** Returns an X coordinate for a diagonal frame border in the specified height.
This function is for usage with the top-left end of a top-left to
......
......@@ -227,12 +227,6 @@ public:
/** Returns true, if the cell (nCol,nRow) is part of a merged range. */
bool IsMerged( size_t nCol, size_t nRow ) const;
/** Returns true, if the left border of the cell (nCol,nRow) is overlapped by a merged range. */
bool IsMergedOverlappedLeft( size_t nCol, size_t nRow ) const;
/** Returns true, if the right border of the cell (nCol,nRow) is overlapped by a merged range. */
bool IsMergedOverlappedRight( size_t nCol, size_t nRow ) const;
/** Returns the address of the top-left cell of the merged range that contains (nCol,nRow). */
void GetMergedOrigin( size_t& rnFirstCol, size_t& rnFirstRow, size_t nCol, size_t nRow ) const;
......
......@@ -72,7 +72,6 @@ public:
virtual int LastInView() const override;
virtual void SelectIndex( int index, bool bFocus = false ) override;
void AppendCharToList(sal_UCS4 cChar);
void AppendCharList(std::vector<sal_UCS4> cCharList);
void ClearPreviousData();
virtual sal_Int32 getMaxCharCount() const override;
......
......@@ -41,8 +41,6 @@ class SVX_DLLPUBLIC XFillBitmapItem : public NameOrIndex
private:
GraphicObject maGraphicObject;
GraphicObject makeGraphicObject(SvStream& rIn, sal_uInt16 nVer) const;
public:
static SfxPoolItem* CreateDefault();
XFillBitmapItem() : NameOrIndex(XATTR_FILLBITMAP, -1 ) {}
......
......@@ -20,7 +20,6 @@
#define INCLUDED_TOOLS_PSTM_HXX
#include <tools/toolsdllapi.h>
#include <tools/unqidx.hxx>
#include <tools/ref.hxx>
#include <tools/stream.hxx>
#include <map>
......
......@@ -196,9 +196,6 @@ protected:
std::size_t CryptAndWriteBuffer( const void* pStart, std::size_t nLen );
bool EncryptBuffer( void* pStart, std::size_t nLen );
void SyncSvStream( std::size_t nNewStreamPos ); ///< SvStream <- Medium
void SyncSysStream(); ///< SvStream -> Medium
public:
SvStream();
SvStream( SvLockBytes *pLockBytes);
......
/* -*- 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_TOOLS_UNQIDX_HXX
#define INCLUDED_TOOLS_UNQIDX_HXX
#include <sal/types.h>
#include <tools/toolsdllapi.h>
#include <o3tl/strong_int.hxx>
#include <map>
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC UniqueIndexImpl
{
public:
struct IndexTagType {};
typedef o3tl::strong_int<sal_uInt32, IndexTagType> Index;
static Index const IndexNotFound;// = Index(SAL_MAX_UINT32);
private:
std::map<Index, void*> maMap;
Index nUniqIndex;
public:
UniqueIndexImpl( Index nStartIndex = Index(0) )
: maMap(), nUniqIndex(nStartIndex) {}
Index Insert( void* p );
// insert value with key, replacing existing entry if necessary
void* Get( Index aIndex ) const;
};
template<typename T>
class SAL_WARN_UNUSED UniqueIndex : private UniqueIndexImpl
{
public:
using UniqueIndexImpl::Index;
using UniqueIndexImpl::IndexNotFound;
UniqueIndex<T>( Index _nStartIndex = Index(0) ) : UniqueIndexImpl(_nStartIndex) {}
Index Insert(T* p) { return UniqueIndexImpl::Insert(p); }
T* Get(Index idx) const { return static_cast<T*>( UniqueIndexImpl::Get(idx) ); }
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -70,7 +70,6 @@ public:
void setValue( sal_Int16 nFieldIndex, sal_Int16 nValue );
bool isValid() const;
sal_Int16 getValue( sal_Int16 nFieldIndex ) const;
void addValue( sal_Int16 nFieldIndex, sal_Int32 nAmount );
sal_Int16 getFirstDayOfWeek() const;
sal_Int16 getNumberOfMonthsInYear() const;
sal_Int16 getNumberOfDaysInWeek() const;
......
......@@ -88,9 +88,6 @@ public:
bool GetCheckBoxState() const;
virtual Size GetOptimalSize() const override;
void SetMessBoxStyle(MessBoxStyle n) { mnMessBoxStyle = n; }
MessBoxStyle GetMessBoxStyle() { return mnMessBoxStyle; }
};
class VCL_DLLPUBLIC InfoBox : public MessBox
......
......@@ -293,7 +293,6 @@ public:
tools::Rectangle PaMtoEditCursor( const TextPaM& rPaM, bool bSpecial = false );
OUString GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord = nullptr );
bool HasAttrib( sal_uInt16 nWhich ) const;
const TextAttrib* FindAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const;
const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const;
......
This diff is collapsed.
......@@ -245,9 +245,6 @@ public:
void SetLeftArea( const EditTextObject& rNew );
void SetCenterArea( const EditTextObject& rNew );
void SetRightArea( const EditTextObject& rNew );
// Set method with pointer assignment, nArea see defines above
void SetArea( EditTextObject *pNew, int nArea );
};
// page format item: contents of header and footer
......
......@@ -648,18 +648,6 @@ void ScPageHFItem::SetRightArea( const EditTextObject& rNew )
pRightArea = rNew.Clone();
}
void ScPageHFItem::SetArea( EditTextObject *pNew, int nArea )
{
switch ( nArea )
{
case SC_HF_LEFTAREA: delete pLeftArea; pLeftArea = pNew; break;
case SC_HF_CENTERAREA: delete pCenterArea; pCenterArea = pNew; break;
case SC_HF_RIGHTAREA: delete pRightArea; pRightArea = pNew; break;
default:
OSL_FAIL( "New Area?" );
}
}
/**
* ScViewObjectModeItem - Display Mode of View Objects
*/
......
......@@ -153,11 +153,6 @@ SfxMetricItem::SfxMetricItem(sal_uInt16 which, sal_uInt32 nValue):
{
}
SfxMetricItem::SfxMetricItem(sal_uInt16 which, SvStream & rStream):
SfxInt32Item(which, rStream)
{
}
SfxMetricItem::SfxMetricItem(const SfxMetricItem & rItem):
SfxInt32Item(rItem)
{
......
This diff is collapsed.
......@@ -48,8 +48,6 @@
#define SPIN_OFFX 4
#define SPIN_OFFY TITLE_BORDERY
#define WEEKNUMBER_HEIGHT 85
#define CALENDAR_HITTEST_DAY ((sal_uInt16)0x0001)
#define CALENDAR_HITTEST_MONTHTITLE ((sal_uInt16)0x0004)
#define CALENDAR_HITTEST_PREV ((sal_uInt16)0x0008)
......@@ -69,11 +67,6 @@ static void ImplCalendarSelectDate( IntDateSet* pTable, const Date& rDate, bool
inline void ImplCalendarClearSelectDate( IntDateSet* pTable )
{
pTable->clear();
}
void Calendar::ImplInit( WinBits nWinStyle )
{
mpSelectTable = new IntDateSet;
......@@ -219,16 +212,6 @@ DayOfWeek Calendar::ImplGetWeekStart() const
return eDay;
}