Kaydet (Commit) 060e3971 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods starmath

Change-Id: I543a914bb7cdfdc498cf8d9f885316fbe3e1543b
Reviewed-on: https://gerrit.libreoffice.org/17237Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d69d4f71
...@@ -98,9 +98,6 @@ public: ...@@ -98,9 +98,6 @@ public:
pGraph = NULL; pGraph = NULL;
} }
/** Gets the anchor */
SmCaretPos GetAnchor(){ return anchor->CaretPos; }
/** Get position */ /** Get position */
SmCaretPos GetPosition() const { return position->CaretPos; } SmCaretPos GetPosition() const { return position->CaretPos; }
......
...@@ -161,7 +161,6 @@ class SmFontTypeDialog : public ModalDialog ...@@ -161,7 +161,6 @@ class SmFontTypeDialog : public ModalDialog
DECL_LINK(MenuSelectHdl, Menu *); DECL_LINK(MenuSelectHdl, Menu *);
DECL_LINK(DefaultButtonClickHdl, Button *); DECL_LINK(DefaultButtonClickHdl, Button *);
DECL_LINK(HelpButtonClickHdl, Button *);
public: public:
SmFontTypeDialog(vcl::Window *pParent, OutputDevice *pFntListDevice); SmFontTypeDialog(vcl::Window *pParent, OutputDevice *pFntListDevice);
...@@ -371,7 +370,6 @@ class SmSymbolDialog : public ModalDialog ...@@ -371,7 +370,6 @@ class SmSymbolDialog : public ModalDialog
DECL_LINK(GetClickHdl, void*); DECL_LINK(GetClickHdl, void*);
void FillSymbolSets(bool bDeleteText = true); void FillSymbolSets(bool bDeleteText = true);
void SetSymbolSetManager(SmSymbolManager &rMgr);
const SmSym *GetSymbol() const; const SmSym *GetSymbol() const;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
......
...@@ -127,7 +127,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener ...@@ -127,7 +127,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
virtual void OnDocumentPrinterChanged( Printer * ) 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 InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE;
virtual bool Load( SfxMedium& rMedium ) SAL_OVERRIDE; virtual bool Load( SfxMedium& rMedium ) SAL_OVERRIDE;
void ImplSave( tools::SvRef<SotStorageStream> xStrm );
virtual bool Save() SAL_OVERRIDE; virtual bool Save() SAL_OVERRIDE;
virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE; virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE;
virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE; virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE;
......
...@@ -130,10 +130,6 @@ public: ...@@ -130,10 +130,6 @@ public:
virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE; virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE;
using Window::GetAccessible; using Window::GetAccessible;
SmEditAccessible* GetAccessible()
{
return mxAccessible.get();
}
}; };
......
...@@ -228,7 +228,6 @@ protected: ...@@ -228,7 +228,6 @@ protected:
inline void ClaimPaternity(); inline void ClaimPaternity();
private: private:
SmStructureNode* aParentNode; SmStructureNode* aParentNode;
void DumpAsDot(std::ostream &out, OUString* label, int number, int& id, int parent) const;
}; };
...@@ -426,7 +425,6 @@ public: ...@@ -426,7 +425,6 @@ public:
SmPolyLineNode(const SmToken &rNodeToken); SmPolyLineNode(const SmToken &rNodeToken);
long GetWidth() const { return nWidth; } long GetWidth() const { return nWidth; }
Size GetToSize() const { return aToSize; }
Polygon &GetPolygon() { return aPoly; } Polygon &GetPolygon() { return aPoly; }
virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE; virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE;
...@@ -845,10 +843,6 @@ public: ...@@ -845,10 +843,6 @@ public:
*/ */
class SmDynIntegralNode : public SmStructureNode class SmDynIntegralNode : public SmStructureNode
{ {
protected:
void GetHeightVerOffset(const SmRect &rRect,
long &rHeight, long &rVerOffset) const;
public: public:
SmDynIntegralNode(const SmToken &rNodeToken) SmDynIntegralNode(const SmToken &rNodeToken)
: SmStructureNode(NDYNINT, rNodeToken) : SmStructureNode(NDYNINT, rNodeToken)
......
...@@ -93,7 +93,6 @@ class SmParser ...@@ -93,7 +93,6 @@ class SmParser
void DoGlyphSpecial(); void DoGlyphSpecial();
// end of grammar // end of grammar
LanguageType GetLanguage() const { return m_nLang; }
void SetLanguage( LanguageType nNewLang ) { m_nLang = nNewLang; } void SetLanguage( LanguageType nNewLang ) { m_nLang = nNewLang; }
void Error(SmParseError Error); void Error(SmParseError Error);
...@@ -121,7 +120,6 @@ public: ...@@ -121,7 +120,6 @@ public:
const SmErrorDesc* PrevError(); const SmErrorDesc* PrevError();
const SmErrorDesc* GetError(size_t i); const SmErrorDesc* GetError(size_t i);
static const SmTokenTableEntry* GetTokenTableEntry( const OUString &rName ); 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; } std::set< OUString > GetUsedSymbols() const { return m_aUsedSymbols; }
}; };
......
...@@ -119,7 +119,6 @@ public: ...@@ -119,7 +119,6 @@ public:
void SetItalicSpaces(long nLeftSpace, long nRightSpace); void SetItalicSpaces(long nLeftSpace, long nRightSpace);
void SetWidth(sal_uLong nWidth) { aSize.Width() = nWidth; } void SetWidth(sal_uLong nWidth) { aSize.Width() = nWidth; }
void SetHeight(sal_uLong nHeight) { aSize.Height() = nHeight; }
void SetLeft(long nLeft); void SetLeft(long nLeft);
void SetRight(long nRight); void SetRight(long nRight);
...@@ -140,8 +139,6 @@ public: ...@@ -140,8 +139,6 @@ public:
long GetItalicLeftSpace() const { return nItalicLeftSpace; } long GetItalicLeftSpace() const { return nItalicLeftSpace; }
long GetItalicRightSpace() const { return nItalicRightSpace; } long GetItalicRightSpace() const { return nItalicRightSpace; }
void SetHiAttrFence(long nVal) { nHiAttrFence = nVal; }
void SetLoAttrFence(long nVal) { nLoAttrFence = nVal; }
long GetHiAttrFence() const { return nHiAttrFence; } long GetHiAttrFence() const { return nHiAttrFence; }
long GetLoAttrFence() const { return nLoAttrFence; } long GetLoAttrFence() const { return nLoAttrFence; }
...@@ -154,17 +151,10 @@ public: ...@@ -154,17 +151,10 @@ public:
inline long GetBaseline() const; inline long GetBaseline() const;
long GetBaselineOffset() const { return GetBaseline() - GetTop(); } long GetBaselineOffset() const { return GetBaseline() - GetTop(); }
void SetAlignTop(long nVal) { nAlignT = nVal; }
long GetAlignT() const { return nAlignT; } long GetAlignT() const { return nAlignT; }
long GetAlignM() const { return nAlignM; } long GetAlignM() const { return nAlignM; }
long GetAlignB() const { return nAlignB; } 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 & GetSize() const { return aSize; }
const Size GetItalicSize() const const Size GetItalicSize() const
......
...@@ -86,16 +86,11 @@ public: ...@@ -86,16 +86,11 @@ public:
sal_UCS4 GetCharacter() const { return m_cChar; } sal_UCS4 GetCharacter() const { return m_cChar; }
const OUString& GetName() const { return m_aName; } 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; } bool IsPredefined() const { return m_bPredefined; }
const OUString& GetSymbolSetName() const { return m_aSetName; } const OUString& GetSymbolSetName() const { return m_aSetName; }
void SetSymbolSetName( const OUString &rName ) { m_aSetName = rName; }
const OUString& GetExportName() const { return m_aExportName; } const OUString& GetExportName() const { return m_aExportName; }
void SetExportName( const OUString &rName ) { m_aExportName = rName; } void SetExportName( const OUString &rName ) { m_aExportName = rName; }
bool IsDocSymbol() const { return m_bDocSymbol; }
void SetDocSymbol( bool bVal ) { m_bDocSymbol = bVal; } void SetDocSymbol( bool bVal ) { m_bDocSymbol = bVal; }
// true if rSymbol has the same name, font and character // true if rSymbol has the same name, font and character
......
...@@ -83,7 +83,6 @@ public: ...@@ -83,7 +83,6 @@ public:
explicit SmGraphicAccessible( SmGraphicWindow *pGraphicWin ); explicit SmGraphicAccessible( SmGraphicWindow *pGraphicWin );
virtual ~SmGraphicAccessible(); virtual ~SmGraphicAccessible();
SmGraphicWindow * GetWin() { return pWin; }
void ClearWin(); // to be called when view is destroyed void ClearWin(); // to be called when view is destroyed
void LaunchEvent( void LaunchEvent(
const sal_Int16 nAccesibleEventId, const sal_Int16 nAccesibleEventId,
...@@ -328,7 +327,6 @@ public: ...@@ -328,7 +327,6 @@ public:
::accessibility::AccessibleTextHelper * GetTextHelper() { return pTextHelper; } ::accessibility::AccessibleTextHelper * GetTextHelper() { return pTextHelper; }
void Init(); void Init();
SmEditWindow * GetWin() { return pWin; }
void ClearWin(); // to be called when view is destroyed void ClearWin(); // to be called when view is destroyed
//! access EditEngine and EditView via the functions in the respective window //! access EditEngine and EditView via the functions in the respective window
......
...@@ -132,7 +132,6 @@ protected: ...@@ -132,7 +132,6 @@ protected:
void SetFormatModified( bool bVal ); void SetFormatModified( bool bVal );
inline bool IsFormatModified() const { return bIsFormatModified; } inline bool IsFormatModified() const { return bIsFormatModified; }
void SetFontFormatListModified( bool bVal ); void SetFontFormatListModified( bool bVal );
inline bool IsFontFormatListModified() const { return pFontFormatList && pFontFormatList->IsModified(); }
SmFontFormatList & GetFontFormatList(); SmFontFormatList & GetFontFormatList();
const SmFontFormatList & GetFontFormatList() const const SmFontFormatList & GetFontFormatList() const
......
...@@ -88,7 +88,6 @@ protected: ...@@ -88,7 +88,6 @@ protected:
bool bNoMrowContainer = false); bool bNoMrowContainer = false);
void ExportText(const SmNode *pNode, int nLevel); void ExportText(const SmNode *pNode, int nLevel);
void ExportMath(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 ExportBinaryHorizontal(const SmNode *pNode, int nLevel);
void ExportUnaryHorizontal(const SmNode *pNode, int nLevel); void ExportUnaryHorizontal(const SmNode *pNode, int nLevel);
void ExportBrace(const SmNode *pNode, int nLevel); void ExportBrace(const SmNode *pNode, int nLevel);
......
...@@ -105,10 +105,6 @@ public: ...@@ -105,10 +105,6 @@ public:
const OUString &rLocalName, const OUString &rLocalName,
const com::sun::star::uno::Reference < const com::sun::star::uno::Reference <
com::sun::star::xml::sax::XAttributeList> &xAttrList) SAL_OVERRIDE; 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, SvXMLImportContext *CreateRowContext(sal_uInt16 nPrefix,
const OUString &rLocalName, const OUString &rLocalName,
const com::sun::star::uno::Reference < const com::sun::star::uno::Reference <
......
...@@ -145,8 +145,6 @@ private: ...@@ -145,8 +145,6 @@ private:
static int xfAUTO(sal_uInt8 nTest) {return nTest&0x10;} static int xfAUTO(sal_uInt8 nTest) {return nTest&0x10;}
static int xfEMBELL(sal_uInt8 nTest) {return nTest&0x20;} static int xfEMBELL(sal_uInt8 nTest) {return nTest&0x20;}
static int xfNULL(sal_uInt8 nTest) {return nTest&0x10;} 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); void HandleNodes(SmNode *pNode,int nLevel=0);
int StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation=0); int StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation=0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment