diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-27 18:12:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-27 18:12:18 +0100 |
commit | 567ef6d5782cdb729b49005caf6005610ce03e22 (patch) | |
tree | 7e3be1da41382e555d9091914ef7e064852a4fd4 /sfx2/source/inc | |
parent | c36daa01f444ebad799c1cc7a106f1b4bb3c3d12 (diff) |
Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.
Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/documentfontsdialog.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/docundomanager.hxx | 50 | ||||
-rw-r--r-- | sfx2/source/inc/eventsupplier.hxx | 16 | ||||
-rw-r--r-- | sfx2/source/inc/fltoptint.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/inc/macroloader.hxx | 20 | ||||
-rw-r--r-- | sfx2/source/inc/objshimp.hxx | 20 | ||||
-rw-r--r-- | sfx2/source/inc/partwnd.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/inc/preview.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/inc/recfloat.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/inc/sfxpicklist.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/splitwin.hxx | 16 | ||||
-rw-r--r-- | sfx2/source/inc/statcach.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/templatesearchview.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 52 | ||||
-rw-r--r-- | sfx2/source/inc/tplcitem.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/versdlg.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/workwin.hxx | 16 |
17 files changed, 119 insertions, 119 deletions
diff --git a/sfx2/source/inc/documentfontsdialog.hxx b/sfx2/source/inc/documentfontsdialog.hxx index 47f72cecf26a..585e97dcdc7e 100644 --- a/sfx2/source/inc/documentfontsdialog.hxx +++ b/sfx2/source/inc/documentfontsdialog.hxx @@ -33,8 +33,8 @@ public: SfxDocumentFontsPage( Window* parent, const SfxItemSet& set ); static SfxTabPage* Create( Window* parent, const SfxItemSet& set ); protected: - virtual bool FillItemSet( SfxItemSet& set ); - virtual void Reset( const SfxItemSet& set ); + virtual bool FillItemSet( SfxItemSet& set ) SAL_OVERRIDE; + virtual void Reset( const SfxItemSet& set ) SAL_OVERRIDE; private: CheckBox* embedFontsCheckbox; }; diff --git a/sfx2/source/inc/docundomanager.hxx b/sfx2/source/inc/docundomanager.hxx index bc73fe7fdb47..5f81011f8df6 100644 --- a/sfx2/source/inc/docundomanager.hxx +++ b/sfx2/source/inc/docundomanager.hxx @@ -51,7 +51,7 @@ namespace sfx2 virtual ~DocumentUndoManager(); // SfxModelSubComponent overridables - virtual void disposing(); + virtual void disposing() SAL_OVERRIDE; // non-UNO API for our owner /** determines whether we have an open Undo context. No mutex locking within this method, no disposal check - this @@ -60,36 +60,36 @@ namespace sfx2 bool isInContext() const; // XInterface - virtual void SAL_CALL acquire( ) throw (); - virtual void SAL_CALL release( ) throw (); + virtual void SAL_CALL acquire( ) throw () SAL_OVERRIDE; + virtual void SAL_CALL release( ) throw () SAL_OVERRIDE; // XUndoManager - virtual void SAL_CALL enterUndoContext( const OUString& i_title ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL enterHiddenUndoContext( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL leaveUndoContext( ) throw (::com::sun::star::util::InvalidStateException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL addUndoAction( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoAction >& i_action ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL undo( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::document::UndoFailedException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL redo( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::document::UndoFailedException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual ::sal_Bool SAL_CALL isUndoPossible( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual ::sal_Bool SAL_CALL isRedoPossible( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual OUString SAL_CALL getCurrentUndoActionTitle( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual OUString SAL_CALL getCurrentRedoActionTitle( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL clear( ) throw (::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL clearRedo( ) throw (::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL reset( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL addUndoManagerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManagerListener >& i_listener ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL removeUndoManagerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManagerListener >& i_listener ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL enterUndoContext( const OUString& i_title ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL enterHiddenUndoContext( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL leaveUndoContext( ) throw (::com::sun::star::util::InvalidStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addUndoAction( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoAction >& i_action ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL undo( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::document::UndoFailedException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL redo( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::document::UndoFailedException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::sal_Bool SAL_CALL isUndoPossible( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::sal_Bool SAL_CALL isRedoPossible( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getCurrentUndoActionTitle( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getCurrentRedoActionTitle( ) throw (::com::sun::star::document::EmptyUndoStackException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL clear( ) throw (::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL clearRedo( ) throw (::com::sun::star::document::UndoContextNotClosedException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL reset( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addUndoManagerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManagerListener >& i_listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL removeUndoManagerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManagerListener >& i_listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XLockable, base of XUndoManager - virtual void SAL_CALL lock( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL unlock( ) throw (::com::sun::star::util::NotLockedException, ::com::sun::star::uno::RuntimeException, std::exception); - virtual ::sal_Bool SAL_CALL isLocked( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL lock( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL unlock( ) throw (::com::sun::star::util::NotLockedException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::sal_Bool SAL_CALL isLocked( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XChild, base of XUndoManager - virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; private: ::boost::scoped_ptr< DocumentUndoManager_Impl > m_pImpl; diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx index 45306be926c3..9962c1dcca51 100644 --- a/sfx2/source/inc/eventsupplier.hxx +++ b/sfx2/source/inc/eventsupplier.hxx @@ -67,26 +67,26 @@ public: // --- XNameReplace --- virtual void SAL_CALL replaceByName( const OUString & aName, const css::uno::Any & aElement ) throw( css::lang::IllegalArgumentException, css::container::NoSuchElementException, - css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ); + css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // --- XNameAccess ( parent of XNameReplace ) --- virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw( css::container::NoSuchElementException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception ); - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() throw ( css::uno::RuntimeException, std::exception ); - virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw ( css::uno::RuntimeException, std::exception ); + css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // --- XElementAccess ( parent of XNameAccess ) --- - virtual css::uno::Type SAL_CALL getElementType() throw ( css::uno::RuntimeException, std::exception ); - virtual sal_Bool SAL_CALL hasElements() throw ( css::uno::RuntimeException, std::exception ); + virtual css::uno::Type SAL_CALL getElementType() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL hasElements() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // --- ::document::XEventListener --- virtual void SAL_CALL notifyEvent( const css::document::EventObject& aEvent ) - throw( css::uno::RuntimeException, std::exception ); + throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // --- ::lang::XEventListener --- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) - throw( css::uno::RuntimeException, std::exception ); + throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; static SvxMacro* ConvertToMacro( const css::uno::Any& rElement, SfxObjectShell* pDoc, sal_Bool bNormalizeMacro ); static void NormalizeMacro( const css::uno::Any& rIn, css::uno::Any& rOut, SfxObjectShell* pDoc ); diff --git a/sfx2/source/inc/fltoptint.hxx b/sfx2/source/inc/fltoptint.hxx index cb5740f455aa..248d0534b2ea 100644 --- a/sfx2/source/inc/fltoptint.hxx +++ b/sfx2/source/inc/fltoptint.hxx @@ -31,8 +31,8 @@ class FilterOptionsContinuation : public comphelper::OInteraction< ::com::sun::s ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties; public: - virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; }; class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::task::XInteractionRequest > @@ -59,12 +59,12 @@ public: } virtual ::com::sun::star::uno::Any SAL_CALL getRequest() - throw( ::com::sun::star::uno::RuntimeException, std::exception ); + throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > > SAL_CALL getContinuations() - throw( ::com::sun::star::uno::RuntimeException, std::exception ); + throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; }; #endif diff --git a/sfx2/source/inc/macroloader.hxx b/sfx2/source/inc/macroloader.hxx index d5e1c8d845a9..92f8af2b2d63 100644 --- a/sfx2/source/inc/macroloader.hxx +++ b/sfx2/source/inc/macroloader.hxx @@ -54,39 +54,39 @@ public: throw (css::uno::Exception, css::uno::RuntimeException); virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc=NULL ) throw( css::uno::RuntimeException ); virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName, FrameSearchFlags eSearchFlags ) - throw( css::uno::RuntimeException, std::exception ); + throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Sequence< css::uno::Reference < css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor ) - throw( css::uno::RuntimeException, std::exception ); + throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs, const css::uno::Reference< css::frame::XDispatchResultListener >& Listener ) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL dispatchWithReturnValue( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) - throw (css::uno::RuntimeException, std::exception); + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; }; #endif diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx index 22f9de356d77..da44481c9c31 100644 --- a/sfx2/source/inc/objshimp.hxx +++ b/sfx2/source/inc/objshimp.hxx @@ -144,16 +144,16 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess virtual ~SfxObjectShell_Impl(); // IMacroDocumentAccess overridables - virtual sal_Int16 getCurrentMacroExecMode() const; - virtual bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ); - virtual OUString getDocumentLocation() const; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > getZipStorageToSign(); - virtual bool documentStorageHasMacros() const; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > getEmbeddedDocumentScripts() const; - virtual sal_Int16 getScriptingSignatureState(); - - virtual bool hasTrustedScriptingSignature( bool bAllowUIToAddAuthor ); - virtual void showBrokenSignatureWarning( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxInteraction ) const; + virtual sal_Int16 getCurrentMacroExecMode() const SAL_OVERRIDE; + virtual bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ) SAL_OVERRIDE; + virtual OUString getDocumentLocation() const SAL_OVERRIDE; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > getZipStorageToSign() SAL_OVERRIDE; + virtual bool documentStorageHasMacros() const SAL_OVERRIDE; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > getEmbeddedDocumentScripts() const SAL_OVERRIDE; + virtual sal_Int16 getScriptingSignatureState() SAL_OVERRIDE; + + virtual bool hasTrustedScriptingSignature( bool bAllowUIToAddAuthor ) SAL_OVERRIDE; + virtual void showBrokenSignatureWarning( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxInteraction ) const SAL_OVERRIDE; }; #endif diff --git a/sfx2/source/inc/partwnd.hxx b/sfx2/source/inc/partwnd.hxx index 0686b2115bba..794c45f44699 100644 --- a/sfx2/source/inc/partwnd.hxx +++ b/sfx2/source/inc/partwnd.hxx @@ -52,7 +52,7 @@ public: SFX_DECL_CHILDWINDOW(SfxPartChildWnd_Impl); ~SfxPartChildWnd_Impl(); - virtual bool QueryClose(); + virtual bool QueryClose() SAL_OVERRIDE; }; // class SfxExplorerDockWnd_Impl ----------------------------------------- @@ -60,8 +60,8 @@ public: class SfxPartDockWnd_Impl : public SfxDockingWindow { protected: - virtual void Resize(); - virtual bool Notify( NotifyEvent& rNEvt ); + virtual void Resize() SAL_OVERRIDE; + virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; public: SfxPartDockWnd_Impl( SfxBindings* pBindings, @@ -71,7 +71,7 @@ public: ~SfxPartDockWnd_Impl(); sal_Bool QueryClose(); - virtual void FillInfo(SfxChildWinInfo&) const; + virtual void FillInfo(SfxChildWinInfo&) const SAL_OVERRIDE; ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame > ForgetFrame(); }; diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index 725ee3a59042..adc5de27dcc3 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.hxx @@ -33,14 +33,14 @@ protected: public: SfxPreviewBase_Impl(Window* pParent, WinBits nStyle); void SetObjectShell( SfxObjectShell* pObj ); - virtual void Resize(); - virtual Size GetOptimalSize() const; + virtual void Resize() SAL_OVERRIDE; + virtual Size GetOptimalSize() const SAL_OVERRIDE; }; class SfxPreviewWin_Impl: public SfxPreviewBase_Impl { protected: - virtual void Paint( const Rectangle& rRect ); + virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE; public: SfxPreviewWin_Impl(Window* pParent, WinBits nStyle) : SfxPreviewBase_Impl(pParent, nStyle) diff --git a/sfx2/source/inc/recfloat.hxx b/sfx2/source/inc/recfloat.hxx index 88a481187856..f2f865a63f91 100644 --- a/sfx2/source/inc/recfloat.hxx +++ b/sfx2/source/inc/recfloat.hxx @@ -34,7 +34,7 @@ public: ~SfxRecordingFloatWrapper_Impl(); SFX_DECL_CHILDWINDOW(SfxRecordingFloatWrapper_Impl); - virtual bool QueryClose(); + virtual bool QueryClose() SAL_OVERRIDE; }; class SfxRecordingFloat_Impl : public SfxFloatingWindow @@ -46,9 +46,9 @@ public: SfxChildWindow* pChildWin , Window* pParent ); virtual ~SfxRecordingFloat_Impl(); - virtual bool Close(); - virtual void FillInfo( SfxChildWinInfo& rInfo ) const; - virtual void StateChanged( StateChangedType nStateChange ); + virtual bool Close() SAL_OVERRIDE; + virtual void FillInfo( SfxChildWinInfo& rInfo ) const SAL_OVERRIDE; + virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; DECL_LINK( Select, ToolBox * ); }; diff --git a/sfx2/source/inc/sfxpicklist.hxx b/sfx2/source/inc/sfxpicklist.hxx index b9a220113edb..77747e21375e 100644 --- a/sfx2/source/inc/sfxpicklist.hxx +++ b/sfx2/source/inc/sfxpicklist.hxx @@ -70,7 +70,7 @@ class SfxPickList : public SfxListener void ExecuteMenuEntry( sal_uInt16 nId ); void ExecuteEntry( sal_uInt32 nIndex ); - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; }; #endif // INCLUDED_SFX2_SOURCE_INC_SFXPICKLIST_HXX diff --git a/sfx2/source/inc/splitwin.hxx b/sfx2/source/inc/splitwin.hxx index 6adb73def98e..40ed3dee6027 100644 --- a/sfx2/source/inc/splitwin.hxx +++ b/sfx2/source/inc/splitwin.hxx @@ -56,11 +56,11 @@ private: protected: - virtual void StartSplit(); - virtual void SplitResize(); - virtual void Split(); - virtual void Command ( const CommandEvent& rCEvt ); - virtual void MouseButtonDown ( const MouseEvent& ); + virtual void StartSplit() SAL_OVERRIDE; + virtual void SplitResize() SAL_OVERRIDE; + virtual void Split() SAL_OVERRIDE; + virtual void Command ( const CommandEvent& rCEvt ) SAL_OVERRIDE; + virtual void MouseButtonDown ( const MouseEvent& ) SAL_OVERRIDE; public: SfxSplitWindow( Window* pParent, SfxChildAlignment eAl, @@ -109,9 +109,9 @@ public: sal_Bool IsAutoHide( sal_Bool bSelf = sal_False ) const; SplitWindow* GetSplitWindow(); - virtual void AutoHide(); - virtual void FadeOut(); - virtual void FadeIn(); + virtual void AutoHide() SAL_OVERRIDE; + virtual void FadeOut() SAL_OVERRIDE; + virtual void FadeIn() SAL_OVERRIDE; void Show_Impl(); void Pin_Impl( sal_Bool bPinned ); sal_Bool ActivateNextChild_Impl( sal_Bool bForward = sal_True ); diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index 42a53a07de65..e472c404aaec 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -51,8 +51,8 @@ public: const ::com::sun::star::util::URL& rURL, SfxStateCache* pStateCache, const SfxSlot* pSlot ); - virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ); - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ); + virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; void Release(); const ::com::sun::star::frame::FeatureStateEvent& GetStatus() const; diff --git a/sfx2/source/inc/templatesearchview.hxx b/sfx2/source/inc/templatesearchview.hxx index f8c6e98501df..94a9977053ac 100644 --- a/sfx2/source/inc/templatesearchview.hxx +++ b/sfx2/source/inc/templatesearchview.hxx @@ -27,7 +27,7 @@ public: const OUString &rPath, const BitmapEx &rImage ); protected: - virtual void OnItemDblClicked(ThumbnailViewItem *pItem); + virtual void OnItemDblClicked(ThumbnailViewItem *pItem) SAL_OVERRIDE; protected: Link maOpenTemplateHdl; diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index fc263f586df8..f2142e8e8def 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -71,14 +71,14 @@ public: , pDialog(pD) , nModifier(0) {} - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; + virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE; using SvTreeListBox::ExecuteDrop; - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); + virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE; sal_uInt16 GetModifier() const { return nModifier; } - virtual bool Notify( NotifyEvent& rNEvt ); + virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; }; typedef std::vector<OUString> ExpandedEntries_t; @@ -98,15 +98,15 @@ private: OUString aStyle; protected: - virtual void Command( const CommandEvent& rMEvt ); - virtual bool Notify( NotifyEvent& rNEvt ); - virtual bool DoubleClickHdl(); - virtual bool ExpandingHdl(); - virtual void ExpandedHdl(); + virtual void Command( const CommandEvent& rMEvt ) SAL_OVERRIDE; + virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; + virtual bool DoubleClickHdl() SAL_OVERRIDE; + virtual bool ExpandingHdl() SAL_OVERRIDE; + virtual void ExpandedHdl() SAL_OVERRIDE; virtual sal_Bool NotifyMoving(SvTreeListEntry* pTarget, SvTreeListEntry* pEntry, SvTreeListEntry*& rpNewParent, - sal_uIntPtr& rNewChildPos); + sal_uIntPtr& rNewChildPos) SAL_OVERRIDE; public: StyleTreeListBox_Impl( SfxCommonTemplateDialog_Impl* pParent, WinBits nWinStyle = 0); @@ -117,7 +117,7 @@ public: const OUString& GetStyle() const { return aStyle; } void MakeExpanded_Impl(ExpandedEntries_t& rEntries) const; - virtual PopupMenu* CreateContextMenu( void ); + virtual PopupMenu* CreateContextMenu( void ) SAL_OVERRIDE; }; // class SfxActionListBox ------------------------------------------------ @@ -128,7 +128,7 @@ protected: public: SfxActionListBox( SfxCommonTemplateDialog_Impl* pParent, WinBits nWinBits ); - virtual PopupMenu* CreateContextMenu( void ); + virtual PopupMenu* CreateContextMenu( void ) SAL_OVERRIDE; }; // class SfxCommonTemplateDialog_Impl ------------------------------------ @@ -146,8 +146,8 @@ private: public: ISfxTemplateCommon_Impl( SfxCommonTemplateDialog_Impl* pDialogP ) : pDialog( pDialogP ) {} virtual ~ISfxTemplateCommon_Impl() {} - virtual SfxStyleFamily GetActualFamily() const { return pDialog->GetActualFamily(); } - virtual OUString GetSelectedEntry() const { return pDialog->GetSelectedEntry(); } + virtual SfxStyleFamily GetActualFamily() const SAL_OVERRIDE { return pDialog->GetActualFamily(); } + virtual OUString GetSelectedEntry() const SAL_OVERRIDE { return pDialog->GetSelectedEntry(); } }; ISfxTemplateCommon_Impl aISfxTemplateCommon; @@ -262,7 +262,7 @@ protected: // information of the ith Family in the pStyleFamilies. sal_uInt16 StyleNrToInfoOffset( sal_uInt16 i ); - void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; void FamilySelect( sal_uInt16 nId ); void SetFamily( sal_uInt16 nId ); @@ -317,8 +317,8 @@ class DropToolBox_Impl : public ToolBox, public DropTargetHelper { SfxTemplateDialog_Impl& rParent; protected: - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); + virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE; + virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE; public: DropToolBox_Impl(Window* pParent, SfxTemplateDialog_Impl* pTemplateDialog); ~DropToolBox_Impl(); @@ -345,15 +345,15 @@ private: protected: virtual void Command( const CommandEvent& rMEvt ); - virtual void EnableEdit( sal_Bool = sal_True ); - virtual void EnableItem( sal_uInt16 nMesId, sal_Bool bCheck = sal_True ); - virtual void CheckItem( sal_uInt16 nMesId, sal_Bool bCheck = sal_True ); - virtual sal_Bool IsCheckedItem( sal_uInt16 nMesId ); - virtual void LoadedFamilies(); - virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pIten ); - virtual void EnableFamilyItem( sal_uInt16 nId, sal_Bool bEnabled = sal_True ); - virtual void ClearFamilyList(); - virtual void ReplaceUpdateButtonByMenu(); + virtual void EnableEdit( sal_Bool = sal_True ) SAL_OVERRIDE; + virtual void EnableItem( sal_uInt16 nMesId, sal_Bool bCheck = sal_True ) SAL_OVERRIDE; + virtual void CheckItem( sal_uInt16 nMesId, sal_Bool bCheck = sal_True ) SAL_OVERRIDE; + virtual sal_Bool IsCheckedItem( sal_uInt16 nMesId ) SAL_OVERRIDE; + virtual void LoadedFamilies() SAL_OVERRIDE; + virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pIten ) SAL_OVERRIDE; + virtual void EnableFamilyItem( sal_uInt16 nId, sal_Bool bEnabled = sal_True ) SAL_OVERRIDE; + virtual void ClearFamilyList() SAL_OVERRIDE; + virtual void ReplaceUpdateButtonByMenu() SAL_OVERRIDE; void Resize(); Size GetMinOutputSizePixel(); diff --git a/sfx2/source/inc/tplcitem.hxx b/sfx2/source/inc/tplcitem.hxx index 28515d1a644b..5ce731618b0b 100644 --- a/sfx2/source/inc/tplcitem.hxx +++ b/sfx2/source/inc/tplcitem.hxx @@ -33,7 +33,7 @@ class SfxTemplateControllerItem: public SfxControllerItem { SfxTemplateControllerItem*); protected: - virtual void StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem* pState ); + virtual void StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem* pState ) SAL_OVERRIDE; public: SfxTemplateControllerItem( sal_uInt16 nId, SfxCommonTemplateDialog_Impl &rDlg, SfxBindings &); diff --git a/sfx2/source/inc/versdlg.hxx b/sfx2/source/inc/versdlg.hxx index f9201f23b19f..5170d537ae19 100644 --- a/sfx2/source/inc/versdlg.hxx +++ b/sfx2/source/inc/versdlg.hxx @@ -38,8 +38,8 @@ public: { } void setColSizes(); - virtual void Resize(); - virtual void KeyInput(const KeyEvent& rKeyEvent); + virtual void Resize() SAL_OVERRIDE; + virtual void KeyInput(const KeyEvent& rKeyEvent) SAL_OVERRIDE; }; class SfxVersionTableDtor; diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx index 152a44e074dc..bc54c75cbfd5 100644 --- a/sfx2/source/inc/workwin.hxx +++ b/sfx2/source/inc/workwin.hxx @@ -185,19 +185,19 @@ class LayoutManagerListener : public ::cppu::WeakImplHelper2< // XComponent - virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // XEventListener - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw( ::com::sun::star::uno::RuntimeException, std::exception ); + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // XLayoutManagerEventListener - virtual void SAL_CALL layoutEvent( const ::com::sun::star::lang::EventObject& aSource, ::sal_Int16 eLayoutEvent, const ::com::sun::star::uno::Any& aInfo ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL layoutEvent( const ::com::sun::star::lang::EventObject& aSource, ::sal_Int16 eLayoutEvent, const ::com::sun::star::uno::Any& aInfo ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; private: sal_Bool m_bHasFrame; @@ -334,9 +334,9 @@ class SfxFrameWorkWin_Impl : public SfxWorkWindow SfxFrame* pFrame; public: SfxFrameWorkWin_Impl( Window* pWin, SfxFrame* pFrm, SfxFrame* pMaster ); - virtual void ArrangeChildren_Impl( sal_Bool bForce = sal_True ); - virtual void UpdateObjectBars_Impl(); - virtual Rectangle GetTopRect_Impl(); + virtual void ArrangeChildren_Impl( sal_Bool bForce = sal_True ) SAL_OVERRIDE; + virtual void UpdateObjectBars_Impl() SAL_OVERRIDE; + virtual Rectangle GetTopRect_Impl() SAL_OVERRIDE; }; |