diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-20 16:22:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-21 06:54:12 +0000 |
commit | 060e39716dba27ecf585cec33a2de9a865980a42 (patch) | |
tree | d271d025fe13212d38af6839dbafbed242e187fc /starmath | |
parent | d69d4f7174ffae502c4aa9cc69786c897662dddc (diff) |
loplugin:unusedmethods starmath
Change-Id: I543a914bb7cdfdc498cf8d9f885316fbe3e1543b
Reviewed-on: https://gerrit.libreoffice.org/17237
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/cursor.hxx | 3 | ||||
-rw-r--r-- | starmath/inc/dialog.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/document.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/edit.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/node.hxx | 6 | ||||
-rw-r--r-- | starmath/inc/parse.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/rect.hxx | 10 | ||||
-rw-r--r-- | starmath/inc/symbol.hxx | 5 | ||||
-rw-r--r-- | starmath/source/accessibility.hxx | 2 | ||||
-rw-r--r-- | starmath/source/cfgitem.hxx | 1 | ||||
-rw-r--r-- | starmath/source/mathmlexport.hxx | 1 | ||||
-rw-r--r-- | starmath/source/mathmlimport.hxx | 4 | ||||
-rw-r--r-- | starmath/source/mathtype.hxx | 2 |
13 files changed, 0 insertions, 43 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 188c09843249..07f62a035afd 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -98,9 +98,6 @@ public: pGraph = NULL; } - /** Gets the anchor */ - SmCaretPos GetAnchor(){ return anchor->CaretPos; } - /** Get position */ SmCaretPos GetPosition() const { return position->CaretPos; } diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 4a64ca557f4f..a34e5057b353 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -161,7 +161,6 @@ class SmFontTypeDialog : public ModalDialog DECL_LINK(MenuSelectHdl, Menu *); DECL_LINK(DefaultButtonClickHdl, Button *); - DECL_LINK(HelpButtonClickHdl, Button *); public: SmFontTypeDialog(vcl::Window *pParent, OutputDevice *pFntListDevice); @@ -371,7 +370,6 @@ class SmSymbolDialog : public ModalDialog DECL_LINK(GetClickHdl, void*); void FillSymbolSets(bool bDeleteText = true); - void SetSymbolSetManager(SmSymbolManager &rMgr); const SmSym *GetSymbol() const; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 93dbf26797fd..24c10c950a20 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -127,7 +127,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener 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; - void ImplSave( tools::SvRef<SotStorageStream> xStrm ); virtual bool Save() SAL_OVERRIDE; virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE; virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE; diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx index ca3f95cc22da..75d1d34826d8 100644 --- a/starmath/inc/edit.hxx +++ b/starmath/inc/edit.hxx @@ -130,10 +130,6 @@ public: virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE; using Window::GetAccessible; - SmEditAccessible* GetAccessible() - { - return mxAccessible.get(); - } }; diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 9b0045b5c863..91912bb920ce 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -228,7 +228,6 @@ protected: inline void ClaimPaternity(); private: SmStructureNode* aParentNode; - void DumpAsDot(std::ostream &out, OUString* label, int number, int& id, int parent) const; }; @@ -426,7 +425,6 @@ public: SmPolyLineNode(const SmToken &rNodeToken); long GetWidth() const { return nWidth; } - Size GetToSize() const { return aToSize; } Polygon &GetPolygon() { return aPoly; } virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE; @@ -845,10 +843,6 @@ public: */ class SmDynIntegralNode : public SmStructureNode { -protected: - void GetHeightVerOffset(const SmRect &rRect, - long &rHeight, long &rVerOffset) const; - public: SmDynIntegralNode(const SmToken &rNodeToken) : SmStructureNode(NDYNINT, rNodeToken) diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 4c04e80ba8bc..d9ce5a5f7755 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -93,7 +93,6 @@ class SmParser void DoGlyphSpecial(); // end of grammar - LanguageType GetLanguage() const { return m_nLang; } void SetLanguage( LanguageType nNewLang ) { m_nLang = nNewLang; } void Error(SmParseError Error); @@ -121,7 +120,6 @@ public: const SmErrorDesc* PrevError(); const SmErrorDesc* GetError(size_t i); static const SmTokenTableEntry* GetTokenTableEntry( const OUString &rName ); - bool IsUsedSymbol( const OUString &rSymbolName ) const { return m_aUsedSymbols.find( rSymbolName ) != m_aUsedSymbols.end(); } std::set< OUString > GetUsedSymbols() const { return m_aUsedSymbols; } }; diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx index 074ae4cb36fc..d590e3e23d7a 100644 --- a/starmath/inc/rect.hxx +++ b/starmath/inc/rect.hxx @@ -119,7 +119,6 @@ public: void SetItalicSpaces(long nLeftSpace, long nRightSpace); void SetWidth(sal_uLong nWidth) { aSize.Width() = nWidth; } - void SetHeight(sal_uLong nHeight) { aSize.Height() = nHeight; } void SetLeft(long nLeft); void SetRight(long nRight); @@ -140,8 +139,6 @@ public: long GetItalicLeftSpace() const { return nItalicLeftSpace; } long GetItalicRightSpace() const { return nItalicRightSpace; } - void SetHiAttrFence(long nVal) { nHiAttrFence = nVal; } - void SetLoAttrFence(long nVal) { nLoAttrFence = nVal; } long GetHiAttrFence() const { return nHiAttrFence; } long GetLoAttrFence() const { return nLoAttrFence; } @@ -154,17 +151,10 @@ public: inline long GetBaseline() const; long GetBaselineOffset() const { return GetBaseline() - GetTop(); } - void SetAlignTop(long nVal) { nAlignT = nVal; } - long GetAlignT() const { return nAlignT; } long GetAlignM() const { return nAlignM; } long GetAlignB() const { return nAlignB; } - void SetAlignT(long nVal) { nAlignT = nVal; } - - const Point GetCenter() const - { return Point(GetCenterX(), GetCenterY()); } - const Size & GetSize() const { return aSize; } const Size GetItalicSize() const diff --git a/starmath/inc/symbol.hxx b/starmath/inc/symbol.hxx index 1f56595302da..da477ff1aa5b 100644 --- a/starmath/inc/symbol.hxx +++ b/starmath/inc/symbol.hxx @@ -86,16 +86,11 @@ public: sal_UCS4 GetCharacter() const { return m_cChar; } const OUString& GetName() const { return m_aName; } - void SetFace( const vcl::Font& rFont ) { m_aFace = rFont; } - void SetCharacter( sal_UCS4 cChar ) { m_cChar = cChar; } - bool IsPredefined() const { return m_bPredefined; } const OUString& GetSymbolSetName() const { return m_aSetName; } - void SetSymbolSetName( const OUString &rName ) { m_aSetName = rName; } const OUString& GetExportName() const { return m_aExportName; } void SetExportName( const OUString &rName ) { m_aExportName = rName; } - bool IsDocSymbol() const { return m_bDocSymbol; } void SetDocSymbol( bool bVal ) { m_bDocSymbol = bVal; } // true if rSymbol has the same name, font and character diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index b626064647b4..98cdc602d9ce 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -83,7 +83,6 @@ public: explicit SmGraphicAccessible( SmGraphicWindow *pGraphicWin ); virtual ~SmGraphicAccessible(); - SmGraphicWindow * GetWin() { return pWin; } void ClearWin(); // to be called when view is destroyed void LaunchEvent( const sal_Int16 nAccesibleEventId, @@ -328,7 +327,6 @@ public: ::accessibility::AccessibleTextHelper * GetTextHelper() { return pTextHelper; } void Init(); - SmEditWindow * GetWin() { return pWin; } void ClearWin(); // to be called when view is destroyed //! access EditEngine and EditView via the functions in the respective window diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx index 1fe89b424f05..8bdfc668c3cc 100644 --- a/starmath/source/cfgitem.hxx +++ b/starmath/source/cfgitem.hxx @@ -132,7 +132,6 @@ protected: void SetFormatModified( bool bVal ); inline bool IsFormatModified() const { return bIsFormatModified; } void SetFontFormatListModified( bool bVal ); - inline bool IsFontFormatListModified() const { return pFontFormatList && pFontFormatList->IsModified(); } SmFontFormatList & GetFontFormatList(); const SmFontFormatList & GetFontFormatList() const diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx index 9d63eaa17911..abd193c4be22 100644 --- a/starmath/source/mathmlexport.hxx +++ b/starmath/source/mathmlexport.hxx @@ -88,7 +88,6 @@ protected: bool bNoMrowContainer = false); void ExportText(const SmNode *pNode, int nLevel); void ExportMath(const SmNode *pNode, int nLevel); - void ExportPolygon(const SmNode *pNode, int nLevel); void ExportBinaryHorizontal(const SmNode *pNode, int nLevel); void ExportUnaryHorizontal(const SmNode *pNode, int nLevel); void ExportBrace(const SmNode *pNode, int nLevel); diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index 0629ce5927ed..d9992c871df3 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -105,10 +105,6 @@ public: const OUString &rLocalName, const com::sun::star::uno::Reference < com::sun::star::xml::sax::XAttributeList> &xAttrList) SAL_OVERRIDE; - SvXMLImportContext *CreateMathContext(sal_uInt16 nPrefix, - const OUString &rLocalName, - const com::sun::star::uno::Reference < - com::sun::star::xml::sax::XAttributeList> &xAttrList); SvXMLImportContext *CreateRowContext(sal_uInt16 nPrefix, const OUString &rLocalName, const com::sun::star::uno::Reference < diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx index bccb190b1af0..80eee96ee266 100644 --- a/starmath/source/mathtype.hxx +++ b/starmath/source/mathtype.hxx @@ -145,8 +145,6 @@ private: static int xfAUTO(sal_uInt8 nTest) {return nTest&0x10;} static int xfEMBELL(sal_uInt8 nTest) {return nTest&0x20;} static int xfNULL(sal_uInt8 nTest) {return nTest&0x10;} - static int xfLSPACE(sal_uInt8 nTest) {return nTest&0x40;} - static int xfRULER(sal_uInt8 nTest) {return nTest&0x20;} void HandleNodes(SmNode *pNode,int nLevel=0); int StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation=0); |