diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-16 10:11:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 10:03:44 +0000 |
commit | 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch) | |
tree | 66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /include | |
parent | 4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff) |
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
66 files changed, 7 insertions, 540 deletions
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx index 4cc57fa27eff..ef07a74e75bc 100644 --- a/include/basic/sbxcore.hxx +++ b/include/basic/sbxcore.hxx @@ -80,7 +80,6 @@ public: virtual void Clear(); static SbxBase* Load( SvStream& ); - static void Skip( SvStream& ); bool Store( SvStream& ); virtual bool LoadCompleted(); diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx index 13178fa188bc..a0800cf40e04 100644 --- a/include/basic/sbxvar.hxx +++ b/include/basic/sbxvar.hxx @@ -69,21 +69,7 @@ struct SbxValues SbxValues(): pData( nullptr ), eType(SbxEMPTY) {} SbxValues( SbxDataType e ): eType(e) {} - SbxValues( char _nChar ): nChar( _nChar ), eType(SbxCHAR) {} - SbxValues( sal_uInt8 _nByte ): nByte( _nByte ), eType(SbxBYTE) {} - SbxValues( short _nInteger ): nInteger( _nInteger ), eType(SbxINTEGER ) {} - SbxValues( long _nLong ): nLong( _nLong ), eType(SbxLONG) {} - SbxValues( sal_uInt16 _nUShort ): nUShort( _nUShort ), eType(SbxUSHORT) {} - SbxValues( sal_uIntPtr _nULong ): nULong( _nULong ), eType(SbxULONG) {} - SbxValues( int _nInt ): nInt( _nInt ), eType(SbxINT) {} - SbxValues( unsigned int _nUInt ): nUInt( _nUInt ), eType(SbxUINT) {} - SbxValues( float _nSingle ): nSingle( _nSingle ), eType(SbxSINGLE) {} SbxValues( double _nDouble ): nDouble( _nDouble ), eType(SbxDOUBLE) {} - SbxValues( const OUString* _pString ): pOUString( const_cast<OUString*>(_pString) ), eType(SbxSTRING) {} - SbxValues( SbxBase* _pObj ): pObj( _pObj ), eType(SbxOBJECT) {} - SbxValues( sal_Unicode* _pChar ): pChar( _pChar ), eType(SbxLPSTR) {} - SbxValues( void* _pData ): pData( _pData ), eType(SbxPOINTER) {} - }; class BASIC_DLLPUBLIC SbxValue : public SbxBase diff --git a/include/comphelper/anycompare.hxx b/include/comphelper/anycompare.hxx index 5be23c9082cf..c115658c145c 100644 --- a/include/comphelper/anycompare.hxx +++ b/include/comphelper/anycompare.hxx @@ -61,9 +61,6 @@ namespace comphelper private: IKeyPredicateLess const & m_predicate; - - private: - LessPredicateAdapter(); // never implemented }; diff --git a/include/comphelper/componentmodule.hxx b/include/comphelper/componentmodule.hxx index 4c0f8a3e4742..235705564c08 100644 --- a/include/comphelper/componentmodule.hxx +++ b/include/comphelper/componentmodule.hxx @@ -60,14 +60,6 @@ namespace comphelper /// the function to create a factory for the component (usually <code>::cppu::createSingleComponentFactory</code>) FactoryInstantiation pFactoryCreationFunc; - ComponentDescription() - :sImplementationName() - ,aSupportedServices() - ,pComponentCreationFunc( nullptr ) - ,pFactoryCreationFunc( nullptr ) - { - } - ComponentDescription( const OUString& _rImplementationName, const css::uno::Sequence< OUString >& _rSupportedServices, diff --git a/include/comphelper/embeddedobjectcontainer.hxx b/include/comphelper/embeddedobjectcontainer.hxx index 27992e1b4002..52dfac39c83f 100644 --- a/include/comphelper/embeddedobjectcontainer.hxx +++ b/include/comphelper/embeddedobjectcontainer.hxx @@ -144,7 +144,6 @@ public: bool MoveEmbeddedObject( const OUString& rName, EmbeddedObjectContainer& ); // get the stored representation for the object - css::uno::Reference < css::io::XInputStream > GetObjectStream( const css::uno::Reference < css::embed::XEmbeddedObject >& ); css::uno::Reference < css::io::XInputStream > GetObjectStream( const OUString& aName, OUString* pMediaType ); // get the stored graphical representation for the object diff --git a/include/comphelper/interaction.hxx b/include/comphelper/interaction.hxx index 85bf5e966a08..0dc42980786c 100644 --- a/include/comphelper/interaction.hxx +++ b/include/comphelper/interaction.hxx @@ -90,10 +90,6 @@ namespace comphelper class COMPHELPER_DLLPUBLIC OInteractionPassword : public OInteraction< css::task::XInteractionPassword > { public: - OInteractionPassword() - { - } - OInteractionPassword( const OUString& _rInitialPassword ) :m_sPassword( _rInitialPassword ) { diff --git a/include/comphelper/servicedecl.hxx b/include/comphelper/servicedecl.hxx index 077d38e714f4..5fece98d9e25 100644 --- a/include/comphelper/servicedecl.hxx +++ b/include/comphelper/servicedecl.hxx @@ -207,10 +207,6 @@ public: css::uno::Sequence<css::uno::Any> const& args, css::uno::Reference<css::uno::XComponentContext> const& xContext ) : ServiceImpl_BASE(rServiceDecl, args, xContext) {} - InheritingServiceImpl( - ServiceDecl const& rServiceDecl, - css::uno::Reference<css::uno::XComponentContext> const& xContext ) - : ServiceImpl_BASE(rServiceDecl, xContext) {} }; template <typename ServiceImplT> diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index a25989c21fe4..21933c7100b5 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -519,7 +519,6 @@ namespace connectivity { ::std::vector<sal_Int32> m_nParameterIndexes; public: - OAssignValues() : m_nParameterIndexes(1,SQL_NO_PARAMETER){} OAssignValues(Vector::size_type n) : OValueRefVector(n),m_nParameterIndexes(n+1,SQL_NO_PARAMETER){} void setParameterIndex(sal_Int32 _nId,sal_Int32 _nParameterIndex) { m_nParameterIndexes[_nId] = _nParameterIndex;} diff --git a/include/connectivity/TTableHelper.hxx b/include/connectivity/TTableHelper.hxx index 2c37d370d91f..3e56f9c34c36 100644 --- a/include/connectivity/TTableHelper.hxx +++ b/include/connectivity/TTableHelper.hxx @@ -49,7 +49,6 @@ namespace connectivity OrdinalPosition nOrdinalPosition; - ColumnDesc() {} ColumnDesc( const OUString& _rName , sal_Int32 _nField5 , const OUString& _aField6 diff --git a/include/connectivity/parameters.hxx b/include/connectivity/parameters.hxx index 476a8c2ca5f6..7a101df72893 100644 --- a/include/connectivity/parameters.hxx +++ b/include/connectivity/parameters.hxx @@ -80,12 +80,6 @@ namespace dbtools /// the indices of inner parameters which need to be filled when this concrete parameter is set ::std::vector< sal_Int32 > aInnerIndexes; - /// default ctor - ParameterMetaData() - :eType( ParameterClassification::FilledExternally ) - { - } - /// ctor with composer column ParameterMetaData( const css::uno::Reference< css::beans::XPropertySet >& _rxColumn ) :eType ( ParameterClassification::FilledExternally ) diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx index 2fc981ef51e7..5e9b792275f2 100644 --- a/include/dbaccess/genericcontroller.hxx +++ b/include/dbaccess/genericcontroller.hxx @@ -228,7 +228,6 @@ namespace dbaui css::util::URL aURL; css::uno::Reference< css::frame::XStatusListener > xListener; - DispatchTarget() { } DispatchTarget(const css::util::URL& rURL, const css::uno::Reference< css::frame::XStatusListener >& rRef) : aURL(rURL), xListener(rRef) { } }; diff --git a/include/drawinglayer/attribute/fillgraphicattribute.hxx b/include/drawinglayer/attribute/fillgraphicattribute.hxx index fc1b8029f9d6..87304c6cd71a 100644 --- a/include/drawinglayer/attribute/fillgraphicattribute.hxx +++ b/include/drawinglayer/attribute/fillgraphicattribute.hxx @@ -56,7 +56,6 @@ namespace drawinglayer bool bTiling = false, double fOffsetX = 0.0, double fOffsetY = 0.0); - FillGraphicAttribute(); FillGraphicAttribute(const FillGraphicAttribute& rCandidate); FillGraphicAttribute& operator=(const FillGraphicAttribute& rCandidate); ~FillGraphicAttribute(); diff --git a/include/drawinglayer/attribute/fontattribute.hxx b/include/drawinglayer/attribute/fontattribute.hxx index 82c183f6a486..1b35189a6993 100644 --- a/include/drawinglayer/attribute/fontattribute.hxx +++ b/include/drawinglayer/attribute/fontattribute.hxx @@ -71,9 +71,6 @@ namespace drawinglayer FontAttribute& operator=(const FontAttribute& rCandidate); ~FontAttribute(); - // checks if the incarnation is default constructed - bool isDefault() const; - // compare operator bool operator==(const FontAttribute& rCandidate) const; diff --git a/include/drawinglayer/attribute/materialattribute3d.hxx b/include/drawinglayer/attribute/materialattribute3d.hxx index e5d3f68bef55..db144b7a030a 100644 --- a/include/drawinglayer/attribute/materialattribute3d.hxx +++ b/include/drawinglayer/attribute/materialattribute3d.hxx @@ -59,9 +59,6 @@ namespace drawinglayer MaterialAttribute3D(const MaterialAttribute3D& rCandidate); ~MaterialAttribute3D(); - // checks if the incarnation is default constructed - bool isDefault() const; - // assignment operator MaterialAttribute3D& operator=(const MaterialAttribute3D& rCandidate); diff --git a/include/drawinglayer/attribute/sdrlightattribute3d.hxx b/include/drawinglayer/attribute/sdrlightattribute3d.hxx index 49b9685b6177..3d91e54d7189 100644 --- a/include/drawinglayer/attribute/sdrlightattribute3d.hxx +++ b/include/drawinglayer/attribute/sdrlightattribute3d.hxx @@ -54,17 +54,12 @@ namespace drawinglayer const basegfx::BColor& rColor, const basegfx::B3DVector& rDirection, bool bSpecular); - explicit Sdr3DLightAttribute(const basegfx::BColor& rColor); Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate); - Sdr3DLightAttribute(); ~Sdr3DLightAttribute(); // assignment operator Sdr3DLightAttribute& operator=(const Sdr3DLightAttribute& rCandidate); - // checks if the incarnation is default constructed - bool isDefault() const; - // compare operator bool operator==(const Sdr3DLightAttribute& rCandidate) const; diff --git a/include/drawinglayer/attribute/sdrobjectattribute3d.hxx b/include/drawinglayer/attribute/sdrobjectattribute3d.hxx index 85019eff89b5..b4ea75bfbf87 100644 --- a/include/drawinglayer/attribute/sdrobjectattribute3d.hxx +++ b/include/drawinglayer/attribute/sdrobjectattribute3d.hxx @@ -64,15 +64,11 @@ namespace drawinglayer bool bTextureFilter, bool bReducedLineGeometry); Sdr3DObjectAttribute(const Sdr3DObjectAttribute& rCandidate); - Sdr3DObjectAttribute(); ~Sdr3DObjectAttribute(); // assignment operator Sdr3DObjectAttribute& operator=(const Sdr3DObjectAttribute& rCandidate); - // checks if the incarnation is default constructed - bool isDefault() const; - // compare operator bool operator==(const Sdr3DObjectAttribute& rCandidate) const; diff --git a/include/drawinglayer/primitive3d/baseprimitive3d.hxx b/include/drawinglayer/primitive3d/baseprimitive3d.hxx index 9cc610a52dcf..0fa964e7b91a 100644 --- a/include/drawinglayer/primitive3d/baseprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/baseprimitive3d.hxx @@ -60,7 +60,6 @@ namespace drawinglayer { namespace primitive3d { explicit Primitive3DContainer( size_type count ) : vector(count) {} Primitive3DContainer( const Primitive3DContainer& other ) : vector(other) {} Primitive3DContainer( const Primitive3DContainer&& other ) : vector(other) {} - Primitive3DContainer( const vector< Primitive3DReference >& other ) : vector(other) {} Primitive3DContainer( std::initializer_list<Primitive3DReference> init ) : vector(init) {} void append(const Primitive3DContainer& rSource); diff --git a/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx b/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx index bd30c33cca38..e9199c4d8087 100644 --- a/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx +++ b/include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx @@ -64,14 +64,6 @@ namespace drawinglayer maPolyPolygon.transform(aTransform); } - explicit Slice3D( - const basegfx::B3DPolyPolygon& rPolyPolygon, - SliceType3D aSliceType = SLICETYPE3D_REGULAR) - : maPolyPolygon(rPolyPolygon), - maSliceType(aSliceType) - { - } - // data access const basegfx::B3DPolyPolygon& getB3DPolyPolygon() const { return maPolyPolygon; } SliceType3D getSliceType() const { return maSliceType; } diff --git a/include/editeng/AccessibleParaManager.hxx b/include/editeng/AccessibleParaManager.hxx index bc20b3769052..af4687581f06 100644 --- a/include/editeng/AccessibleParaManager.hxx +++ b/include/editeng/AccessibleParaManager.hxx @@ -52,11 +52,6 @@ namespace accessibility typedef CppType InterfaceType; WeakCppRef() : maWeakRef(), maUnsafeRef( nullptr ) {} - WeakCppRef( InterfaceType& rImpl ) : - maWeakRef( css::uno::Reference< UnoInterfaceType >( rImpl, css::uno::UNO_QUERY ) ), - maUnsafeRef( &rImpl ) - { - } WeakCppRef(rtl::Reference<InterfaceType> const & rImpl): maWeakRef(rImpl.get()), diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx index a8fa5a6e85c2..27141dfda504 100644 --- a/include/editeng/overflowingtxt.hxx +++ b/include/editeng/overflowingtxt.hxx @@ -87,7 +87,6 @@ public: bool IsLastParaInterrupted() const; private: - NonOverflowingText(const EditTextObject *pTObj, bool bLastParaInterrupted); NonOverflowingText(const ESelection &aSel, bool bLastParaInterrupted); friend class Outliner; diff --git a/include/editeng/txtrange.hxx b/include/editeng/txtrange.hxx index 43a4a4d17d5b..0e959e706fdf 100644 --- a/include/editeng/txtrange.hxx +++ b/include/editeng/txtrange.hxx @@ -74,7 +74,6 @@ public: bool IsSimple() const { return bSimple; } bool IsInner() const { return bInner; } bool IsVertical() const { return bVertical; } - const tools::PolyPolygon& GetPolyPolygon() const { return *mpPolyPolygon; } const Rectangle& GetBoundRect() { return pBound ? static_cast< const Rectangle& >(*pBound) : GetBoundRect_(); } void SetUpper( sal_uInt16 nNew ){ nUpper = nNew; } diff --git a/include/editeng/unoedhlp.hxx b/include/editeng/unoedhlp.hxx index ba352af7f2a4..c58393f6b806 100644 --- a/include/editeng/unoedhlp.hxx +++ b/include/editeng/unoedhlp.hxx @@ -57,8 +57,6 @@ class SvxEditSourceHintEndPara :public SvxEditSourceHint public: SvxEditSourceHintEndPara( sal_uInt32 nId ) :SvxEditSourceHint(nId) {} - SvxEditSourceHintEndPara( sal_uInt32 nId, sal_uInt32 nValue, sal_uInt32 nStart=0, sal_uInt32 nEnd=0 ) - :SvxEditSourceHint(nId,nValue,nStart){ (void)nEnd; } }; /** Helper class for common functionality in edit sources */ diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index f870789992e7..ab4cedf4c607 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -995,7 +995,6 @@ class InteractionInfo { bool mbHasInteraction; std::unique_ptr<SvMemoryStream> mpHyperlinkRecord; - InteractionInfo(); public: InteractionInfo( SvMemoryStream* pStream, bool bInteraction ) : mbHasInteraction( bInteraction ) diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx index 3b594d01b1b4..f848f6b2c57c 100644 --- a/include/filter/msfilter/msdffimp.hxx +++ b/include/filter/msfilter/msdffimp.hxx @@ -277,8 +277,6 @@ struct SvxMSDffImportData Rectangle aParentRect;///< Rectangle of the surrounding groups, ///< which might have been provided externally - SvxMSDffImportData() - {} explicit SvxMSDffImportData( const Rectangle& rParentRect ) : aParentRect( rParentRect ) {} bool empty() const { return m_Records.empty(); } size_t size() const { return m_Records.size(); } diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx index 6774c6cc675a..a1ff72c4205b 100644 --- a/include/filter/msfilter/mstoolbar.hxx +++ b/include/filter/msfilter/mstoolbar.hxx @@ -206,7 +206,6 @@ class TBCComboDropdownSpecific : public TBBase std::shared_ptr< TBCCDData > data; public: TBCComboDropdownSpecific( const TBCHeader& header ); - TBCComboDropdownSpecific(){} bool Read(SvStream &rS) override; #if OSL_DEBUG_LEVEL > 1 virtual void Print( FILE* ) override; diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index d342f5f055f0..38ab5b2ff633 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -1234,7 +1234,6 @@ class MSFILTER_DLLPUBLIC PPTTextObj ImplPPTTextObj* mpImplTextObj; void ImplClear(); - PPTTextObj(){}; public: PPTTextObj( SvStream& rSt, diff --git a/include/formula/token.hxx b/include/formula/token.hxx index 9c21ca753255..3d265f63441b 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -394,22 +394,6 @@ public: }; -class FORMULA_DLLPUBLIC FormulaSubroutineToken : public FormulaToken -{ -public: - /** Takes ownership of pArray and deletes it upon destruction! */ - FormulaSubroutineToken( const FormulaTokenArray* pArray ) : - FormulaToken( svSubroutine, ocCall ), mpArray( pArray) {} - FormulaSubroutineToken( const FormulaSubroutineToken& r ); - virtual ~FormulaSubroutineToken(); - virtual FormulaToken* Clone() const override { return new FormulaSubroutineToken(*this); } - virtual bool operator==( const FormulaToken& rToken ) const override; - -private: - const FormulaTokenArray* mpArray; -}; - - class FORMULA_DLLPUBLIC FormulaUnknownToken : public FormulaToken { public: diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index c432b7bbe519..e11b09eac1e9 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -157,8 +157,8 @@ class LNG_DLLPUBLIC PropertyHelper_Thesaurus css::uno::Reference< css::beans::XPropertyChangeListener > xPropHelper; // disallow use of copy-constructor and assignment-operator - PropertyHelper_Thesaurus( const PropertyHelper_Thes & ); - PropertyHelper_Thesaurus & operator = ( const PropertyHelper_Thes & ); + PropertyHelper_Thesaurus( const PropertyHelper_Thes & ) = delete; + PropertyHelper_Thesaurus & operator = ( const PropertyHelper_Thes & ) = delete; public: PropertyHelper_Thesaurus( @@ -222,8 +222,8 @@ class LNG_DLLPUBLIC PropertyHelper_Spelling css::uno::Reference< css::beans::XPropertyChangeListener > xPropHelper; // disallow use of copy-constructor and assignment-operator - PropertyHelper_Spelling( const PropertyHelper_Spell & ); - PropertyHelper_Spelling & operator = ( const PropertyHelper_Spell & ); + PropertyHelper_Spelling( const PropertyHelper_Spell & ) = delete; + PropertyHelper_Spelling & operator = ( const PropertyHelper_Spell & ) = delete; public: PropertyHelper_Spelling( @@ -293,8 +293,8 @@ class LNG_DLLPUBLIC PropertyHelper_Hyphenation css::uno::Reference< css::beans::XPropertyChangeListener > xPropHelper; // disallow use of copy-constructor and assignment-operator - PropertyHelper_Hyphenation( const PropertyHelper_Hyphen & ); - PropertyHelper_Hyphenation & operator = ( const PropertyHelper_Hyphen & ); + PropertyHelper_Hyphenation( const PropertyHelper_Hyphen & ) = delete; + PropertyHelper_Hyphenation & operator = ( const PropertyHelper_Hyphen & ) = delete; public: PropertyHelper_Hyphenation( diff --git a/include/linguistic/spelldta.hxx b/include/linguistic/spelldta.hxx index 2e3e6c08aadc..d390de24784a 100644 --- a/include/linguistic/spelldta.hxx +++ b/include/linguistic/spelldta.hxx @@ -48,10 +48,6 @@ void SeqRemoveNegEntries( css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &rxDicList, sal_Int16 nLanguage ); -bool SeqHasEntry( - const css::uno::Sequence< OUString > &rSeq, - const OUString &rTxt); - void SearchSimilarText( const OUString &rText, sal_Int16 nLanguage, css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &xDicList, std::vector< OUString > & rDicListProps ); diff --git a/include/oox/crypto/CryptTools.hxx b/include/oox/crypto/CryptTools.hxx index 23e48c29d86b..d963be2719c4 100644 --- a/include/oox/crypto/CryptTools.hxx +++ b/include/oox/crypto/CryptTools.hxx @@ -87,7 +87,6 @@ public: class Decrypt : public Crypto { public: - Decrypt(std::vector<sal_uInt8>& key, CryptoType type); Decrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type); virtual sal_uInt32 update( @@ -106,7 +105,6 @@ public: class Encrypt : public Crypto { public: - Encrypt(std::vector<sal_uInt8>& key, CryptoType type); Encrypt(std::vector<sal_uInt8>& key, std::vector<sal_uInt8>& iv, CryptoType type); virtual sal_uInt32 update( diff --git a/include/oox/drawingml/drawingmltypes.hxx b/include/oox/drawingml/drawingmltypes.hxx index fef050ff189d..2aac13c669a7 100644 --- a/include/oox/drawingml/drawingmltypes.hxx +++ b/include/oox/drawingml/drawingmltypes.hxx @@ -193,7 +193,6 @@ struct EmuSize struct EmuRectangle : public EmuPoint, public EmuSize { EmuRectangle() {} - explicit EmuRectangle( const EmuPoint& rPos, const EmuSize& rSize ) : EmuPoint( rPos ), EmuSize( rSize ) {} explicit EmuRectangle( sal_Int64 nX, sal_Int64 nY, sal_Int64 nWidth, sal_Int64 nHeight ) : EmuPoint( nX, nY ), EmuSize( nWidth, nHeight ) {} void setPos( const EmuPoint& rPos ) { static_cast< EmuPoint& >( *this ) = rPos; } diff --git a/include/registry/reader.hxx b/include/registry/reader.hxx index 6d3deb8f63d5..0b2be13fbc30 100644 --- a/include/registry/reader.hxx +++ b/include/registry/reader.hxx @@ -43,11 +43,6 @@ namespace typereg { class Reader { public: /** - Creates an invalid type reader. - */ - Reader(): m_handle(nullptr) {} - - /** Creates a type reader. <p>If the given binary blob is malformed, or of a version larger than diff --git a/include/sax/tools/documenthandleradapter.hxx b/include/sax/tools/documenthandleradapter.hxx index 9f8f89861e48..25e91a6fde62 100644 --- a/include/sax/tools/documenthandleradapter.hxx +++ b/include/sax/tools/documenthandleradapter.hxx @@ -80,7 +80,6 @@ namespace sax { m_handler->setDocumentLocator(xLocator); } - DocumentHandlerAdapter(const css::uno::Reference< css::xml::sax::XDocumentHandler >& delegate); DocumentHandlerAdapter() : m_handler(css::uno::Reference< css::xml::sax::XDocumentHandler > (nullptr, css::uno::UNO_QUERY)) { @@ -204,11 +203,6 @@ namespace sax m_handler(css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > (nullptr, css::uno::UNO_QUERY)) { } - ExtendedDocumentHandlerAdapter( - const css::uno::Reference< css::xml::sax::XExtendedDocumentHandler >& delegate) : - m_handler(delegate) - { - } void SAL_CALL setDelegate(const css::uno::Reference< css::xml::sax::XExtendedDocumentHandler >& delegate) diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx index bd7e52e055dc..4978bc732377 100644 --- a/include/sfx2/app.hxx +++ b/include/sfx2/app.hxx @@ -192,7 +192,6 @@ public: SAL_DLLPRIVATE void RegisterToolBoxControl_Impl( SfxModule*, const SfxTbxCtrlFactory&); SAL_DLLPRIVATE SfxTbxCtrlFactArr_Impl& GetTbxCtrlFactories_Impl() const; SAL_DLLPRIVATE SfxStbCtrlFactArr_Impl& GetStbCtrlFactories_Impl() const; - SAL_DLLPRIVATE SfxMenuCtrlFactArr_Impl& GetMenuCtrlFactories_Impl() const; SAL_DLLPRIVATE SfxChildWinFactArr_Impl& GetChildWinFactories_Impl() const; SAL_DLLPRIVATE SfxViewFrameArr_Impl& GetViewFrames_Impl() const; SAL_DLLPRIVATE SfxViewShellArr_Impl& GetViewShells_Impl() const; diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index b31d4e553165..9d88ea25b52a 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -202,7 +202,6 @@ public: SAL_DLLPRIVATE void InvalidateUnoControllers_Impl(); SAL_DLLPRIVATE void RegisterUnoController_Impl( SfxUnoControllerItem* ); SAL_DLLPRIVATE void ReleaseUnoController_Impl( SfxUnoControllerItem* ); - SAL_DLLPRIVATE bool ExecuteCommand_Impl( const OUString& rCommand ); SAL_DLLPRIVATE void SetRecorder_Impl( css::uno::Reference< css::frame::XDispatchRecorder >& ); SAL_DLLPRIVATE void InvalidateSlotsInMap_Impl(); SAL_DLLPRIVATE void AddSlotToInvalidateSlotsMap_Impl( sal_uInt16 nId ); diff --git a/include/sfx2/ctrlitem.hxx b/include/sfx2/ctrlitem.hxx index 45c4fcc45578..f94a59f99bd5 100644 --- a/include/sfx2/ctrlitem.hxx +++ b/include/sfx2/ctrlitem.hxx @@ -38,11 +38,6 @@ private: SfxControllerItem* pNext; // to notify next ControllerItem SfxBindings* pBindings; -protected: -#if defined( DBG_UTIL ) - SAL_DLLPRIVATE void CheckConfigure_Impl( SfxSlotMode nType ); -#endif - public: SfxBindings & GetBindings() { DBG_ASSERT(pBindings, "no Bindings"); @@ -63,7 +58,6 @@ public: void ReBind(); bool IsBound() const; void ClearCache(); - void SetBindings(SfxBindings &rBindings) { pBindings = &rBindings; } SfxControllerItem* GetItemLink(); SfxControllerItem* ChangeItemLink( SfxControllerItem* pNewLink ); @@ -78,8 +72,6 @@ public: static SfxItemState GetItemState( const SfxPoolItem* pState ); - SAL_DLLPRIVATE bool IsBindable_Impl() const - { return pBindings != nullptr; } SAL_DLLPRIVATE void BindInternal_Impl( sal_uInt16 nNewId, SfxBindings* ); }; diff --git a/include/sfx2/dinfedt.hxx b/include/sfx2/dinfedt.hxx deleted file mode 100644 index 2908565f8f88..000000000000 --- a/include/sfx2/dinfedt.hxx +++ /dev/null @@ -1,40 +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_DINFEDT_HXX -#define INCLUDED_SFX2_DINFEDT_HXX - -#include <vcl/button.hxx> -#include <vcl/dialog.hxx> -#include <vcl/edit.hxx> -#include <vcl/fixed.hxx> - -// class InfoEdit_Impl --------------------------------------------------- - -class InfoEdit_Impl : public Edit -{ -public: - InfoEdit_Impl( vcl::Window* pParent, const ResId& rResId ) : - Edit( pParent, rResId ) {} - - virtual void KeyInput( const KeyEvent& rKEvent ) override; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/dockwin.hxx b/include/sfx2/dockwin.hxx index 110745f94a05..2b83ccead17f 100644 --- a/include/sfx2/dockwin.hxx +++ b/include/sfx2/dockwin.hxx @@ -77,10 +77,6 @@ public: SfxDockingWindow( SfxBindings *pBindings, SfxChildWindow *pCW, vcl::Window* pParent, - const ResId& rResId); - SfxDockingWindow( SfxBindings *pBindings, - SfxChildWindow *pCW, - vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription ); virtual ~SfxDockingWindow(); virtual void dispose() override; diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx index d7a783411c8f..aded0de15b47 100644 --- a/include/sfx2/fcontnr.hxx +++ b/include/sfx2/fcontnr.hxx @@ -41,18 +41,6 @@ class SfxFilterContainer_Impl; class SfxFrame; -class SfxRefItem : public SfxPoolItem -{ - tools::SvRef<SvRefBase> maRef; -public: - SfxRefItem( sal_uInt16 nWhichId, const tools::SvRef<SvRefBase>& rValue ) : SfxPoolItem( nWhichId ) - { maRef = rValue; } - virtual SfxPoolItem* Clone( SfxItemPool* = nullptr ) const override - { return new SfxRefItem( *this ); } - virtual bool operator==( const SfxPoolItem& rL) const override - { return static_cast<const SfxRefItem&>(rL).maRef == maRef; } -}; - typedef sal_uIntPtr (*SfxDetectFilter)( SfxMedium& rMedium, const SfxFilter **, SfxFilterFlags nMust, SfxFilterFlags nDont ); class SFX2_DLLPUBLIC SfxFilterContainer diff --git a/include/sfx2/frmdescr.hxx b/include/sfx2/frmdescr.hxx index df96ceeab04d..633ac8b94fd0 100644 --- a/include/sfx2/frmdescr.hxx +++ b/include/sfx2/frmdescr.hxx @@ -186,34 +186,6 @@ public: SfxFrameProperties& operator =( const SfxFrameProperties &rProp ); }; -class SfxFrameDescriptorItem : public SfxPoolItem -{ - SfxFrameProperties aProperties; -public: - - SfxFrameDescriptorItem ( const sal_uInt16 nId = SID_FRAMEDESCRIPTOR ) - : SfxPoolItem( nId ) - {} - - SfxFrameDescriptorItem( const SfxFrameDescriptorItem& rCpy ) - : SfxPoolItem( rCpy ) - { - aProperties = rCpy.aProperties; - } - - virtual ~SfxFrameDescriptorItem(); - - virtual bool operator ==( const SfxPoolItem& ) const override; - SfxFrameDescriptorItem& operator =( const SfxFrameDescriptorItem & ); - - virtual bool GetPresentation( SfxItemPresentation ePres, - SfxMapUnit eCoreMetric, - SfxMapUnit ePresMetric, - OUString &rText, const IntlWrapper * = nullptr ) const override; - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; -}; - #endif // INCLUDED_SFX2_FRMDESCR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/module.hxx b/include/sfx2/module.hxx index b3fcf3d972ff..6e10d7cd029b 100644 --- a/include/sfx2/module.hxx +++ b/include/sfx2/module.hxx @@ -100,7 +100,6 @@ public: SAL_DLLPRIVATE static void DestroyModules_Impl(); SAL_DLLPRIVATE SfxTbxCtrlFactArr_Impl* GetTbxCtrlFactories_Impl() const; SAL_DLLPRIVATE SfxStbCtrlFactArr_Impl* GetStbCtrlFactories_Impl() const; - SAL_DLLPRIVATE SfxMenuCtrlFactArr_Impl* GetMenuCtrlFactories_Impl() const; SAL_DLLPRIVATE SfxChildWinFactArr_Impl* GetChildWinFactories_Impl() const; SAL_DLLPRIVATE ImageList* GetImageList_Impl( bool bBig ); }; diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx index a6999076e269..9e30197d312f 100644 --- a/include/sfx2/objface.hxx +++ b/include/sfx2/objface.hxx @@ -79,9 +79,7 @@ public: sal_uInt32 GetChildWindowFeature( sal_uInt16 nNo ) const; sal_uInt32 GetChildWindowId( sal_uInt16 nNo ) const; sal_uInt16 GetChildWindowCount() const; - void RegisterPopupMenu( const ResId& ); void RegisterPopupMenu( const OUString& ); - const ResId& GetPopupMenuResId() const; const OUString& GetPopupMenuName() const; sal_uInt32 GetStatusBarId() const; diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index bcdbad4dcf14..24b1d82862f9 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -811,10 +811,6 @@ public: SfxPoolItem( 0 ), pObjSh( nullptr ) {} - SfxObjectShellItem( SfxObjectShell *pObjShell ): - SfxPoolItem( 0 ), - pObjSh( pObjShell ) - {} SfxObjectShellItem( sal_uInt16 nWhichId, SfxObjectShell *pObjShell ): SfxPoolItem( nWhichId ), diff --git a/include/sfx2/sidebar/ControllerItem.hxx b/include/sfx2/sidebar/ControllerItem.hxx index 2c31f8be3481..7a52de26bae3 100644 --- a/include/sfx2/sidebar/ControllerItem.hxx +++ b/include/sfx2/sidebar/ControllerItem.hxx @@ -103,12 +103,6 @@ public: */ Image GetIcon() const; - /** Convenience method for setting all relevant properties for the - slot/command represented by the called object at the given tool - box. - */ - void SetupToolBoxItem (ToolBox& rToolBox, const sal_uInt16 nIndex); - /** Do not call. Used by local class only. Should be a member of a local and hidden interface. */ diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx index 571242ae284c..b77a4ca316b2 100644 --- a/include/sfx2/tbxctrl.hxx +++ b/include/sfx2/tbxctrl.hxx @@ -239,53 +239,6 @@ public: Class::CreateImpl, typeid(nItemClass), nSlotId ) ); } -class SfxDragButton_Impl : public FixedImage -{ -public: - - SfxDragButton_Impl( vcl::Window *pParent ); - virtual void Command ( const CommandEvent& rCEvt ) override; - virtual void MouseMove( const MouseEvent& rMEvt ) override; - virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; -}; - -class SfxDragToolBoxControl_Impl : public SfxToolBoxControl -{ -public: - SfxDragToolBoxControl_Impl( sal_uInt16 nId, ToolBox& rBox ); - virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override; - virtual void Select(sal_uInt16 nSelectModifier) override; -}; - - -class SfxReloadToolBoxControl_Impl : public SfxToolBoxControl -{ -protected: - virtual void Select(sal_uInt16 nSelectModifier ) override; - -public: - SfxReloadToolBoxControl_Impl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox ); -}; - -class SfxPopupMenuManager; -class SfxAddonsToolBoxControl_Impl : public SfxToolBoxControl - -/* [Description] - - Internal helper class to provide the addons popup menu through the addons - toolbox button. -*/ - -{ -protected: - virtual void Click() override; - virtual void Select(sal_uInt16 nSelectModifier) override; - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; -public: - SfxAddonsToolBoxControl_Impl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox ); - virtual ~SfxAddonsToolBoxControl_Impl(); -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/unoctitm.hxx b/include/sfx2/unoctitm.hxx index 863f880d5f0b..1eab7de7dfeb 100644 --- a/include/sfx2/unoctitm.hxx +++ b/include/sfx2/unoctitm.hxx @@ -61,7 +61,6 @@ public: // Something else virtual void SAL_CALL disposing(const css::lang::EventObject& Source) throw( css::uno::RuntimeException, std::exception ) override; - void UnBind(); void GetNewDispatch(); void ReleaseDispatch(); void ReleaseBindings(); diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 06a1b785f621..25f0a39ac755 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -47,7 +47,6 @@ public: SotStorageStream( const OUString &, StreamMode = STREAM_STD_READWRITE ); SotStorageStream( BaseStorageStream *pStm ); - SotStorageStream(); virtual void ResetError() override; @@ -85,7 +84,6 @@ public: SotStorage( SvStream & rStm ); SotStorage( bool bUCBStorage, SvStream & rStm ); SotStorage( SvStream * pStm, bool bDelete ); - SotStorage(); SvMemoryStream * CreateMemoryStream(); diff --git a/include/sot/storinfo.hxx b/include/sot/storinfo.hxx index 0286be1445d5..004101d8c22c 100644 --- a/include/sot/storinfo.hxx +++ b/include/sot/storinfo.hxx @@ -35,7 +35,6 @@ friend class SotStorage; bool bStream; bool bStorage; - SvStorageInfo(){}; // Fuer SotStorage public: SvStorageInfo( const StgDirEntry& ); SvStorageInfo( const OUString& rName, sal_uLong nSz, bool bIsStorage ) diff --git a/include/store/store.hxx b/include/store/store.hxx index 5800169bb70b..1aa19b58825f 100644 --- a/include/store/store.hxx +++ b/include/store/store.hxx @@ -72,15 +72,6 @@ public: return *this; } - /** Construction from Stream Handle. - */ - inline explicit OStoreStream (storeStreamHandle Handle) - : m_hImpl (Handle) - { - if (m_hImpl) - (void) store_acquireHandle (m_hImpl); - } - /** Open the stream. @see store_openStream() */ @@ -177,15 +168,6 @@ public: return *this; } - /** Construction from Directory Handle. - */ - inline explicit OStoreDirectory (storeDirectoryHandle Handle) - : m_hImpl (Handle) - { - if (m_hImpl) - (void) store_acquireHandle (m_hImpl); - } - /** Open the directory. @see store_openDirectory() */ @@ -280,15 +262,6 @@ public: return *this; } - /** Construction from File Handle. - */ - inline explicit OStoreFile (storeFileHandle Handle) - : m_hImpl (Handle) - { - if (m_hImpl) - (void) store_acquireHandle (m_hImpl); - } - /** Conversion into File Handle. */ inline operator storeFileHandle() const diff --git a/include/svl/ctypeitm.hxx b/include/svl/ctypeitm.hxx index 746da66655fe..3f2a712ff79a 100644 --- a/include/svl/ctypeitm.hxx +++ b/include/svl/ctypeitm.hxx @@ -31,7 +31,6 @@ private: public: - CntContentTypeItem(); CntContentTypeItem( sal_uInt16 nWhich, const OUString& rType ); CntContentTypeItem( const CntContentTypeItem& rOrig ); diff --git a/include/svl/nranges.hxx b/include/svl/nranges.hxx index d80c3377681d..373086b33708 100644 --- a/include/svl/nranges.hxx +++ b/include/svl/nranges.hxx @@ -31,7 +31,6 @@ class SfxUShortRanges sal_uInt16* _pRanges; // 0-terminated array of sal_uInt16-pairs public: - SfxUShortRanges() : _pRanges( nullptr ) {} SfxUShortRanges( const SfxUShortRanges &rOrig ); SfxUShortRanges( sal_uInt16 nWhich1, sal_uInt16 nWhich2 ); SfxUShortRanges( const sal_uInt16* nNumTable ); @@ -42,7 +41,6 @@ public: SfxUShortRanges& operator += ( const SfxUShortRanges & ); - sal_uInt16 Count() const; bool IsEmpty() const { return !_pRanges || 0 == *_pRanges; } diff --git a/include/svl/ondemand.hxx b/include/svl/ondemand.hxx index cfc729b9b518..a7d183fc928a 100644 --- a/include/svl/ondemand.hxx +++ b/include/svl/ondemand.hxx @@ -74,18 +74,6 @@ public: pCurrent = pSystem = aSysLocale.GetLocaleDataPtr(); eCurrentLanguage = LANGUAGE_SYSTEM; } - OnDemandLocaleDataWrapper( - const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const LanguageTag& rLanguageTag - ) - : pEnglish(nullptr) - , pAny(nullptr) - , pCurrent(nullptr) - , bInitialized(false) - { - pSystem = aSysLocale.GetLocaleDataPtr(); - init( rxContext, rLanguageTag ); - } ~OnDemandLocaleDataWrapper() { delete pEnglish; @@ -160,15 +148,6 @@ public: , bValid(false) , bInitialized(false) {} - OnDemandCalendarWrapper( - const css::uno::Reference< css::uno::XComponentContext >& rxContext, - css::lang::Locale& rLocale - ) - : bValid(false) - , bInitialized(false) - { - init( rxContext, rLocale ); - } ~OnDemandCalendarWrapper() { delete pPtr; @@ -231,16 +210,6 @@ public: , bValid(false) , bInitialized(false) {} - OnDemandTransliterationWrapper( - const css::uno::Reference< css::uno::XComponentContext >& rxContext, - LanguageType eLang, - css::i18n::TransliterationModules nTypeP - ) - : bValid(false) - , bInitialized(false) - { - init( rxContext, eLang, nTypeP ); - } ~OnDemandTransliterationWrapper() { delete pPtr; @@ -304,14 +273,6 @@ public: : pPtr(nullptr) , bInitialized(false) {} - OnDemandNativeNumberWrapper( - const css::uno::Reference< css::uno::XComponentContext >& rxContext - ) - : pPtr(nullptr) - , bInitialized(false) - { - init( rxContext ); - } ~OnDemandNativeNumberWrapper() { delete pPtr; diff --git a/include/svl/ownlist.hxx b/include/svl/ownlist.hxx index 1a47f1a01fe8..6a29f993f62d 100644 --- a/include/svl/ownlist.hxx +++ b/include/svl/ownlist.hxx @@ -41,7 +41,6 @@ class SvCommand OUString aCommand; OUString aArgument; public: - SvCommand() {} SvCommand( const OUString & rCommand, const OUString & rArg ) { aCommand = rCommand; diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 5d7e4235d6bc..f1f47a3bae30 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -253,7 +253,6 @@ class SVL_DLLPUBLIC SfxVoidItem final: public SfxPoolItem public: static SfxPoolItem* CreateDefault(); explicit SfxVoidItem( sal_uInt16 nWhich ); - SfxVoidItem( sal_uInt16 nWhich, SvStream & ); SfxVoidItem( const SfxVoidItem& ); virtual ~SfxVoidItem(); diff --git a/include/svl/rngitem.hxx b/include/svl/rngitem.hxx index a8855de98a7e..91d9300500f6 100644 --- a/include/svl/rngitem.hxx +++ b/include/svl/rngitem.hxx @@ -32,7 +32,6 @@ private: sal_uInt16 nFrom; sal_uInt16 nTo; public: - SfxRangeItem(); SfxRangeItem( sal_uInt16 nWID, sal_uInt16 nFrom, sal_uInt16 nTo ); SfxRangeItem( const SfxRangeItem& rItem ); virtual bool operator==( const SfxPoolItem& ) const override; @@ -54,7 +53,6 @@ private: sal_uInt16* _pRanges; public: - SfxUShortRangesItem(); SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream ); SfxUShortRangesItem( const SfxUShortRangesItem& rItem ); virtual ~SfxUShortRangesItem(); diff --git a/include/svl/svdde.hxx b/include/svl/svdde.hxx index 524bd5ece1b0..4c10fa26397a 100644 --- a/include/svl/svdde.hxx +++ b/include/svl/svdde.hxx @@ -32,7 +32,6 @@ class DdeConnection; class DdeTransaction; class DdeLink; class DdeRequest; -class DdeWarmLink; class DdeHotLink; class DdePoke; class DdeExecute; @@ -141,13 +140,6 @@ public: }; -class SVL_DLLPUBLIC DdeWarmLink : public DdeLink -{ -public: - DdeWarmLink( DdeConnection&, const OUString&, long = 0 ); -}; - - class SVL_DLLPUBLIC DdeHotLink : public DdeLink { public: @@ -165,10 +157,7 @@ public: class SVL_DLLPUBLIC DdePoke : public DdeTransaction { public: - DdePoke( DdeConnection&, const OUString&, const char*, long, - SotClipboardFormatId = SotClipboardFormatId::STRING, long = 0 ); DdePoke( DdeConnection&, const OUString&, SAL_UNUSED_PARAMETER const DdeData&, long = 0 ); - DdePoke( DdeConnection&, const OUString&, const OUString&, long = 0 ); }; diff --git a/include/svl/szitem.hxx b/include/svl/szitem.hxx index 621f7c9c44bc..1ce7a676abbb 100644 --- a/include/svl/szitem.hxx +++ b/include/svl/szitem.hxx @@ -31,7 +31,6 @@ private: Size aVal; public: - SfxSizeItem(); SfxSizeItem( sal_uInt16 nWhich, const Size& rVal ); SfxSizeItem( const SfxSizeItem& ); virtual ~SfxSizeItem() {} diff --git a/include/svtools/ServerDetailsControls.hxx b/include/svtools/ServerDetailsControls.hxx index e9f4d4c488e3..181c7569ca75 100644 --- a/include/svtools/ServerDetailsControls.hxx +++ b/include/svtools/ServerDetailsControls.hxx @@ -59,8 +59,6 @@ class DetailsContainer virtual bool enableUserCredentials( ) { return true; }; - void setActive( bool bActive = true ); - protected: void notifyChange( ); DECL_LINK_TYPED ( ValueChangeHdl, Edit&, void ); diff --git a/include/svtools/accessibilityoptions.hxx b/include/svtools/accessibilityoptions.hxx index 1920871fa4a1..9c642a4bbcc3 100644 --- a/include/svtools/accessibilityoptions.hxx +++ b/include/svtools/accessibilityoptions.hxx @@ -43,14 +43,6 @@ public: bool GetIsAllowAnimatedText() const; bool GetIsAutomaticFontColor() const; bool IsSelectionInReadonly() const; - bool GetAutoDetectSystemHC() const; - - void SetIsForPagePreviews(bool bSet); - void SetIsAllowAnimatedGraphics(bool bSet); - void SetIsAllowAnimatedText(bool bSet); - void SetIsAutomaticFontColor(bool bSet); - void SetSelectionInReadonly(bool bSet); - void SetAutoDetectSystemHC(bool bSet); //SfxListener: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index edd86df02004..dcaa244fc504 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -131,7 +131,6 @@ class BrowseEvent sal_uInt16 nColId; public: - BrowseEvent(); BrowseEvent( vcl::Window* pWindow, long nAbsRow, sal_uInt16 nColumn, sal_uInt16 nColumnId, @@ -148,7 +147,6 @@ public: class BrowserMouseEvent: public MouseEvent, public BrowseEvent { public: - BrowserMouseEvent(); BrowserMouseEvent( BrowserDataWin* pWin, const MouseEvent& rEvt ); BrowserMouseEvent( vcl::Window* pWin, const MouseEvent& rEvt, long nAbsRow, sal_uInt16 nColumn, sal_uInt16 nColumnId, @@ -159,7 +157,6 @@ public: class BrowserAcceptDropEvent : public AcceptDropEvent, public BrowseEvent { public: - BrowserAcceptDropEvent(); BrowserAcceptDropEvent( BrowserDataWin* pWin, const AcceptDropEvent& rEvt ); }; @@ -167,7 +164,6 @@ public: class BrowserExecuteDropEvent : public ExecuteDropEvent, public BrowseEvent { public: - BrowserExecuteDropEvent(); BrowserExecuteDropEvent( BrowserDataWin* pWin, const ExecuteDropEvent& rEvt ); }; diff --git a/include/svtools/imap.hxx b/include/svtools/imap.hxx index 900e674618b5..0538c671099c 100644 --- a/include/svtools/imap.hxx +++ b/include/svtools/imap.hxx @@ -127,8 +127,7 @@ class IMapCompat sal_uLong nTotalSize; StreamMode nStmMode; - IMapCompat() {} - IMapCompat( const IMapCompat& ) {} + IMapCompat( const IMapCompat& ) = delete; IMapCompat& operator=( const IMapCompat& ) { return *this; } public: diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index 1b39f8fb8720..1aa02b196a96 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -60,7 +60,6 @@ protected: public: SvtURLBox( vcl::Window* pParent, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true ); SvtURLBox( vcl::Window* pParent, WinBits _nStyle, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true ); - SvtURLBox( vcl::Window* pParent, const ResId& _rResId, INetProtocol eSmart = INetProtocol::NotValid, bool bSetDefaultHelpID = true ); virtual ~SvtURLBox(); virtual void dispose() override; diff --git a/include/svtools/menuoptions.hxx b/include/svtools/menuoptions.hxx index 41451d9c9a0e..e59f6a873a7f 100644 --- a/include/svtools/menuoptions.hxx +++ b/include/svtools/menuoptions.hxx @@ -58,9 +58,6 @@ class SAL_WARN_UNUSED SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options SvtMenuOptions(); virtual ~SvtMenuOptions(); - void AddListenerLink( const Link<LinkParamNone*,void>& rLink ); - void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink ); - /*-**************************************************************************************************** @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..." @descr These options describe internal states to enable/disable features of installed office. diff --git a/include/svtools/stdmenu.hxx b/include/svtools/stdmenu.hxx deleted file mode 100644 index 993ff955c06b..000000000000 --- a/include/svtools/stdmenu.hxx +++ /dev/null @@ -1,145 +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_SVTOOLS_STDMENU_HXX -#define INCLUDED_SVTOOLS_STDMENU_HXX - -#include <svtools/svtdllapi.h> -#include <tools/link.hxx> -#include <vcl/menu.hxx> - -class FontList; -namespace vcl { - class FontMetric; -} - -/************************************************************************* - -Description -============ - -class FontNameMenu - -Description - -Allows the selection of fonts. The menu is filled with the FontNames by -the method Fill(). Fill() automatically sorts the FontNames (incl. all -umlauts and language-dependent). Using SetCurName()/GetCurName(), the -current FontName can be set/requested. If SetCurName() is called with -an empty string, no entry is displayed as the current one. -Before the Select call, the selected name is automatically set as the -current one and would be displayed as the current name on the next call. -Because of this, the current FontName should be set using SetCurName() -if necessary before calling PopupMenu::Execute(). - -As the Ids and the internal structure of the menu are not known, a -Select handler must be set in order to notice the selection of a name. - -No further items can be inserted into that menu. - -Later on, the menu shall display the same bitmaps as the FontNameBox. -On many systems, where menues don't scroll automatically, an A-Z menu -might be interposed. As a menu has always needed long when many Fonts -are installed, this menu should only be generated once. - -References - -FontList; FontSizeMenu; FontNameBox - --------------------------------------------------------------------------- - -class FontSizeMenu - -Description - -Allows the selection of font sizes. The FontSizeMenu is filled using -Fill(). The selected font size can be queried using GetCurHeight(). -Using SetCurHeight()/GetCurHeight(), the current font size can be set/ -requested. If SetCurHeight() is called with 0, no entry is displayed -as the current one. -Before the Select call, the selected size is automatically set as the -current one and would be displayed as the current size on the next call. -Because of this, the current font size should be set using SetCurHeight() -if necessary before calling PopupMenu::Execute(). As the font sizes -depend on the selected Font, the Menu should be re-filled with the -sizes of the font using Fill() after a change to the font name. - -As the Ids and the internal structure of the menu are not known, a -Select handler must be set in order to notice the selection of a size. - -All sizes are given in 1/10 points. - -No further items can be inserted into that menu. - -Later on, the menu shall display the sizes in respect to the system. -For example, Mac could possibly show an outline of the fonts that are -available as bitmaps. - -References - -FontList; FontNameMenu; FontSizeBox - -*************************************************************************/ - -class SVT_DLLPUBLIC FontNameMenu : public PopupMenu -{ -private: - OUString maCurName; - Link<FontNameMenu*,void> maSelectHdl; - -public: - FontNameMenu(); - virtual ~FontNameMenu(); - - virtual void Select() override; - virtual void Highlight() override; - - void Fill( const FontList* pList ); - - void SetCurName( const OUString& rName ); - const OUString& GetCurName() const { return maCurName; } - - void SetSelectHdl( const Link<FontNameMenu*,void>& rLink ) { maSelectHdl = rLink; } -}; - -class SVT_DLLPUBLIC FontSizeMenu : public PopupMenu -{ -private: - long* mpHeightAry; - long mnCurHeight; - Link<FontSizeMenu*,void> maSelectHdl; - -public: - FontSizeMenu(); - virtual ~FontSizeMenu(); - - virtual void Select() override; - virtual void Highlight() override; - - void Fill( const FontMetric& rFontMetric, const FontList* pList ); - - void SetCurHeight( long nHeight ); - long GetCurHeight() const { return mnCurHeight; } - - void SetSelectHdl( const Link<FontSizeMenu*,void>& rLink ) { maSelectHdl = rLink; } -}; - -#endif // INCLUDED_SVTOOLS_STDMENU_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svtools/table/tablesort.hxx b/include/svtools/table/tablesort.hxx index 96a8ba440429..56f1a46000b0 100644 --- a/include/svtools/table/tablesort.hxx +++ b/include/svtools/table/tablesort.hxx @@ -49,11 +49,6 @@ namespace svt { namespace table { } - ColumnSort( ColPos const i_columnPos, ColumnSortDirection const i_sortDirection ) - :nColumnPos( i_columnPos ) - ,eSortDirection( i_sortDirection ) - { - } }; diff --git a/include/svtools/transfer.hxx b/include/svtools/transfer.hxx index 806c5350815e..9734c8907049 100644 --- a/include/svtools/transfer.hxx +++ b/include/svtools/transfer.hxx @@ -115,10 +115,6 @@ struct ExecuteDropEvent const css::datatransfer::dnd::DropTargetDropEvent maDropEvent; bool mbDefault; - ExecuteDropEvent() : - mnAction( DND_ACTION_NONE ), - mbDefault( false ) {} - ExecuteDropEvent( sal_Int8 nAction, const Point& rPosPixel, const css::datatransfer::dnd::DropTargetDropEvent& rDropEvent ) : |