Kaydet (Commit) 0d43b791 tarafından Noel Grandin

### loplugin:unusedmethods

```Change-Id: I4f2635d468c9ad83b3ac93733529e01a4d03f38e
Reviewed-on: https://gerrit.libreoffice.org/64805
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>```
üst 145280ff
This diff is collapsed.
 ... ... @@ -111,32 +111,6 @@ namespace cppcanvas eDx = eDy = eM12 = eM21 = 0.0f; } void Set (const XForm& f) { eM11 = f.eM11; eM12 = f.eM12; eM21 = f.eM21; eM22 = f.eM22; eDx = f.eDx; eDy = f.eDy; } // Multiple two square matrices // [ eM11, eM12, eDx ] [ f.eM11, f.eM12, f.eDx ] // [ eM21, eM22, eDy ] x [ f.eM21, f.eM22, f.eDy ] // [ 0, 0, 1 ] [ 0, 0, 1 ] // More information: https://en.wikipedia.org/wiki/Matrix_multiplication#Square_matrices // FIXME We shouldn't modify source matrix during computation void Multiply (const XForm& f) { eM11 = eM11*f.eM11 + eM12*f.eM21; eM12 = eM11*f.eM12 + eM12*f.eM22; eM21 = eM21*f.eM11 + eM22*f.eM21; eM22 = eM21*f.eM12 + eM22*f.eM22; eDx = eDx*f.eM11 + eDy*f.eM21 + f.eDx; eDy = eDx*f.eM12 + eDy*f.eM22 + f.eDy; } friend SvStream& ReadXForm( SvStream& rIn, XForm& rXForm ) { if ( sizeof( float ) != 4 ) ... ... @@ -246,19 +220,12 @@ namespace cppcanvas ActionVector::const_iterator& o_rRangeBegin, ActionVector::const_iterator& o_rRangeEnd ) const; void processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, bool bUseWholeStream = false); ActionVector maActions; /* EMF+ */ XForm aBaseTransform; XForm aWorldTransform; std::unique_ptr aObjects [256]; float fPageScale; sal_Int32 nOriginX; sal_Int32 nOriginY; sal_Int32 nHDPI; sal_Int32 nVDPI; /* EMF+ emf header info */ sal_Int32 nFrameLeft; sal_Int32 nFrameTop; ... ... @@ -269,8 +236,6 @@ namespace cppcanvas sal_Int32 nMmX; sal_Int32 nMmY; /* multipart object data */ bool mbMultipart; sal_uInt16 mMFlags; SvMemoryStream mMStream; /* emf+ graphic state stack */ GraphicStateMap mGSStack; ... ...
 ... ... @@ -2852,11 +2852,6 @@ namespace cppcanvas const Parameters& rParams ) : CanvasGraphicHelper(rCanvas) , maActions() , fPageScale(0.0) , nOriginX(0) , nOriginY(0) , nHDPI(0) , nVDPI(0) , nFrameLeft(0) , nFrameTop(0) , nFrameRight(0) ... ... @@ -2865,8 +2860,6 @@ namespace cppcanvas , nPixY(0) , nMmX(0) , nMmY(0) , mbMultipart(false) , mMFlags(0) { memset (aObjects, 0, sizeof (aObjects)); ... ...
 ... ... @@ -56,33 +56,6 @@ public: // class OfaACorrCheckListBox ------------------------------------------ class OfaACorrCheckListBox : public SvSimpleTable { using SvSimpleTable::SetTabs; using SvTreeListBox::GetCheckButtonState; using SvTreeListBox::SetCheckButtonState; protected: virtual void SetTabs() override; virtual void HBarClick() override; virtual void KeyInput( const KeyEvent& rKEvt ) override; public: OfaACorrCheckListBox(SvSimpleTableContainer& rParent) : SvSimpleTable(rParent, WB_BORDER) { } void *GetUserData(sal_uLong nPos) { return GetEntry(nPos)->GetUserData(); } void SetUserData(sal_uLong nPos, void *pData ) { GetEntry(nPos)->SetUserData(pData); } sal_uLong GetSelectedEntryPos() { return GetModel()->GetAbsPos(FirstSelected()); } bool IsChecked(sal_uLong nPos, sal_uInt16 nCol = 0); void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, bool bChecked); static SvButtonState GetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol ); void SetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol, SvButtonState ); }; // class OfaAutocorrOptionsPage ------------------------------------------ ... ...
 ... ... @@ -654,108 +654,6 @@ IMPL_LINK_NOARG(OfaSwAutoFmtOptionsPage, EditHdl, weld::Button&, void) } } void OfaACorrCheckListBox::SetTabs() { SvSimpleTable::SetTabs(); SvLBoxTabFlags nAdjust = SvLBoxTabFlags::ADJUST_RIGHT|SvLBoxTabFlags::ADJUST_LEFT|SvLBoxTabFlags::ADJUST_CENTER|SvLBoxTabFlags::FORCE; if( aTabs.size() > 1 ) { SvLBoxTab* pTab = aTabs[1].get(); pTab->nFlags &= ~nAdjust; pTab->nFlags |= SvLBoxTabFlags::ADJUST_CENTER|SvLBoxTabFlags::FORCE; } if( aTabs.size() > 2 ) { SvLBoxTab* pTab = aTabs[2].get(); pTab->nFlags &= ~nAdjust; pTab->nFlags |= SvLBoxTabFlags::ADJUST_CENTER|SvLBoxTabFlags::FORCE; } } void OfaACorrCheckListBox::CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, bool bChecked) { if ( nPos < GetEntryCount() ) SetCheckButtonState( GetEntry(nPos), nCol, bChecked ? SvButtonState::Checked : SvButtonState::Unchecked ); } bool OfaACorrCheckListBox::IsChecked(sal_uLong nPos, sal_uInt16 nCol) { return GetCheckButtonState( GetEntry(nPos), nCol ) == SvButtonState::Checked; } void OfaACorrCheckListBox::SetCheckButtonState( SvTreeListEntry* pEntry, sal_uInt16 nCol, SvButtonState eState) { SvLBoxButton& rItem = static_cast(pEntry->GetItem(nCol + 1)); if (rItem.GetType() == SvLBoxItemType::Button) { switch( eState ) { case SvButtonState::Checked: rItem.SetStateChecked(); break; case SvButtonState::Unchecked: rItem.SetStateUnchecked(); break; case SvButtonState::Tristate: rItem.SetStateTristate(); break; } InvalidateEntry( pEntry ); } } SvButtonState OfaACorrCheckListBox::GetCheckButtonState( SvTreeListEntry* pEntry, sal_uInt16 nCol ) { SvButtonState eState = SvButtonState::Unchecked; SvLBoxButton& rItem = static_cast(pEntry->GetItem(nCol + 1)); if (rItem.GetType() == SvLBoxItemType::Button) { SvItemStateFlags nButtonFlags = rItem.GetButtonFlags(); eState = SvLBoxButtonData::ConvertToButtonState( nButtonFlags ); } return eState; } void OfaACorrCheckListBox::HBarClick() { // sorting is stopped by this override } void OfaACorrCheckListBox::KeyInput( const KeyEvent& rKEvt ) { if(!rKEvt.GetKeyCode().GetModifier() && KEY_SPACE == rKEvt.GetKeyCode().GetCode()) { sal_uLong nSelPos = GetSelectedEntryPos(); sal_uInt16 nCol = GetCurrentTabPos() - 1; if ( nCol < 2 ) { CheckEntryPos( nSelPos, nCol, !IsChecked( nSelPos, nCol ) ); CallImplEventListeners( VclEventId::CheckboxToggle, static_cast(GetEntry( nSelPos )) ); } else { sal_uInt16 nCheck = IsChecked(nSelPos, 1) ? 1 : 0; if(IsChecked(nSelPos)) nCheck += 2; nCheck--; nCheck &= 3; CheckEntryPos(nSelPos, 1, 0 != (nCheck & 1)); CheckEntryPos(nSelPos, 0, 0 != (nCheck & 2)); } } else SvSimpleTable::KeyInput(rKEvt); } OfaAutocorrReplacePage::OfaAutocorrReplacePage(TabPageParent pParent, const SfxItemSet& rSet) ... ...
 ... ... @@ -105,8 +105,6 @@ public: void ClearHeader(); void ShowTable(); void HideTable(); bool IsVisible() const; void EnableTable(); void DisableTable(); ... ...
 ... ... @@ -312,9 +312,6 @@ public: Paper GetPaper() const; static OUString GetPaperName( Paper ePaper ); /** @return A UI string for the current paper; an empty string for PAPER_USER */ OUString GetPaperName() const; /** @return Number of available paper formats */ int GetPaperInfoCount() const; ... ... @@ -541,7 +538,6 @@ public: getMultipage() const; void setLastPage( bool i_bLastPage ); VCL_DLLPRIVATE void setReversePrint( bool i_bReverse ); VCL_DLLPRIVATE bool getReversePrint() const; VCL_DLLPRIVATE void setPapersizeFromSetup( bool i_bPapersizeFromSetup ); VCL_DLLPRIVATE bool getPapersizeFromSetup() const; VCL_DLLPRIVATE Size& getPaperSizeSetup() const; ... ...
 ... ... @@ -96,12 +96,8 @@ class VCL_DLLPUBLIC SvTreeList final SvTreeListEntry* PrevSelected( const SvListView*,SvTreeListEntry* pEntry ) const; SvTreeListEntry* LastSelected( const SvListView*) const; static bool Select( SvListView*,SvTreeListEntry* pEntry, bool bSelect ); sal_uLong GetChildSelectionCount( const SvListView*,SvTreeListEntry* pParent ) const; static void Expand( SvListView*,SvTreeListEntry* pParent ); static void Collapse( SvListView*,SvTreeListEntry* pParent ); VCL_DLLPRIVATE void SetAbsolutePositions(); VCL_DLLPRIVATE void CloneChildren( ... ...
 ... ... @@ -92,18 +92,6 @@ public: const sc::ImportPostProcessData& GetImportPostProcessData() const { return maPostProcessData;} }; class ScXMLChartExportWrapper { public: ScXMLChartExportWrapper( css::uno::Reference< css::frame::XModel > const & xModel, SfxMedium& rMed ); void Export(); private: css::uno::Reference< css::frame::XModel > mxModel; css::uno::Reference< css::embed::XStorage > mxStorage; SfxMedium& mrMedium; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 ... ... @@ -250,16 +250,6 @@ void SvSimpleTable::ShowTable() m_rParentTableContainer.Show(); } void SvSimpleTable::HideTable() { m_rParentTableContainer.Hide(); } bool SvSimpleTable::IsVisible() const { return m_rParentTableContainer.IsVisible(); } void SvSimpleTable::EnableTable() { m_rParentTableContainer.Enable(); ... ...
 ... ... @@ -205,15 +205,6 @@ public: void SaveSection( SwStartNode* pSttNd ); void ReNewBoxes( const SwSelBoxes& rBoxes ); void SetColWidthParam( sal_uLong nBoxIdx, sal_uInt16 nMode, TableChgWidthHeightType nType, SwTwips nAbsDif, SwTwips nRelDif ) { m_nCurrBox = nBoxIdx; m_nCount = nMode; m_nSetColType = nType; m_nAbsDiff = static_cast(nAbsDif); m_nRelDiff = static_cast(nRelDif); } }; class SwUndoMove; ... ...
 ... ... @@ -1454,15 +1454,6 @@ OUString Printer::GetPaperName( Paper ePaper ) return (it != pSVData->maPaperNames.end()) ? it->second : OUString(); } OUString Printer::GetPaperName() const { Size aPageSize = PixelToLogic( GetPaperSizePixel(), MapMode(MapUnit::Map100thMM)); Paper ePaper = ImplGetPaperFormat( aPageSize.Width(), aPageSize.Height() ); if( ePaper == PAPER_USER ) ePaper = ImplGetPaperFormat( aPageSize.Height(), aPageSize.Width() ); return (ePaper != PAPER_USER) ? GetPaperName( ePaper ) : OUString(); } const PaperInfo& Printer::GetPaperInfo( int nPaper ) const { if( ! mpInfoPrinter ) ... ...
 ... ... @@ -1362,11 +1362,6 @@ void PrinterController::setReversePrint( bool i_bReverse ) mpImplData->mbReversePageOrder = i_bReverse; } bool PrinterController::getReversePrint() const { return mpImplData->mbReversePageOrder; } void PrinterController::setPapersizeFromSetup( bool i_bPapersizeFromSetup ) { mpImplData->mbPapersizeFromSetup = i_bPapersizeFromSetup; ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!