include/svl/style.hxx | 4 ++-- svl/source/items/style.cxx | 32 ++++++++++++++++---------------- 2 files changed, 18 insertions(+), 18 deletions(-)
New commits: commit f584f2515b744699a3b3a7e3f9e9927e86df4a5d Author: Johnny_M <kla...@partyheld.de> Date: Sat Mar 24 12:11:58 2018 +0100 Translate German variable names Akt -> Current in svl/style Change-Id: Id6f8f7b09a8ae1768708d9fd5d11003fef1e2e42 Reviewed-on: https://gerrit.libreoffice.org/51798 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gan...@poczta.onet.pl> diff --git a/include/svl/style.hxx b/include/svl/style.hxx index d8b6e9aeb75f..48f0e1cba7ae 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -190,8 +190,8 @@ protected: private: SVL_DLLPRIVATE bool IsTrivialSearch() const; - SfxStyleSheetBase* pAktStyle; - sal_uInt16 nAktPosition; + SfxStyleSheetBase* pCurrentStyle; + sal_uInt16 nCurrentPosition; bool bSearchUsed; friend class SfxStyleSheetBasePool; diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 2e43e1f8a3a7..f42a11407375 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -395,8 +395,8 @@ struct DoesStyleMatchStyleSheetPredicate final : public svl::StyleSheetPredicate SfxStyleSheetIterator::SfxStyleSheetIterator(SfxStyleSheetBasePool *pBase, SfxStyleFamily eFam, sal_uInt16 n) - : pAktStyle(nullptr) - , nAktPosition(0) + : pCurrentStyle(nullptr) + , nCurrentPosition(0) { pBasePool=pBase; nSearchFamily=eFam; @@ -439,7 +439,7 @@ SfxStyleSheetBase* SfxStyleSheetIterator::operator[](sal_uInt16 nIdx) if( IsTrivialSearch()) { retval = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetByPosition(nIdx).get(); - nAktPosition = nIdx; + nCurrentPosition = nIdx; } else if(nMask == SFXSTYLEBIT_ALL) { @@ -448,7 +448,7 @@ SfxStyleSheetBase* SfxStyleSheetIterator::operator[](sal_uInt16 nIdx) pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetPositionsByFamily(nSearchFamily).at(nIdx)) ; retval = ref.get(); - nAktPosition = nIdx; + nCurrentPosition = nIdx; } else { @@ -457,7 +457,7 @@ SfxStyleSheetBase* SfxStyleSheetIterator::operator[](sal_uInt16 nIdx) pBasePool->pImpl->mxIndexedStyleSheets->GetNthStyleSheetThatMatchesPredicate(nIdx, predicate); if (ref.get() != nullptr) { - nAktPosition = pBasePool->pImpl->mxIndexedStyleSheets->FindStyleSheetPosition(*ref); + nCurrentPosition = pBasePool->pImpl->mxIndexedStyleSheets->FindStyleSheetPosition(*ref); retval = ref.get(); } } @@ -488,21 +488,21 @@ SfxStyleSheetBase* SfxStyleSheetIterator::Next() if ( IsTrivialSearch() ) { unsigned nStyleSheets = pBasePool->pImpl->mxIndexedStyleSheets->GetNumberOfStyleSheets(); - unsigned newPosition = nAktPosition +1; + unsigned newPosition = nCurrentPosition +1; if (nStyleSheets > newPosition) { - nAktPosition = newPosition; - retval = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetByPosition(nAktPosition).get(); + nCurrentPosition = newPosition; + retval = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetByPosition(nCurrentPosition).get(); } } else if(nMask == SFXSTYLEBIT_ALL) { - unsigned newPosition = nAktPosition +1; + unsigned newPosition = nCurrentPosition +1; const std::vector<unsigned>& familyVector = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetPositionsByFamily(nSearchFamily); if (familyVector.size() > newPosition) { - nAktPosition = newPosition; + nCurrentPosition = newPosition; unsigned stylePosition = familyVector.at(newPosition); retval = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetByPosition(stylePosition).get(); } @@ -512,13 +512,13 @@ SfxStyleSheetBase* SfxStyleSheetIterator::Next() DoesStyleMatchStyleSheetPredicate predicate(this); rtl::Reference< SfxStyleSheetBase > ref = pBasePool->pImpl->mxIndexedStyleSheets->GetNthStyleSheetThatMatchesPredicate( - 0, predicate, nAktPosition+1); + 0, predicate, nCurrentPosition+1); retval = ref.get(); if (retval != nullptr) { - nAktPosition = pBasePool->pImpl->mxIndexedStyleSheets->FindStyleSheetPosition(*ref); + nCurrentPosition = pBasePool->pImpl->mxIndexedStyleSheets->FindStyleSheetPosition(*ref); } } - pAktStyle = retval; + pCurrentStyle = retval; return retval; } @@ -535,9 +535,9 @@ SfxStyleSheetBase* SfxStyleSheetIterator::Find(const OUString& rStr) unsigned pos = positions.front(); SfxStyleSheetBase* pStyle = pBasePool->pImpl->mxIndexedStyleSheets->GetStyleSheetByPosition(pos).get(); - nAktPosition = pos; - pAktStyle = pStyle; - return pAktStyle; + nCurrentPosition = pos; + pCurrentStyle = pStyle; + return pCurrentStyle; } sal_uInt16 SfxStyleSheetIterator::GetSearchMask() const _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits