diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-12 16:04:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-12 17:52:29 +0200 |
commit | b36963c0a6a09f70ca6d8d607dd3249a3496497d (patch) | |
tree | 33e06dc8d227957cb31355277fb5cf20b9918628 /starmath | |
parent | b08247a12b43fcd9f86ecd912fce7d69a3e66061 (diff) |
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
Diffstat (limited to 'starmath')
25 files changed, 658 insertions, 658 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index a06e17338cd8..41ec150cadd6 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -63,7 +63,7 @@ class SmElementSeparator : public SmElement public: SmElementSeparator(); - virtual bool isSeparator() SAL_OVERRIDE + virtual bool isSeparator() override { return true; } @@ -81,9 +81,9 @@ class SmElementsControl : public Control static const sal_uInt16 aFormats[][2]; static const sal_uInt16 aOthers[][2]; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; - virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; + virtual void MouseButtonDown(const MouseEvent& rMEvt) override; + virtual void MouseMove( const MouseEvent& rMEvt ) override; typedef std::shared_ptr<SmElement> SmElementPointer; typedef std::vector< SmElementPointer > SmElementList; @@ -113,13 +113,13 @@ class SmElementsControl : public Control public: SmElementsControl(vcl::Window *pParent); virtual ~SmElementsControl(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void setElementSetId(sal_uInt16 aSetId); void setVerticalMode(bool bVertical); - Size GetOptimalSize() const SAL_OVERRIDE; + Size GetOptimalSize() const override; DECL_LINK_TYPED( ScrollHdl, ScrollBar*, void ); void DoScroll(long nDelta); @@ -134,7 +134,7 @@ class SmElementsDockingWindow : public SfxDockingWindow VclPtr<SmElementsControl> mpElementsControl; VclPtr<ListBox> mpElementListBox; - virtual void Resize() SAL_OVERRIDE; + virtual void Resize() override; SmViewShell* GetView(); void SelectClickHandler(SmElement* pElement); @@ -146,10 +146,10 @@ public: SfxChildWindow* pChildWindow, vcl::Window* pParent ); virtual ~SmElementsDockingWindow(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; - virtual void EndDocking( const Rectangle& rReactangle, bool bFloatMode) SAL_OVERRIDE; - virtual void ToggleFloatingMode() SAL_OVERRIDE; + virtual void EndDocking( const Rectangle& rReactangle, bool bFloatMode) override; + virtual void ToggleFloatingMode() override; }; class SmElementsDockingWindowWrapper : public SfxChildWindow diff --git a/starmath/inc/action.hxx b/starmath/inc/action.hxx index 03feadf28603..6684a7461e95 100644 --- a/starmath/inc/action.hxx +++ b/starmath/inc/action.hxx @@ -34,10 +34,10 @@ class SmFormatAction: public SfxUndoAction public: SmFormatAction(SmDocShell *pDocSh, const SmFormat& rOldFormat, const SmFormat& rNewFormat); - virtual void Undo() SAL_OVERRIDE; - virtual void Redo() SAL_OVERRIDE; - virtual void Repeat(SfxRepeatTarget& rDocSh) SAL_OVERRIDE; - virtual OUString GetComment() const SAL_OVERRIDE; + virtual void Undo() override; + virtual void Redo() override; + virtual void Repeat(SfxRepeatTarget& rDocSh) override; + virtual OUString GetComment() const override; }; #endif diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 08e10e32aede..b027aabf0dfb 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -64,22 +64,22 @@ class SmPrintOptionsTabPage : public SfxTabPage DECL_LINK_TYPED(SizeButtonClickHdl, Button *, void); - virtual bool FillItemSet(SfxItemSet* rSet) SAL_OVERRIDE; - virtual void Reset(const SfxItemSet* rSet) SAL_OVERRIDE; + virtual bool FillItemSet(SfxItemSet* rSet) override; + virtual void Reset(const SfxItemSet* rSet) override; public: static VclPtr<SfxTabPage> Create(vcl::Window *pWindow, const SfxItemSet &rSet); SmPrintOptionsTabPage(vcl::Window *pParent, const SfxItemSet &rOptions); virtual ~SmPrintOptionsTabPage(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; }; /**************************************************************************/ class SmShowFont : public vcl::Window { - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; vcl::Font maFont; @@ -88,7 +88,7 @@ public: : Window(pParent, nStyle) { } - virtual Size GetOptimalSize() const SAL_OVERRIDE; + virtual Size GetOptimalSize() const override; void SetFont(const vcl::Font& rFont); }; @@ -106,12 +106,12 @@ class SmFontDialog : public ModalDialog DECL_LINK(FontModifyHdl, ComboBox *); DECL_LINK_TYPED(AttrChangeHdl, Button *, void); - virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; public: SmFontDialog(vcl::Window * pParent, OutputDevice *pFntListDevice, bool bHideCheckboxes); virtual ~SmFontDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; const vcl::Font& GetFont() const { @@ -137,7 +137,7 @@ class SmFontSizeDialog : public ModalDialog public: SmFontSizeDialog(vcl::Window *pParent); virtual ~SmFontSizeDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void ReadFrom(const SmFormat &rFormat); void WriteTo (SmFormat &rFormat) const; @@ -165,7 +165,7 @@ class SmFontTypeDialog : public ModalDialog public: SmFontTypeDialog(vcl::Window *pParent, OutputDevice *pFntListDevice); virtual ~SmFontTypeDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void ReadFrom(const SmFormat &rFormat); void WriteTo (SmFormat &rFormat) const; @@ -234,13 +234,13 @@ class SmDistanceDialog : public ModalDialog public: SmDistanceDialog(vcl::Window *pParent); virtual ~SmDistanceDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void ReadFrom(const SmFormat &rFormat); void WriteTo (SmFormat &rFormat) /*const*/; // Window - virtual void DataChanged( const DataChangedEvent &rEvt ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent &rEvt ) override; }; @@ -259,7 +259,7 @@ class SmAlignDialog : public ModalDialog public: SmAlignDialog(vcl::Window *pParent); virtual ~SmAlignDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void ReadFrom(const SmFormat &rFormat); void WriteTo (SmFormat &rFormat) const; @@ -281,17 +281,17 @@ class SmShowSymbolSetWindow : public Control void SetScrollBarRange(); Point OffsetPoint(const Point &rPoint) const; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; - virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; - virtual Size GetOptimalSize() const SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; + virtual void MouseButtonDown(const MouseEvent& rMEvt) override; + virtual void KeyInput(const KeyEvent& rKEvt) override; + virtual void Resize() override; + virtual Size GetOptimalSize() const override; DECL_LINK_TYPED( ScrollHdl, ScrollBar*, void ); public: SmShowSymbolSetWindow(vcl::Window *pParent, WinBits nStyle); virtual ~SmShowSymbolSetWindow(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void setScrollbar(ScrollBar *pVScrollBar); void calccols(); void SelectSymbol(sal_uInt16 nSymbol); @@ -309,7 +309,7 @@ class SmShowSymbolSet : public VclHBox public: SmShowSymbolSet(vcl::Window *pParent); virtual ~SmShowSymbolSet(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void SetSymbolSet(const SymbolPtrVec_t& rSymbolSet) { aSymbolWindow->SetSymbolSet(rSymbolSet); } @@ -326,10 +326,10 @@ class SmShowSymbol : public Control { Link<SmShowSymbol&,void> aDblClickHdlLink; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; - virtual void ApplySettings(vcl::RenderContext& rRenderContext) SAL_OVERRIDE; - virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; + virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; + virtual void MouseButtonDown(const MouseEvent& rMEvt) override; + virtual void Resize() override; void setFontSize(vcl::Font &rFont) const; @@ -375,13 +375,13 @@ class SmSymbolDialog : public ModalDialog void FillSymbolSets(bool bDeleteText = true); const SmSym *GetSymbol() const; - virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; public: SmSymbolDialog(vcl::Window * pParent, OutputDevice *pFntListDevice, SmSymbolManager &rSymbolMgr, SmViewShell &rViewShell); virtual ~SmSymbolDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; bool SelectSymbolSet(const OUString &rSymbolSetName); void SelectSymbol(sal_uInt16 nSymbolPos); @@ -392,8 +392,8 @@ public: class SmShowChar : public Control { - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; + virtual void Resize() override; public: SmShowChar(vcl::Window *pParent, WinBits nStyle) @@ -468,17 +468,17 @@ class SmSymDefineDialog : public ModalDialog return const_cast<SmSymDefineDialog *>(this)->GetSymbol(rComboBox); } - virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; public: SmSymDefineDialog(vcl::Window *pParent, OutputDevice *pFntListDevice, SmSymbolManager &rMgr); virtual ~SmSymDefineDialog(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; using OutputDevice::SetFont; // Dialog - virtual short Execute() SAL_OVERRIDE; + virtual short Execute() override; bool SelectOldSymbolSet(const OUString &rSymbolSetName) { diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 24c10c950a20..fb07b189a318 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -107,13 +107,13 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener - virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE; + virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override; bool WriteAsMathType3( SfxMedium& ); virtual void Draw(OutputDevice *pDevice, const JobSetup & rSetup, - sal_uInt16 nAspect = ASPECT_CONTENT) SAL_OVERRIDE; + sal_uInt16 nAspect = ASPECT_CONTENT) override; virtual void FillClass(SvGlobalName* pClassName, SotClipboardFormatId* pFormat, @@ -121,16 +121,16 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener OUString* pFullTypeName, OUString* pShortTypeName, sal_Int32 nFileFormat, - bool bTemplate = false ) const SAL_OVERRIDE; + bool bTemplate = false ) const override; - virtual sal_uLong GetMiscStatus() const SAL_OVERRIDE; - virtual void OnDocumentPrinterChanged( Printer * ) SAL_OVERRIDE; - virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE; - virtual bool Load( SfxMedium& rMedium ) SAL_OVERRIDE; - virtual bool Save() SAL_OVERRIDE; - virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE; - virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE; - virtual bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE; + virtual sal_uLong GetMiscStatus() const override; + virtual void OnDocumentPrinterChanged( Printer * ) override; + virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) override; + virtual bool Load( SfxMedium& rMedium ) override; + virtual bool Save() override; + virtual bool SaveAs( SfxMedium& rMedium ) override; + virtual bool ConvertTo( SfxMedium &rMedium ) override; + virtual bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) override; Printer *GetPrt(); OutputDevice* GetRefDev(); @@ -138,7 +138,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener bool IsFormulaArranged() const { return bIsFormulaArranged; } void SetFormulaArranged(bool bVal) { bIsFormulaArranged = bVal; } - virtual bool ConvertFrom(SfxMedium &rMedium) SAL_OVERRIDE; + virtual bool ConvertFrom(SfxMedium &rMedium) override; /** Called whenever the formula is changed * Deletes the current cursor @@ -203,15 +203,15 @@ public: void Repaint(); - virtual ::svl::IUndoManager *GetUndoManager () SAL_OVERRIDE; + virtual ::svl::IUndoManager *GetUndoManager () override; static SfxItemPool& GetPool(); void Execute( SfxRequest& rReq ); void GetState(SfxItemSet &); - virtual void SetVisArea (const Rectangle & rVisArea) SAL_OVERRIDE; - virtual void SetModified(bool bModified) SAL_OVERRIDE; + virtual void SetVisArea (const Rectangle & rVisArea) override; + virtual void SetModified(bool bModified) override; /** Get a cursor for modifying this document * @remarks Don't store this reference, a new cursor may be made... diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx index a672ad6d74e6..c33dbb9ecd1c 100644 --- a/starmath/inc/edit.hxx +++ b/starmath/inc/edit.hxx @@ -55,22 +55,22 @@ class SmEditWindow : public vcl::Window, public DropTargetHelper Idle aCursorMoveIdle; ESelection aOldSelection; - virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual void Command(const CommandEvent& rCEvt) SAL_OVERRIDE; + virtual void KeyInput(const KeyEvent& rKEvt) override; + virtual void Command(const CommandEvent& rCEvt) override; DECL_LINK_TYPED(MenuSelectHdl, Menu *, bool); DECL_LINK_TYPED(ModifyTimerHdl, Idle *, void); DECL_LINK_TYPED(CursorMoveTimerHdl, Idle *, void); - virtual void DataChanged( const DataChangedEvent& ) SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; - virtual void MouseMove(const MouseEvent &rEvt) SAL_OVERRIDE; - virtual void MouseButtonUp(const MouseEvent &rEvt) SAL_OVERRIDE; - virtual void MouseButtonDown(const MouseEvent &rEvt) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& ) override; + virtual void Resize() override; + virtual void MouseMove(const MouseEvent &rEvt) override; + virtual void MouseButtonUp(const MouseEvent &rEvt) override; + virtual void MouseButtonDown(const MouseEvent &rEvt) override; - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE; - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; + virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override; + virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override; DECL_LINK_TYPED(EditStatusHdl, EditStatus&, void); DECL_LINK_TYPED(ScrollHdl, ScrollBar*, void); @@ -85,7 +85,7 @@ class SmEditWindow : public vcl::Window, public DropTargetHelper public: SmEditWindow(SmCmdBoxWindow& rMyCmdBoxWin); virtual ~SmEditWindow(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; SmDocShell* GetDoc(); SmViewShell* GetView(); @@ -94,10 +94,10 @@ public: SfxItemPool* GetEditEngineItemPool(); // Window - virtual void SetText(const OUString& rText) SAL_OVERRIDE; - virtual OUString GetText() const SAL_OVERRIDE; - virtual void GetFocus() SAL_OVERRIDE; - virtual void LoseFocus() SAL_OVERRIDE; + virtual void SetText(const OUString& rText) override; + virtual OUString GetText() const override; + virtual void GetFocus() override; + virtual void LoseFocus() override; ESelection GetSelection() const; void SetSelection(const ESelection& rSel); @@ -127,7 +127,7 @@ public: void StartCursorMove(); // for Accessibility - virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE; + virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override; using Window::GetAccessible; }; diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 28e419e587ce..3126f583e668 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -306,19 +306,19 @@ public: SmStructureNode( const SmStructureNode &rNode ); virtual ~SmStructureNode(); - virtual bool IsVisible() const SAL_OVERRIDE; + virtual bool IsVisible() const override; - virtual sal_uInt16 GetNumSubNodes() const SAL_OVERRIDE; + virtual sal_uInt16 GetNumSubNodes() const override; void SetNumSubNodes(sal_uInt16 nSize) { aSubNodes.resize(nSize); } using SmNode::GetSubNode; - virtual SmNode * GetSubNode(sal_uInt16 nIndex) SAL_OVERRIDE; + virtual SmNode * GetSubNode(sal_uInt16 nIndex) override; void SetSubNodes(SmNode *pFirst, SmNode *pSecond, SmNode *pThird = NULL); void SetSubNodes(const SmNodeArray &rNodeArray); SmStructureNode & operator = ( const SmStructureNode &rNode ); - virtual void GetAccessibleText( OUStringBuffer &rText ) const SAL_OVERRIDE; + virtual void GetAccessibleText( OUStringBuffer &rText ) const override; void SetSubNode(size_t nIndex, SmNode* pNode) { @@ -355,10 +355,10 @@ protected: public: - virtual bool IsVisible() const SAL_OVERRIDE; - virtual sal_uInt16 GetNumSubNodes() const SAL_OVERRIDE; + virtual bool IsVisible() const override; + virtual sal_uInt16 GetNumSubNodes() const override; using SmNode::GetSubNode; - virtual SmNode * GetSubNode(sal_uInt16 nIndex) SAL_OVERRIDE; + virtual SmNode * GetSubNode(sal_uInt16 nIndex) override; }; @@ -374,7 +374,7 @@ protected: public: - virtual void GetAccessibleText( OUStringBuffer &rText ) const SAL_OVERRIDE; + virtual void GetAccessibleText( OUStringBuffer &rText ) const override; }; @@ -393,13 +393,13 @@ public: : SmGraphicNode(NRECTANGLE, rNodeToken) {} - virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE; - virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; + virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) override; + virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) override; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -421,12 +421,12 @@ public: long GetWidth() const { return nWidth; } tools::Polygon &GetPolygon() { return aPoly; } - virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE; - virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; + virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) override; + virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) override; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -481,12 +481,12 @@ public: /** Set the index within GetText() where the selection end */ void SetSelectionEnd(sal_Int32 index) {nSelectionEnd = index;} - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - virtual void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + virtual void CreateTextFromNode(OUString &rText) override; - virtual void GetAccessibleText( OUStringBuffer &rText ) const SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void GetAccessibleText( OUStringBuffer &rText ) const override; + void Accept(SmVisitor* pVisitor) override; /** Converts the character from StarMath's private area symbols to a matching Unicode character, if necessary. To be used when converting GetText() to a normal text. @@ -514,10 +514,10 @@ protected: public: SmSpecialNode(const SmToken &rNodeToken); - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -539,8 +539,8 @@ public: : SmSpecialNode(NGLYPH_SPECIAL, rNodeToken, FNT_MATH) {} - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -564,13 +564,13 @@ protected: public: SmMathSymbolNode(const SmToken &rNodeToken); - virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE; - virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; + virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) override; + virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) override; - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -608,10 +608,10 @@ public: } sal_uLong GetBodyWidth() const {return nBodyWidth;}; - virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; - virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; + virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nHeight) override; + virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) override; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -632,9 +632,9 @@ public: : SmMathSymbolNode(NDYNINTSYMBOL, rNodeToken) {} - virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE; + virtual void AdaptToY(const OutputDevice &rDev, sal_uLong nHeight) override; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -655,9 +655,9 @@ public: } SmPlaceNode() : SmMathSymbolNode(NPLACE, SmToken(TPLACE, MS_PLACE, "<?>")) {}; - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -677,9 +677,9 @@ public: SetText(OUString(MS_ERROR)); } - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -703,12 +703,12 @@ public: } using SmNode::GetLeftMost; - virtual SmNode * GetLeftMost() SAL_OVERRIDE; + virtual SmNode * GetLeftMost() override; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - virtual long GetFormulaBaseline() const SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + virtual long GetFormulaBaseline() const override; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -740,9 +740,9 @@ public: void SetUseExtraSpaces(bool bVal) { bUseExtraSpaces = bVal; } bool IsUseExtraSpaces() const { return bUseExtraSpaces; }; - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -761,9 +761,9 @@ public: : SmLineNode(NEXPRESSION, rNodeToken) {} - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -782,8 +782,8 @@ public: SetNumSubNodes(2); } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -814,9 +814,9 @@ public: SetNumSubNodes(3); } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; SmNode* Argument(); const SmNode* Argument() const; @@ -844,9 +844,9 @@ public: SetNumSubNodes(2); } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; SmDynIntegralSymbolNode* Symbol(); const SmDynIntegralSymbolNode* Symbol() const; @@ -877,8 +877,8 @@ public: SetNumSubNodes(3); } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; SmMathSymbolNode* Symbol(); const SmMathSymbolNode* Symbol() const; @@ -913,11 +913,11 @@ public: } using SmNode::GetLeftMost; - virtual SmNode * GetLeftMost() SAL_OVERRIDE; + virtual SmNode * GetLeftMost() override; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -946,8 +946,8 @@ public: bool IsAscending() const { return bAscending; } void SetAscending(bool bVal) { bAscending = bVal; } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1027,9 +1027,9 @@ public: void SetBody(SmNode* pBody) { SetSubNode(0, pBody); } void SetSubSup(SmSubSup eSubSup, SmNode* pScript) { SetSubNode( 1 + eSubSup, pScript); } - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1065,9 +1065,9 @@ public: SmMathSymbolNode* ClosingBrace(); const SmMathSymbolNode* ClosingBrace() const; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1089,9 +1089,9 @@ class SmBracebodyNode : public SmStructureNode public: inline SmBracebodyNode(const SmToken &rNodeToken); - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; long GetBodyHeight() const { return nBodyHeight; } - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + void Accept(SmVisitor* pVisitor) override; }; @@ -1128,8 +1128,8 @@ public: SmNode* Script(); const SmNode* Script() const; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1170,8 +1170,8 @@ public: long CalcSymbolHeight(const SmNode &rSymbol, const SmFormat &rFormat) const; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1188,8 +1188,8 @@ public: : SmStructureNode(NALIGN, rNodeToken) {} - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1212,9 +1212,9 @@ public: : SmStructureNode(NATTRIBUT, rNodeToken) {} - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; SmNode* Attribute(); const SmNode* Attribute() const; @@ -1246,10 +1246,10 @@ public: const Fraction & GetSizeParameter() const {return aFontSize;} const FontSizeType& GetSizeType() const {return nSizeType;} - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1277,11 +1277,11 @@ public: void SetRowCol(sal_uInt16 nMatrixRows, sal_uInt16 nMatrixCols); using SmNode::GetLeftMost; - virtual SmNode * GetLeftMost() SAL_OVERRIDE; + virtual SmNode * GetLeftMost() override; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void CreateTextFromNode(OUString &rText) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void CreateTextFromNode(OUString &rText) override; + void Accept(SmVisitor* pVisitor) override; }; @@ -1307,9 +1307,9 @@ public: sal_uInt16 GetBlankNum() const { return nNum; } void SetBlankNum(sal_uInt16 nNumber) { nNum = nNumber; } - virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) SAL_OVERRIDE; - virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) SAL_OVERRIDE; - void Accept(SmVisitor* pVisitor) SAL_OVERRIDE; + virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; + virtual void Arrange(const OutputDevice &rDev, const SmFormat &rFormat) override; + void Accept(SmVisitor* pVisitor) override; }; diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx index 9ee0deb9cce8..575dbae28cfb 100644 --- a/starmath/inc/smmod.hxx +++ b/starmath/inc/smmod.hxx @@ -107,7 +107,7 @@ public: SmModule(SfxObjectFactory* pObjFact); virtual ~SmModule(); - virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) SAL_OVERRIDE; + virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) override; svtools::ColorConfig & GetColorConfig(); @@ -123,9 +123,9 @@ public: VirtualDevice & GetDefaultVirtualDev(); //virtual methods for options dialog - virtual SfxItemSet* CreateItemSet( sal_uInt16 nId ) SAL_OVERRIDE; - virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) SAL_OVERRIDE; - virtual VclPtr<SfxTabPage> CreateTabPage( sal_uInt16 nId, vcl::Window* pParent, const SfxItemSet& rSet ) SAL_OVERRIDE; + virtual SfxItemSet* CreateItemSet( sal_uInt16 nId ) override; + virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) override; + virtual VclPtr<SfxTabPage> CreateTabPage( sal_uInt16 nId, vcl::Window* pParent, const SfxItemSet& rSet ) override; }; #define SM_MOD() ( *reinterpret_cast<SmModule**>(GetAppData(SHL_SM)) ) diff --git a/starmath/inc/symbol.hxx b/starmath/inc/symbol.hxx index f5b084cfaae4..475515fe6514 100644 --- a/starmath/inc/symbol.hxx +++ b/starmath/inc/symbol.hxx @@ -112,7 +112,7 @@ private: SymbolMap_t m_aSymbols; bool m_bModified; - virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE; + virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override; public: SmSymbolManager(); diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index 9dc6812877e6..c897e26d14b6 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -58,44 +58,44 @@ class SmModel : public SfxBaseModel, std::unique_ptr<SmPrintUIOptions> m_pPrintUIOptions; protected: virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues ) - throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, std::exception) override; virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) - throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException, std::exception) override; public: SmModel( SfxObjectShell *pObjSh = 0 ); virtual ~SmModel() throw (); //XInterface - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL acquire( ) throw() SAL_OVERRIDE; - virtual void SAL_CALL release( ) throw() SAL_OVERRIDE; + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL acquire( ) throw() override; + virtual void SAL_CALL release( ) throw() override; //XTypeProvider - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) override; static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); //XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) override; //XRenderable - virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; //XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; + virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xParent ) throw( ::com::sun::star::lang::NoSupportException, ::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 >& xParent ) throw( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception ) override; // oox::FormulaExportBase - virtual void writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oox::core::OoxmlVersion version ) SAL_OVERRIDE; - virtual void writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding) SAL_OVERRIDE; + virtual void writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oox::core::OoxmlVersion version ) override; + virtual void writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding) override; // oox::FormulaImportBase - virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ) SAL_OVERRIDE; - virtual Size getFormulaSize() const SAL_OVERRIDE; + virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ) override; + virtual Size getFormulaSize() const override; }; diff --git a/starmath/inc/utility.hxx b/starmath/inc/utility.hxx index 2b6ed9512046..4c86f33e12e4 100644 --- a/starmath/inc/utility.hxx +++ b/starmath/inc/utility.hxx @@ -156,10 +156,10 @@ public: SmFontPickListBox& operator = (const SmFontPickList& rList); - virtual void Insert(const vcl::Font &rFont) SAL_OVERRIDE; + virtual void Insert(const vcl::Font &rFont) override; using Window::Update; - virtual void Update(const vcl::Font &rFont, const vcl::Font &rNewFont) SAL_OVERRIDE; - virtual void Remove(const vcl::Font &rFont) SAL_OVERRIDE; + virtual void Update(const vcl::Font &rFont, const vcl::Font &rNewFont) override; + virtual void Remove(const vcl::Font &rFont) override; }; #endif diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index edde0168903b..39880ba1d4f6 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -87,11 +87,11 @@ protected: aFormulaDrawPos = rPos; } - virtual void DataChanged( const DataChangedEvent& ) SAL_OVERRIDE; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; - virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual void Command(const CommandEvent& rCEvt) SAL_OVERRIDE; - virtual void StateChanged( StateChangedType eChanged ) SAL_OVERRIDE; + virtual void DataChanged( const DataChangedEvent& ) override; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override; + virtual void KeyInput(const KeyEvent& rKEvt) override; + virtual void Command(const CommandEvent& rCEvt) override; + virtual void StateChanged( StateChangedType eChanged ) override; DECL_LINK_TYPED(MenuSelectHdl, Menu*, bool); private: @@ -103,13 +103,13 @@ private: public: SmGraphicWindow(SmViewShell* pShell); virtual ~SmGraphicWindow(); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; // Window - virtual void MouseButtonDown(const MouseEvent &rMEvt) SAL_OVERRIDE; - virtual void MouseMove(const MouseEvent &rMEvt) SAL_OVERRIDE; - virtual void GetFocus() SAL_OVERRIDE; - virtual void LoseFocus() SAL_OVERRIDE; + virtual void MouseButtonDown(const MouseEvent &rMEvt) override; + virtual void MouseMove(const MouseEvent &rMEvt) override; + virtual void GetFocus() override; + virtual void LoseFocus() override; SmViewShell* GetView() { @@ -136,7 +136,7 @@ public: void ApplyColorConfigValues(const svtools::ColorConfig &rColorCfg); // for Accessibility - virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE; + virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override; using Window::GetAccessible; SmGraphicAccessible* GetAccessible_Impl() @@ -153,7 +153,7 @@ public: SmGraphicController(SmGraphicWindow &, sal_uInt16, SfxBindings & ); virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState) SAL_OVERRIDE; + const SfxPoolItem* pState) override; }; class SmEditController: public SfxControllerItem @@ -167,7 +167,7 @@ public: virtual ~SmEditController(); #endif - virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) SAL_OVERRIDE; + virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) override; }; class SmCmdBoxWindow : public SfxDockingWindow @@ -183,16 +183,16 @@ class SmCmdBoxWindow : public SfxDockingWindow protected: // Window - virtual void GetFocus() SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; - virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; - virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; + virtual void GetFocus() override; + virtual void Resize() override; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override; + virtual void StateChanged( StateChangedType nStateChange ) override; - virtual Size CalcDockingSize(SfxChildAlignment eAlign) SAL_OVERRIDE; + virtual Size CalcDockingSize(SfxChildAlignment eAlign) override; virtual SfxChildAlignment CheckAlignment(SfxChildAlignment eActual, - SfxChildAlignment eWish) SAL_OVERRIDE; + SfxChildAlignment eWish) override; - virtual void ToggleFloatingMode() SAL_OVERRIDE; + virtual void ToggleFloatingMode() override; public: SmCmdBoxWindow(SfxBindings *pBindings, @@ -200,7 +200,7 @@ public: Window *pParent); virtual ~SmCmdBoxWindow (); - virtual void dispose() SAL_OVERRIDE; + virtual void dispose() override; void AdjustPosition(); @@ -247,7 +247,7 @@ class SmViewShell: public SfxViewShell bool bPasteState; DECL_LINK_TYPED( DialogClosedHdl, sfx2::FileDialogHelper*, void ); - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; /** Used to determine whether insertions using SID_INSERTSYMBOL and SID_INSERTCOMMAND * should be inserted into SmEditWindow or directly into the SmDocShell as done if the @@ -269,23 +269,23 @@ protected: const OUString& rText, sal_uInt16 MaxWidth); - virtual SfxPrinter *GetPrinter(bool bCreate = false) SAL_OVERRIDE; + virtual SfxPrinter *GetPrinter(bool bCreate = false) override; virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter, - SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false) SAL_OVERRIDE; + SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false) override; void Insert( SfxMedium& rMedium ); void InsertFrom(SfxMedium &rMedium); - virtual bool HasPrintOptionsPage() const SAL_OVERRIDE; + virtual bool HasPrintOptionsPage() const override; virtual VclPtr<SfxTabPage> CreatePrintOptionsPage(vcl::Window *pParent, - const SfxItemSet &rOptions) SAL_OVERRIDE; - virtual void Deactivate(bool IsMDIActivate) SAL_OVERRIDE; - virtual void Activate(bool IsMDIActivate) SAL_OVERRIDE; - virtual void AdjustPosSizePixel(const Point &rPos, const Size &rSize) SAL_OVERRIDE; - virtual void InnerResizePixel(const Point &rOfs, const Size &rSize) SAL_OVERRIDE; - virtual void OuterResizePixel(const Point &rOfs, const Size &rSize) SAL_OVERRIDE; - virtual void QueryObjAreaPixel( Rectangle& rRect ) const SAL_OVERRIDE; - virtual void SetZoomFactor( const Fraction &rX, const Fraction &rY ) SAL_OVERRIDE; + const SfxItemSet &rOptions) override; + virtual void Deactivate(bool IsMDIActivate) override; + virtual void Activate(bool IsMDIActivate) override; + virtual void AdjustPosSizePixel(const Point &rPos, const Size &rSize) override; + virtual void InnerResizePixel(const Point &rOfs, const Size &rSize) override; + virtual void OuterResizePixel(const Point &rOfs, const Size &rSize) override; + virtual void QueryObjAreaPixel( Rectangle& rRect ) const override; + virtual void SetZoomFactor( const Fraction &rX, const Fraction &rY ) override; public: TYPEINFO_OVERRIDE(); diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index 25b4d17e9dc0..2a7bc4b6121c 100644 --- a/starmath/inc/visitors.hxx +++ b/starmath/inc/visitors.hxx @@ -69,35 +69,35 @@ protected: class SmDefaultingVisitor : public SmVisitor { public: - void Visit( SmTableNode* pNode ) SAL_OVERRIDE; - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE; - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE; - void Visit( SmOperNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE; - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE; - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE; - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE; - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE; - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE; + void Visit( SmTableNode* pNode ) override; + void Visit( SmBraceNode* pNode ) override; + void Visit( SmBracebodyNode* pNode ) override; + void Visit( SmOperNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; + void Visit( SmAttributNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmBinVerNode* pNode ) override; + void Visit( SmBinDiagonalNode* pNode ) override; + void Visit( SmSubSupNode* pNode ) override; + void Visit( SmMatrixNode* pNode ) override; + void Visit( SmPlaceNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmSpecialNode* pNode ) override; + void Visit( SmGlyphSpecialNode* pNode ) override; + void Visit( SmMathSymbolNode* pNode ) override; + void Visit( SmBlankNode* pNode ) override; + void Visit( SmErrorNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmPolyLineNode* pNode ) override; + void Visit( SmRootNode* pNode ) override; + void Visit( SmRootSymbolNode* pNode ) override; + void Visit( SmDynIntegralNode* pNode ) override; + void Visit( SmDynIntegralSymbolNode* pNode ) override; + void Visit( SmRectangleNode* pNode ) override; + void Visit( SmVerticalBraceNode* pNode ) override; protected: ~SmDefaultingVisitor() {} @@ -114,7 +114,7 @@ public: /** Given position and device this constructor will draw the caret */ SmCaretDrawingVisitor( OutputDevice& rDevice, SmCaretPos position, Point offset, bool caretVisible ); virtual ~SmCaretDrawingVisitor() {} - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; + void Visit( SmTextNode* pNode ) override; using SmDefaultingVisitor::Visit; private: OutputDevice &rDev; @@ -124,7 +124,7 @@ private: bool isCaretVisible; protected: /** Default method for drawing pNodes */ - void DefaultVisit( SmNode* pNode ) SAL_OVERRIDE; + void DefaultVisit( SmNode* pNode ) override; }; // SmCaretPos2LineVisitor @@ -142,7 +142,7 @@ public: pos.pSelectedNode->Accept( this ); } virtual ~SmCaretPos2LineVisitor() {} - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; + void Visit( SmTextNode* pNode ) override; using SmDefaultingVisitor::Visit; SmCaretLine GetResult( ){ return line; @@ -153,7 +153,7 @@ private: SmCaretPos pos; protected: /** Default method for computing lines for pNodes */ - void DefaultVisit( SmNode* pNode ) SAL_OVERRIDE; + void DefaultVisit( SmNode* pNode ) override; }; // SmDrawingVisitor @@ -174,35 +174,35 @@ public: pTree->Accept( this ); } virtual ~SmDrawingVisitor() {} - void Visit( SmTableNode* pNode ) SAL_OVERRIDE; - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE; - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE; - void Visit( SmOperNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE; - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE; - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE; - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE; - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE; - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE; + void Visit( SmTableNode* pNode ) override; + void Visit( SmBraceNode* pNode ) override; + void Visit( SmBracebodyNode* pNode ) override; + void Visit( SmOperNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; + void Visit( SmAttributNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmBinVerNode* pNode ) override; + void Visit( SmBinDiagonalNode* pNode ) override; + void Visit( SmSubSupNode* pNode ) override; + void Visit( SmMatrixNode* pNode ) override; + void Visit( SmPlaceNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmSpecialNode* pNode ) override; + void Visit( SmGlyphSpecialNode* pNode ) override; + void Visit( SmMathSymbolNode* pNode ) override; + void Visit( SmBlankNode* pNode ) override; + void Visit( SmErrorNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmPolyLineNode* pNode ) override; + void Visit( SmRootNode* pNode ) override; + void Visit( SmRootSymbolNode* pNode ) override; + void Visit( SmDynIntegralNode* pNode ) override; + void Visit( SmDynIntegralSymbolNode* pNode ) override; + void Visit( SmRectangleNode* pNode ) override; + void Visit( SmVerticalBraceNode* pNode ) override; private: /** Draw the children of a pNode * This the default method, use by most pNodes @@ -233,13 +233,13 @@ class SmSetSelectionVisitor : public SmDefaultingVisitor public: SmSetSelectionVisitor( SmCaretPos startPos, SmCaretPos endPos, SmNode* pNode); virtual ~SmSetSelectionVisitor() {} - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; using SmDefaultingVisitor::Visit; /** Set IsSelected on all pNodes of pSubTree */ static void SetSelectedOnAll( SmNode* pSubTree, bool IsSelected = true ); @@ -250,7 +250,7 @@ private: * Also note that pNodes such as SmBinVerNode cannot be selected, don't this method for * it. */ - void DefaultVisit( SmNode* pNode ) SAL_OVERRIDE; + void DefaultVisit( SmNode* pNode ) override; void VisitCompositionNode( SmNode* pNode ); /** Caret position where the selection starts */ SmCaretPos StartPos; @@ -293,35 +293,35 @@ public: /** Builds a caret position graph for pRootNode */ SmCaretPosGraphBuildingVisitor( SmNode* pRootNode ); virtual ~SmCaretPosGraphBuildingVisitor(); - void Visit( SmTableNode* pNode ) SAL_OVERRIDE; - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE; - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE; - void Visit( SmOperNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE; - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE; - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE; - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE; - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE; - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE; + void Visit( SmTableNode* pNode ) override; + void Visit( SmBraceNode* pNode ) override; + void Visit( SmBracebodyNode* pNode ) override; + void Visit( SmOperNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; + void Visit( SmAttributNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmBinVerNode* pNode ) override; + void Visit( SmBinDiagonalNode* pNode ) override; + void Visit( SmSubSupNode* pNode ) override; + void Visit( SmMatrixNode* pNode ) override; + void Visit( SmPlaceNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmSpecialNode* pNode ) override; + void Visit( SmGlyphSpecialNode* pNode ) override; + void Visit( SmMathSymbolNode* pNode ) override; + void Visit( SmBlankNode* pNode ) override; + void Visit( SmErrorNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmPolyLineNode* pNode ) override; + void Visit( SmRootNode* pNode ) override; + void Visit( SmRootSymbolNode* pNode ) override; + void Visit( SmDynIntegralNode* pNode ) override; + void Visit( SmDynIntegralSymbolNode* pNode ) override; + void Visit( SmRectangleNode* pNode ) override; + void Visit( SmVerticalBraceNode* pNode ) override; SmCaretPosGraph* takeGraph() { return mpGraph.release(); @@ -342,35 +342,35 @@ class SmCloningVisitor : public SmVisitor public: SmCloningVisitor( ){ pResult = NULL; } virtual ~SmCloningVisitor() {} - void Visit( SmTableNode* pNode ) SAL_OVERRIDE; - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE; - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE; - void Visit( SmOperNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE; - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE; - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE; - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE; - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE; - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE; + void Visit( SmTableNode* pNode ) override; + void Visit( SmBraceNode* pNode ) override; + void Visit( SmBracebodyNode* pNode ) override; + void Visit( SmOperNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; + void Visit( SmAttributNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmBinVerNode* pNode ) override; + void Visit( SmBinDiagonalNode* pNode ) override; + void Visit( SmSubSupNode* pNode ) override; + void Visit( SmMatrixNode* pNode ) override; + void Visit( SmPlaceNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmSpecialNode* pNode ) override; + void Visit( SmGlyphSpecialNode* pNode ) override; + void Visit( SmMathSymbolNode* pNode ) override; + void Visit( SmBlankNode* pNode ) override; + void Visit( SmErrorNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmPolyLineNode* pNode ) override; + void Visit( SmRootNode* pNode ) override; + void Visit( SmRootSymbolNode* pNode ) override; + void Visit( SmDynIntegralNode* pNode ) override; + void Visit( SmDynIntegralSymbolNode* pNode ) override; + void Visit( SmRectangleNode* pNode ) override; + void Visit( SmVerticalBraceNode* pNode ) override; /** Clone a pNode */ SmNode* Clone( SmNode* pNode ); private: @@ -390,7 +390,7 @@ public: /** Draws a selection on rDevice for the selection on pTree */ SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, Point Offset ); virtual ~SmSelectionDrawingVisitor() {} - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; + void Visit( SmTextNode* pNode ) override; using SmDefaultingVisitor::Visit; private: /** Reference to drawing device */ @@ -402,7 +402,7 @@ private: /** Extend the area that must be selected */ void ExtendSelectionArea(const Rectangle& rArea); /** Default visiting method */ - void DefaultVisit( SmNode* pNode ) SAL_OVERRIDE; + void DefaultVisit( SmNode* pNode ) override; /** Visit the children of a given pNode */ void VisitChildren( SmNode* pNode ); }; @@ -416,35 +416,35 @@ public: SmNodeToTextVisitor( SmNode* pNode, OUString &rText ); virtual ~SmNodeToTextVisitor() {} - void Visit( SmTableNode* pNode ) SAL_OVERRIDE; - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE; - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE; - void Visit( SmOperNode* pNode ) SAL_OVERRIDE; - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE; - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE; - void Visit( SmFontNode* pNode ) SAL_OVERRIDE; - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE; - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE; - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE; - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE; - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE; - void Visit( SmTextNode* pNode ) SAL_OVERRIDE; - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE; - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE; - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE; - void Visit( SmLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE; - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootNode* pNode ) SAL_OVERRIDE; - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE; - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE; - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE; - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE; + void Visit( SmTableNode* pNode ) override; + void Visit( SmBraceNode* pNode ) override; + void Visit( SmBracebodyNode* pNode ) override; + void Visit( SmOperNode* pNode ) override; + void Visit( SmAlignNode* pNode ) override; + void Visit( SmAttributNode* pNode ) override; + void Visit( SmFontNode* pNode ) override; + void Visit( SmUnHorNode* pNode ) override; + void Visit( SmBinHorNode* pNode ) override; + void Visit( SmBinVerNode* pNode ) override; + void Visit( SmBinDiagonalNode* pNode ) override; + void Visit( SmSubSupNode* pNode ) override; + void Visit( SmMatrixNode* pNode ) override; + void Visit( SmPlaceNode* pNode ) override; + void Visit( SmTextNode* pNode ) override; + void Visit( SmSpecialNode* pNode ) override; + void Visit( SmGlyphSpecialNode* pNode ) override; + void Visit( SmMathSymbolNode* pNode ) override; + void Visit( SmBlankNode* pNode ) override; + void Visit( SmErrorNode* pNode ) override; + void Visit( SmLineNode* pNode ) override; + void Visit( SmExpressionNode* pNode ) override; + void Visit( SmPolyLineNode* pNode ) override; + void Visit( SmRootNode* pNode ) override; + void Visit( SmRootSymbolNode* pNode ) override; + void Visit( SmDynIntegralNode* pNode ) override; + void Visit( SmDynIntegralSymbolNode* pNode ) override; + void Visit( SmRectangleNode* pNode ) override; + void Visit( SmVerticalBraceNode* pNode ) override; private: /** Extract text from a pNode that constitutes a line */ void LineToText( SmNode* pNode ) { diff --git a/starmath/qa/cppunit/mock-visitor.hxx b/starmath/qa/cppunit/mock-visitor.hxx index 88ca742e3ece..63134cab648c 100644 --- a/starmath/qa/cppunit/mock-visitor.hxx +++ b/starmath/qa/cppunit/mock-visitor.hxx @@ -19,175 +19,175 @@ class MockVisitor : public SmVisitor public: virtual ~MockVisitor() {} - void Visit( SmTableNode* pNode ) SAL_OVERRIDE { + void Visit( SmTableNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmTableNode should have type NTABLE", NTABLE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmBraceNode* pNode ) SAL_OVERRIDE { + void Visit( SmBraceNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBraceNode should have type NBRACE", NBRACE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmBracebodyNode* pNode ) SAL_OVERRIDE { + void Visit( SmBracebodyNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBracebodyNode should have type NBRACEBODY", NBRACEBODY, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmOperNode* pNode ) SAL_OVERRIDE { + void Visit( SmOperNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmOperNode should have type NOPER", NOPER, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmAlignNode* pNode ) SAL_OVERRIDE { + void Visit( SmAlignNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmAlignNode should have type NALIGN", NALIGN, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmAttributNode* pNode ) SAL_OVERRIDE { + void Visit( SmAttributNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmAttributNode should have type NATTRIBUT", NATTRIBUT, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmFontNode* pNode ) SAL_OVERRIDE { + void Visit( SmFontNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmFontNode should have type NFONT", NFONT, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmUnHorNode* pNode ) SAL_OVERRIDE { + void Visit( SmUnHorNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmUnHorNode should have type NUNHOR", NUNHOR, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmBinHorNode* pNode ) SAL_OVERRIDE { + void Visit( SmBinHorNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBinHorNode should have type NBINHOR", NBINHOR, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmBinVerNode* pNode ) SAL_OVERRIDE { + void Visit( SmBinVerNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBinVerNode should have type NBINVER", NBINVER, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmBinDiagonalNode* pNode ) SAL_OVERRIDE { + void Visit( SmBinDiagonalNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBinDiagonalNode should have type NBINDIAGONAL", NBINDIAGONAL, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmSubSupNode* pNode ) SAL_OVERRIDE { + void Visit( SmSubSupNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmSubSupNode should have type NSUBSUP", NSUBSUP, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmMatrixNode* pNode ) SAL_OVERRIDE { + void Visit( SmMatrixNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmMatrixNode should have type NMATRIX", NMATRIX, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmPlaceNode* pNode ) SAL_OVERRIDE { + void Visit( SmPlaceNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmPlaceNode should have type NPLACE", NPLACE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmTextNode* pNode ) SAL_OVERRIDE { + void Visit( SmTextNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmTextNode should have type NTEXT", NTEXT, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmSpecialNode* pNode ) SAL_OVERRIDE { + void Visit( SmSpecialNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmSpecialNode should have type NSPECIAL", NSPECIAL, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmGlyphSpecialNode* pNode ) SAL_OVERRIDE { + void Visit( SmGlyphSpecialNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmGlyphSpecialNode should have type NGLYPH_SPECIAL", NGLYPH_SPECIAL, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmMathSymbolNode* pNode ) SAL_OVERRIDE { + void Visit( SmMathSymbolNode* pNode ) override { CPPUNIT_ASSERT_MESSAGE("SmMathSymbolNode should have type NMATH or NMATHIDENT", pNode->GetType() == NMATH || pNode->GetType() == NMATHIDENT); VisitChildren( pNode ); } - void Visit( SmBlankNode* pNode ) SAL_OVERRIDE { + void Visit( SmBlankNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmBlankNode should have type NBLANK", NBLANK, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmErrorNode* pNode ) SAL_OVERRIDE { + void Visit( SmErrorNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmErrorNode should have type NERROR", NERROR, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmLineNode* pNode ) SAL_OVERRIDE { + void Visit( SmLineNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmLineNode should have type NLINE", NLINE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmExpressionNode* pNode ) SAL_OVERRIDE { + void Visit( SmExpressionNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmExpressionNode should have type NEXPRESSION", NEXPRESSION, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmPolyLineNode* pNode ) SAL_OVERRIDE { + void Visit( SmPolyLineNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmPolyLineNode should have type NPOLYLINE", NPOLYLINE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmRootNode* pNode ) SAL_OVERRIDE { + void Visit( SmRootNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmRootNode should have type NROOT", NROOT, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmRootSymbolNode* pNode ) SAL_OVERRIDE { + void Visit( SmRootSymbolNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmRootSymbolNode should have type NROOTSYMBOL", NROOTSYMBOL, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmDynIntegralNode* pNode ) SAL_OVERRIDE { + void Visit( SmDynIntegralNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmDynIntegralNode should have type NDYNINT", NDYNINT, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmDynIntegralSymbolNode* pNode ) SAL_OVERRIDE { + void Visit( SmDynIntegralSymbolNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmDynIntegralSymbolNode should have type NDYNINTSYMBOL", NDYNINTSYMBOL, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmRectangleNode* pNode ) SAL_OVERRIDE { + void Visit( SmRectangleNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmRectangleNode should have type NRECTANGLE", NRECTANGLE, pNode->GetType()); VisitChildren( pNode ); } - void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE { + void Visit( SmVerticalBraceNode* pNode ) override { CPPUNIT_ASSERT_EQUAL_MESSAGE("SmVerticalBraceNode should have type NVERTICAL_BRACE", NVERTICAL_BRACE, pNode->GetType()); VisitChildren( pNode ); diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx index 2b105cbca164..a539761f43ab 100644 --- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx +++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx @@ -32,8 +32,8 @@ class Test : public test::BootstrapFixture { public: // init - virtual void setUp() SAL_OVERRIDE; - virtual void tearDown() SAL_OVERRIDE; + virtual void setUp() override; + virtual void tearDown() override; // tests void SimpleUnaryOp(); diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 2a19ac6d5fae..7e344529c8ae 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -37,8 +37,8 @@ public: Test(); // init - virtual void setUp() SAL_OVERRIDE; - virtual void tearDown() SAL_OVERRIDE; + virtual void setUp() override; + virtual void tearDown() override; // tests void editUndoRedo(); diff --git a/starmath/qa/extras/mmlimport-test.cxx b/starmath/qa/extras/mmlimport-test.cxx index d0cccd782102..43130190c6e4 100644 --- a/starmath/qa/extras/mmlimport-test.cxx +++ b/starmath/qa/extras/mmlimport-test.cxx @@ -26,8 +26,8 @@ typedef tools::SvRef<SmDocShell> SmDocShellRef; class Test : public test::BootstrapFixture { public: - virtual void setUp() SAL_OVERRIDE; - virtual void tearDown() SAL_OVERRIDE; + virtual void setUp() override; + virtual void tearDown() override; void testSimple(); void testNsPrefixMath(); diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index 82c45acee0da..b671b23656df 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -90,58 +90,58 @@ public: const ::com::sun::star::uno::Any &rNewVal); // XAccessible - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleComponent - virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleContext - virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleEventBroadcaster - virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleText - virtual sal_Int32 SAL_CALL getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getSelectedText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int32 SAL_CALL getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getSelectedText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; }; @@ -169,10 +169,10 @@ public: explicit SmViewForwarder( SmEditAccessible &rAcc ); virtual ~SmViewForwarder(); - virtual bool IsValid() const SAL_OVERRIDE; - virtual Rectangle GetVisArea() const SAL_OVERRIDE; - virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const SAL_OVERRIDE; - virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const SAL_OVERRIDE; + virtual bool IsValid() const override; + virtual Rectangle GetVisArea() const override; + virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const override; + virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const override; }; @@ -191,57 +191,57 @@ public: SmTextForwarder( SmEditAccessible& rAcc, SmEditSource & rSource ); virtual ~SmTextForwarder(); - virtual sal_Int32 GetParagraphCount() const SAL_OVERRIDE; - virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const SAL_OVERRIDE; - virtual OUString GetText( const ESelection& rSel ) const SAL_OVERRIDE; - virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const SAL_OVERRIDE; - virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) SAL_OVERRIDE; - virtual void RemoveAttribs( const ESelection& rSelection, bool bRemoveParaAttribs, sal_uInt16 nWhich ) SAL_OVERRIDE; - virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const SAL_OVERRIDE; - - virtual SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const SAL_OVERRIDE; - virtual SfxItemState GetItemState( sal_Int32 nPara, sal_uInt16 nWhich ) const SAL_OVERRIDE; - - virtual void QuickInsertText( const OUString& rText, const ESelection& rSel ) SAL_OVERRIDE; - virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) SAL_OVERRIDE; - virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) SAL_OVERRIDE; - virtual void QuickInsertLineBreak( const ESelection& rSel ) SAL_OVERRIDE; - - virtual SfxItemPool* GetPool() const SAL_OVERRIDE; - - virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rpTxtColor, Color*& rpFldColor ) SAL_OVERRIDE; - virtual void FieldClicked(const SvxFieldItem&, sal_Int32, sal_Int32) SAL_OVERRIDE; - virtual bool IsValid() const SAL_OVERRIDE; - - virtual LanguageType GetLanguage( sal_Int32, sal_Int32 ) const SAL_OVERRIDE; - virtual sal_Int32 GetFieldCount( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual EFieldInfo GetFieldInfo( sal_Int32 nPara, sal_uInt16 nField ) const SAL_OVERRIDE; - virtual EBulletInfo GetBulletInfo( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual Rectangle GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex ) const SAL_OVERRIDE; - virtual Rectangle GetParaBounds( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual MapMode GetMapMode() const SAL_OVERRIDE; - virtual OutputDevice* GetRefDevice() const SAL_OVERRIDE; - virtual bool GetIndexAtPoint( const Point&, sal_Int32& nPara, sal_Int32& nIndex ) const SAL_OVERRIDE; - virtual bool GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal_Int32& nStart, sal_Int32& nEnd ) const SAL_OVERRIDE; - virtual bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell = false ) const SAL_OVERRIDE; - virtual sal_Int32 GetLineCount( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual sal_Int32 GetLineLen( sal_Int32 nPara, sal_Int32 nLine ) const SAL_OVERRIDE; - virtual void GetLineBoundaries( /*out*/sal_Int32 &rStart, /*out*/sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine ) const SAL_OVERRIDE; - virtual sal_Int32 GetLineNumberAtIndex( sal_Int32 nPara, sal_Int32 nLine ) const SAL_OVERRIDE; - virtual bool Delete( const ESelection& ) SAL_OVERRIDE; - virtual bool InsertText( const OUString&, const ESelection& ) SAL_OVERRIDE; - virtual bool QuickFormatDoc( bool bFull = false ) SAL_OVERRIDE; - - virtual sal_Int16 GetDepth( sal_Int32 nPara ) const SAL_OVERRIDE; - virtual bool SetDepth( sal_Int32 nPara, sal_Int16 nNewDepth ) SAL_OVERRIDE; - - virtual const SfxItemSet* GetEmptyItemSetPtr() SAL_OVERRIDE; + virtual sal_Int32 GetParagraphCount() const override; + virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const override; + virtual OUString GetText( const ESelection& rSel ) const override; + virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const override; + virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override; + virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override; + virtual void RemoveAttribs( const ESelection& rSelection, bool bRemoveParaAttribs, sal_uInt16 nWhich ) override; + virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override; + + virtual SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override; + virtual SfxItemState GetItemState( sal_Int32 nPara, sal_uInt16 nWhich ) const override; + + virtual void QuickInsertText( const OUString& rText, const ESelection& rSel ) override; + virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) override; + virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) override; + virtual void QuickInsertLineBreak( const ESelection& rSel ) override; + + virtual SfxItemPool* GetPool() const override; + + virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rpTxtColor, Color*& rpFldColor ) override; + virtual void FieldClicked(const SvxFieldItem&, sal_Int32, sal_Int32) override; + virtual bool IsValid() const override; + + virtual LanguageType GetLanguage( sal_Int32, sal_Int32 ) const override; + virtual sal_Int32 GetFieldCount( sal_Int32 nPara ) const override; + virtual EFieldInfo GetFieldInfo( sal_Int32 nPara, sal_uInt16 nField ) const override; + virtual EBulletInfo GetBulletInfo( sal_Int32 nPara ) const override; + virtual Rectangle GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex ) const override; + virtual Rectangle GetParaBounds( sal_Int32 nPara ) const override; + virtual MapMode GetMapMode() const override; + virtual OutputDevice* GetRefDevice() const override; + virtual bool GetIndexAtPoint( const Point&, sal_Int32& nPara, sal_Int32& nIndex ) const override; + virtual bool GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal_Int32& nStart, sal_Int32& nEnd ) const override; + virtual bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell = false ) const override; + virtual sal_Int32 GetLineCount( sal_Int32 nPara ) const override; + virtual sal_Int32 GetLineLen( sal_Int32 nPara, sal_Int32 nLine ) const override; + virtual void GetLineBoundaries( /*out*/sal_Int32 &rStart, /*out*/sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine ) const override; + virtual sal_Int32 GetLineNumberAtIndex( sal_Int32 nPara, sal_Int32 nLine ) const override; + virtual bool Delete( const ESelection& ) override; + virtual bool InsertText( const OUString&, const ESelection& ) override; + virtual bool QuickFormatDoc( bool bFull = false ) override; + + virtual sal_Int16 GetDepth( sal_Int32 nPara ) const override; + virtual bool SetDepth( sal_Int32 nPara, sal_Int16 nNewDepth ) override; + + virtual const SfxItemSet* GetEmptyItemSetPtr() override; // implementation functions for XParagraphAppend and XTextPortionAppend - virtual void AppendParagraph() SAL_OVERRIDE; - virtual sal_Int32 AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet ) SAL_OVERRIDE; + virtual void AppendParagraph() override; + virtual sal_Int32 AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet ) override; - virtual void CopyText(const SvxTextForwarder& rSource) SAL_OVERRIDE; + virtual void CopyText(const SvxTextForwarder& rSource) override; }; @@ -257,17 +257,17 @@ public: explicit SmEditViewForwarder( SmEditAccessible& rAcc ); virtual ~SmEditViewForwarder(); - virtual bool IsValid() const SAL_OVERRIDE; + virtual bool IsValid() const override; - virtual Rectangle GetVisArea() const SAL_OVERRIDE; - virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const SAL_OVERRIDE; - virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const SAL_OVERRIDE; + virtual Rectangle GetVisArea() const override; + virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const override; + virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const override; - virtual bool GetSelection( ESelection& rSelection ) const SAL_OVERRIDE; - virtual bool SetSelection( const ESelection& rSelection ) SAL_OVERRIDE; - virtual bool Copy() SAL_OVERRIDE; - virtual bool Cut() SAL_OVERRIDE; - virtual bool Paste() SAL_OVERRIDE; + virtual bool GetSelection( ESelection& rSelection ) const override; + virtual bool SetSelection( const ESelection& rSelection ) override; + virtual bool Copy() override; + virtual bool Cut() override; + virtual bool Paste() override; }; @@ -288,12 +288,12 @@ public: SmEditSource( SmEditWindow *pWin, SmEditAccessible &rAcc ); virtual ~SmEditSource(); - virtual SvxEditSource* Clone() const SAL_OVERRIDE; - virtual SvxTextForwarder* GetTextForwarder() SAL_OVERRIDE; - virtual SvxViewForwarder* GetViewForwarder() SAL_OVERRIDE; - virtual SvxEditViewForwarder* GetEditViewForwarder( bool bCreate = false ) SAL_OVERRIDE; - virtual void UpdateData() SAL_OVERRIDE; - virtual SfxBroadcaster& GetBroadcaster() const SAL_OVERRIDE; + virtual SvxEditSource* Clone() const override; + virtual SvxTextForwarder* GetTextForwarder() override; + virtual SvxViewForwarder* GetViewForwarder() override; + virtual SvxEditViewForwarder* GetEditViewForwarder( bool bCreate = false ) override; + virtual void UpdateData() override; + virtual SfxBroadcaster& GetBroadcaster() const override; }; @@ -335,39 +335,39 @@ public: EditView * GetEditView() { return pWin ? pWin->GetEditView() : 0; } // XAccessible - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleComponent - virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleContext - virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) override; // XAccessibleEventBroadcaster - virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; }; diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx index bfc6d37a6d55..16b1f84ee8c9 100644 --- a/starmath/source/cfgitem.hxx +++ b/starmath/source/cfgitem.hxx @@ -139,14 +139,14 @@ protected: return const_cast<SmMathConfig*>(this)->GetFontFormatList(); } - virtual void ImplCommit() SAL_OVERRIDE; + virtual void ImplCommit() override; public: SmMathConfig(); virtual ~SmMathConfig(); // utl::ConfigItem - virtual void Notify( const com::sun::star::uno::Sequence< OUString > &rPropertyNames ) SAL_OVERRIDE; + virtual void Notify( const com::sun::star::uno::Sequence< OUString > &rPropertyNames ) override; SmSymbolManager & GetSymbolManager(); void GetSymbols( std::vector< SmSym > &rSymbols ) const; diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx index abd193c4be22..f04f416dc83f 100644 --- a/starmath/source/mathmlexport.hxx +++ b/starmath/source/mathmlexport.hxx @@ -109,16 +109,16 @@ public: virtual ~SmXMLExport() {}; // XUnoTunnel - sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception) override; static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); - void _ExportAutoStyles() SAL_OVERRIDE {} - void _ExportMasterStyles() SAL_OVERRIDE {} - void _ExportContent() SAL_OVERRIDE; - sal_uInt32 exportDoc(enum ::xmloff::token::XMLTokenEnum eClass) SAL_OVERRIDE; + void _ExportAutoStyles() override {} + void _ExportMasterStyles() override {} + void _ExportContent() override; + sal_uInt32 exportDoc(enum ::xmloff::token::XMLTokenEnum eClass) override; - virtual void GetViewSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps) SAL_OVERRIDE; - virtual void GetConfigurationSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps) SAL_OVERRIDE; + virtual void GetViewSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps) override; + virtual void GetConfigurationSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps) override; bool GetSuccess() {return bSuccess;} }; diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 51b729b3239e..8e4f65749ea4 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -542,8 +542,8 @@ public: } virtual void TCharacters(const OUString & /*rChars*/); - virtual void Characters(const OUString &rChars) SAL_OVERRIDE; - virtual SvXMLImportContext *CreateChildContext(sal_uInt16 /*nPrefix*/, const OUString& /*rLocalName*/, const uno::Reference< xml::sax::XAttributeList > & /*xAttrList*/) SAL_OVERRIDE; + virtual void Characters(const OUString &rChars) override; + virtual SvXMLImportContext *CreateChildContext(sal_uInt16 /*nPrefix*/, const OUString& /*rLocalName*/, const uno::Reference< xml::sax::XAttributeList > & /*xAttrList*/) override; }; void SmXMLImportContext::TCharacters(const OUString & /*rChars*/) @@ -754,9 +754,9 @@ public: const OUString& rLName) : SmXMLImportContext(rImport,nPrfx,rLName) {} - virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -773,13 +773,13 @@ public: : SmXMLDocContext_Impl(rImport,nPrefix,rLName) { nElementCount = GetSmImport().GetNodeStack().size(); } - virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; SvXMLImportContext *StrictCreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList); - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -793,7 +793,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLEncloseContext_Impl::EndElement() @@ -817,7 +817,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -829,7 +829,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -841,7 +841,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -857,8 +857,8 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName), aStyleHelper(*this) {} - void EndElement() SAL_OVERRIDE; - void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) SAL_OVERRIDE; + void EndElement() override; + void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) override; }; void SmXMLStyleContext_Impl::StartElement(const uno::Reference< @@ -891,7 +891,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLPaddedContext_Impl::EndElement() @@ -915,7 +915,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLPhantomContext_Impl::EndElement() @@ -953,8 +953,8 @@ public: : SmXMLRowContext_Impl(rImport,nPrefix,rLName), cBegin('('), cEnd(')') {} - void StartElement(const uno::Reference< xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE; - void EndElement() SAL_OVERRIDE; + void StartElement(const uno::Reference< xml::sax::XAttributeList > & xAttrList ) override; + void EndElement() override; }; @@ -1044,7 +1044,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLErrorContext_Impl::EndElement() @@ -1080,9 +1080,9 @@ public: aToken.eType = TNUMBER; } - virtual void TCharacters(const OUString &rChars) SAL_OVERRIDE; + virtual void TCharacters(const OUString &rChars) override; - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLNumberContext_Impl::TCharacters(const OUString &rChars) @@ -1106,9 +1106,9 @@ public: const OUString& rLName) : SmXMLImportContext(rImport,nPrefix,rLName), bIsStarMath(false) {} - virtual void Characters(const OUString &rChars) SAL_OVERRIDE; + virtual void Characters(const OUString &rChars) override; - void StartElement(const uno::Reference<xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE; + void StartElement(const uno::Reference<xml::sax::XAttributeList > & xAttrList ) override; }; void SmXMLAnnotationContext_Impl::StartElement(const uno::Reference< @@ -1159,9 +1159,9 @@ public: aToken.eType = TTEXT; } - virtual void TCharacters(const OUString &rChars) SAL_OVERRIDE; + virtual void TCharacters(const OUString &rChars) override; - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLTextContext_Impl::TCharacters(const OUString &rChars) @@ -1191,9 +1191,9 @@ public: aToken.eType = TTEXT; } - virtual void TCharacters(const OUString &rChars) SAL_OVERRIDE; + virtual void TCharacters(const OUString &rChars) override; - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLStringContext_Impl::TCharacters(const OUString &rChars) @@ -1234,12 +1234,12 @@ public: aToken.eType = TIDENT; } - void TCharacters(const OUString &rChars) SAL_OVERRIDE; - void StartElement(const uno::Reference< xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE + void TCharacters(const OUString &rChars) override; + void StartElement(const uno::Reference< xml::sax::XAttributeList > & xAttrList ) override { aStyleHelper.RetrieveAttrs(xAttrList); }; - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; void SmXMLIdentifierContext_Impl::EndElement() @@ -1298,9 +1298,9 @@ public: aToken.nLevel = 5; } - void TCharacters(const OUString &rChars) SAL_OVERRIDE; - void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) SAL_OVERRIDE; - void EndElement() SAL_OVERRIDE; + void TCharacters(const OUString &rChars) override; + void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) override; + void EndElement() override; }; void SmXMLOperatorContext_Impl::TCharacters(const OUString &rChars) @@ -1357,7 +1357,7 @@ public: const OUString& rLName) : SmXMLImportContext(rImport,nPrefix,rLName) {} - void StartElement(const uno::Reference< xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE; + void StartElement(const uno::Reference< xml::sax::XAttributeList >& xAttrList ) override; }; void SmXMLSpaceContext_Impl::StartElement( @@ -1386,7 +1386,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE + void EndElement() override { GenericEndElement(TRSUB,RSUB); } @@ -1428,7 +1428,7 @@ public: const OUString& rLName) : SmXMLSubContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE + void EndElement() override { GenericEndElement(TRSUP,RSUP); } @@ -1446,7 +1446,7 @@ public: const OUString& rLName) : SmXMLRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE + void EndElement() override { GenericEndElement(TRSUB,RSUB,RSUP); } @@ -1494,8 +1494,8 @@ public: , nAttrCount( 0 ) {} - void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) SAL_OVERRIDE; - void EndElement() SAL_OVERRIDE; + void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) override; + void EndElement() override; void HandleAccent(); }; @@ -1559,8 +1559,8 @@ public: const OUString& rLName) : SmXMLSubContext_Impl(rImport,nPrefix,rLName), nAttrCount(0) {} - void EndElement() SAL_OVERRIDE; - void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) SAL_OVERRIDE; + void EndElement() override; + void StartElement(const uno::Reference< xml::sax::XAttributeList > &xAttrList ) override; void HandleAccent(); }; @@ -1614,7 +1614,7 @@ public: const OUString& rLName) : SmXMLSubSupContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE + void EndElement() override { GenericEndElement(TCSUB,CSUB,CSUP); } @@ -1634,10 +1634,10 @@ public: SmXMLSubSupContext_Impl(rImport,nPrefix,rLName), bHasPrescripts(false) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, - const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; }; @@ -1649,7 +1649,7 @@ public: const OUString& rLName) : SmXMLImportContext(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; }; @@ -1686,7 +1686,7 @@ public: SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, - const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; }; @@ -1700,10 +1700,10 @@ public: SmXMLTableRowContext_Impl(rImport,nPrefix,rLName) {} - void EndElement() SAL_OVERRIDE; + void EndElement() override; SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, - const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; }; @@ -1729,7 +1729,7 @@ public: {} /*Don't do anything with alignment for now*/ - void EndElement() SAL_OVERRIDE + void EndElement() override { } }; @@ -1747,8 +1747,8 @@ public: , mnSelection(1) {} - void StartElement(const uno::Reference<xml::sax::XAttributeList> &xAttrList) SAL_OVERRIDE; - void EndElement() SAL_OVERRIDE; + void StartElement(const uno::Reference<xml::sax::XAttributeList> &xAttrList) override; + void EndElement() override; }; @@ -1762,7 +1762,7 @@ public: const OUString& rLName) : SvXMLImportContext(rImport,nPrfx,rLName) {} - virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) SAL_OVERRIDE; + virtual SvXMLImportContext *CreateChildContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList > &xAttrList) override; }; SvXMLImportContext *SmXMLOfficeContext_Impl::CreateChildContext(sal_uInt16 nPrefix, @@ -1801,7 +1801,7 @@ public: virtual ~SmXMLFlatDocContext_Impl(); - virtual SvXMLImportContext *CreateChildContext(sal_uInt16 i_nPrefix, const OUString& i_rLocalName, const uno::Reference<xml::sax::XAttributeList>& i_xAttrList) SAL_OVERRIDE; + virtual SvXMLImportContext *CreateChildContext(sal_uInt16 i_nPrefix, const OUString& i_rLocalName, const uno::Reference<xml::sax::XAttributeList>& i_xAttrList) override; }; SmXMLFlatDocContext_Impl::SmXMLFlatDocContext_Impl( SmXMLImport& i_rImport, diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index d9992c871df3..b5ddc07de5ed 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -94,17 +94,17 @@ public: virtual ~SmXMLImport() throw (); // XUnoTunnel - sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception) override; static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); void SAL_CALL endDocument() throw( ::com::sun::star::xml::sax::SAXException, - ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + ::com::sun::star::uno::RuntimeException, std::exception ) override; SvXMLImportContext *CreateContext(sal_uInt16 nPrefix, const OUString &rLocalName, const com::sun::star::uno::Reference < - com::sun::star::xml::sax::XAttributeList> &xAttrList) SAL_OVERRIDE; + com::sun::star::xml::sax::XAttributeList> &xAttrList) override; SvXMLImportContext *CreateRowContext(sal_uInt16 nPrefix, const OUString &rLocalName, const com::sun::star::uno::Reference < @@ -251,8 +251,8 @@ public: SAL_WARN_UNUSED_RESULT OUString GetText() { return aText; } void SetText(const OUString &rStr) { aText = rStr; } - virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps) SAL_OVERRIDE; - virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps) SAL_OVERRIDE; + virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps) override; + virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps) override; }; diff --git a/starmath/source/ooxmlexport.hxx b/starmath/source/ooxmlexport.hxx index 0721e3fd8284..f71cf9e33916 100644 --- a/starmath/source/ooxmlexport.hxx +++ b/starmath/source/ooxmlexport.hxx @@ -24,17 +24,17 @@ public: SmOoxmlExport( const SmNode* pIn, oox::core::OoxmlVersion version ); bool ConvertFromStarMath( ::sax_fastparser::FSHelperPtr m_pSerializer ); private: - virtual void HandleVerticalStack( const SmNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleText( const SmNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleFractions( const SmNode* pNode, int nLevel, const char* type = NULL ) SAL_OVERRIDE; - virtual void HandleRoot( const SmRootNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleAttribute( const SmAttributNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleOperator( const SmOperNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleSubSupScriptInternal( const SmSubSupNode* pNode, int nLevel, int flags ) SAL_OVERRIDE; - virtual void HandleMatrix( const SmMatrixNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleBrace( const SmBraceNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleVerticalBrace( const SmVerticalBraceNode* pNode, int nLevel ) SAL_OVERRIDE; - virtual void HandleBlank() SAL_OVERRIDE; + virtual void HandleVerticalStack( const SmNode* pNode, int nLevel ) override; + virtual void HandleText( const SmNode* pNode, int nLevel ) override; + virtual void HandleFractions( const SmNode* pNode, int nLevel, const char* type = NULL ) override; + virtual void HandleRoot( const SmRootNode* pNode, int nLevel ) override; + virtual void HandleAttribute( const SmAttributNode* pNode, int nLevel ) override; + virtual void HandleOperator( const SmOperNode* pNode, int nLevel ) override; + virtual void HandleSubSupScriptInternal( const SmSubSupNode* pNode, int nLevel, int flags ) override; + virtual void HandleMatrix( const SmMatrixNode* pNode, int nLevel ) override; + virtual void HandleBrace( const SmBraceNode* pNode, int nLevel ) override; + virtual void HandleVerticalBrace( const SmVerticalBraceNode* pNode, int nLevel ) override; + virtual void HandleBlank() override; ::sax_fastparser::FSHelperPtr m_pSerializer; oox::core::OoxmlVersion version; }; diff --git a/starmath/source/rtfexport.hxx b/starmath/source/rtfexport.hxx index 71529378dcf6..b1332ccdf0f8 100644 --- a/starmath/source/rtfexport.hxx +++ b/starmath/source/rtfexport.hxx @@ -23,17 +23,17 @@ public: explicit SmRtfExport(const SmNode* pIn); bool ConvertFromStarMath(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding); private: - virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleText(const SmNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleFractions(const SmNode* pNode, int nLevel, const char* type = NULL) SAL_OVERRIDE; - virtual void HandleRoot(const SmRootNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleAttribute(const SmAttributNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleOperator(const SmOperNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) SAL_OVERRIDE; - virtual void HandleMatrix(const SmMatrixNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleBrace(const SmBraceNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) SAL_OVERRIDE; - virtual void HandleBlank() SAL_OVERRIDE; + virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) override; + virtual void HandleText(const SmNode* pNode, int nLevel) override; + virtual void HandleFractions(const SmNode* pNode, int nLevel, const char* type = NULL) override; + virtual void HandleRoot(const SmRootNode* pNode, int nLevel) override; + virtual void HandleAttribute(const SmAttributNode* pNode, int nLevel) override; + virtual void HandleOperator(const SmOperNode* pNode, int nLevel) override; + virtual void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) override; + virtual void HandleMatrix(const SmMatrixNode* pNode, int nLevel) override; + virtual void HandleBrace(const SmBraceNode* pNode, int nLevel) override; + virtual void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) override; + virtual void HandleBlank() override; OStringBuffer* m_pBuffer; rtl_TextEncoding m_nEncoding; diff --git a/starmath/source/smdetect.hxx b/starmath/source/smdetect.hxx index c04d140fa747..cbb5c480e01c 100644 --- a/starmath/source/smdetect.hxx +++ b/starmath/source/smdetect.hxx @@ -58,9 +58,9 @@ public: virtual ~SmFilterDetect(); /* XServiceInfo */ - virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override; /* Helper for XServiceInfo */ static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); @@ -70,7 +70,7 @@ public: static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::Exception ); // XExtendedFilterDetect - virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) override; }; #endif diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx index 73eff395fbe4..7c856b393c0a 100644 --- a/starmath/source/unofilter.cxx +++ b/starmath/source/unofilter.cxx @@ -34,16 +34,16 @@ public: virtual ~MathTypeFilter(); // XFilter - virtual sal_Bool SAL_CALL filter(const uno::Sequence<beans::PropertyValue>& rDescriptor) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL cancel() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual sal_Bool SAL_CALL filter(const uno::Sequence<beans::PropertyValue>& rDescriptor) throw (uno::RuntimeException, std::exception) override; + virtual void SAL_CALL cancel() throw (uno::RuntimeException, std::exception) override; // XImporter - virtual void SAL_CALL setTargetDocument(const uno::Reference<lang::XComponent>& xDoc) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setTargetDocument(const uno::Reference<lang::XComponent>& xDoc) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName() throw (uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (uno::RuntimeException, std::exception) override; + virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override; }; MathTypeFilter::MathTypeFilter(const uno::Reference< uno::XComponentContext >& rxContext) |