Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4e753823
Kaydet (Commit)
4e753823
authored
Mar 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
flatten and simplify
Change-Id: Iefcbf2ab06dcf18cdd0f0d82e4389ec1766927f9
üst
2049746a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
25 deletions
+16
-25
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+16
-25
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
4e753823
...
...
@@ -1523,37 +1523,28 @@ OUString SwXTextTableCursor::getRangeName()
throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString
aRet
;
SwUnoCrsr* pUnoCrsr = GetCrsr();
SwUnoTableCrsr* pTblCrsr = dynamic_cast<SwUnoTableCrsr*>(pUnoCrsr);
//!! see also SwChartDataSequence::getSourceRangeRepresentation
if
(
pTblCrsr
)
{
pTblCrsr
->
MakeBoxSels
();
const
SwStartNode
*
pNode
=
pTblCrsr
->
GetPoint
()
->
nNode
.
GetNode
().
FindTableBoxStartNode
();
const
SwTable
*
pTable
=
SwTable
::
FindTable
(
GetFrmFmt
()
);
const
SwTableBox
*
pEndBox
=
pTable
->
GetTblBox
(
pNode
->
GetIndex
());
aRet
=
pEndBox
->
GetName
();
if
(
pTblCrsr
->
HasMark
())
if(!pTblCrsr)
return OUString();
pTblCrsr->MakeBoxSels();
const SwStartNode* pNode = pTblCrsr->GetPoint()->nNode.GetNode().FindTableBoxStartNode();
const SwTable* pTable = SwTable::FindTable(GetFrmFmt());
const SwTableBox* pEndBox = pTable->GetTblBox(pNode->GetIndex());
if(pTblCrsr->HasMark())
{
pNode = pTblCrsr->GetMark()->nNode.GetNode().FindTableBoxStartNode();
const SwTableBox* pStartBox = pTable->GetTblBox(pNode->GetIndex());
if(pEndBox != pStartBox)
{
pNode
=
pTblCrsr
->
GetMark
()
->
nNode
.
GetNode
().
FindTableBoxStartNode
();
const
SwTableBox
*
pStartBox
=
pTable
->
GetTblBox
(
pNode
->
GetIndex
());
if
(
pEndBox
!=
pStartBox
)
{
// need to switch start and end?
if
(
*
pTblCrsr
->
GetPoint
()
<
*
pTblCrsr
->
GetMark
())
{
const
SwTableBox
*
pTmpBox
=
pStartBox
;
pStartBox
=
pEndBox
;
pEndBox
=
pTmpBox
;
}
aRet
=
pStartBox
->
GetName
()
+
":"
+
pEndBox
->
GetName
();
}
// need to switch start and end?
if(*pTblCrsr->GetPoint() < *pTblCrsr->GetMark())
std::swap(pStartBox, pEndBox);
return pStartBox->GetName() + ":" + pEndBox->GetName();
}
}
return
aRet
;
return
pEndBox->GetName()
;
}
sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool Expand)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment