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
64c31cc7
Kaydet (Commit)
64c31cc7
authored
Haz 11, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
code conventions, while we are at it
Change-Id: I118aa2cb8747775d8c778cf49248c7f3ef68d6a2
üst
bd60aba1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
docbm.cxx
sw/source/core/doc/docbm.cxx
+13
-13
No files found.
sw/source/core/doc/docbm.cxx
Dosyayı görüntüle @
64c31cc7
...
...
@@ -2060,30 +2060,30 @@ namespace
};
struct
CntntIdxStoreImpl
:
sw
::
mark
::
CntntIdxStore
{
std
::
vector
<
sal_uLong
>
aSaveArr
;
std
::
vector
<
BkmkEntry
>
aBkmkEntries
;
std
::
vector
<
sal_uLong
>
m_
aSaveArr
;
std
::
vector
<
BkmkEntry
>
m_
aBkmkEntries
;
virtual
void
Clear
()
SAL_OVERRIDE
{
aBkmkEntries
.
clear
();
aSaveArr
.
clear
();
m_
aBkmkEntries
.
clear
();
m_
aSaveArr
.
clear
();
}
virtual
bool
Empty
()
SAL_OVERRIDE
{
return
aBkmkEntries
.
empty
()
&&
aSaveArr
.
empty
();
return
m_aBkmkEntries
.
empty
()
&&
m_
aSaveArr
.
empty
();
}
virtual
void
Save
(
SwDoc
*
pDoc
,
sal_uLong
nNode
,
sal_Int32
nCntnt
,
sal_uInt8
nSaveFly
=
0
)
SAL_OVERRIDE
{
SaveBkmks
(
pDoc
,
nNode
,
nCntnt
);
return
_SaveCntntIdx
(
pDoc
,
nNode
,
nCntnt
,
aSaveArr
,
nSaveFly
);
return
_SaveCntntIdx
(
pDoc
,
nNode
,
nCntnt
,
m_
aSaveArr
,
nSaveFly
);
}
virtual
void
Restore
(
SwDoc
*
pDoc
,
sal_uLong
nNode
,
sal_Int32
nOffset
=
0
,
bool
bAuto
=
false
)
SAL_OVERRIDE
{
RestoreBkmks
(
pDoc
,
nNode
,
nOffset
);
return
_RestoreCntntIdx
(
pDoc
,
aSaveArr
,
nNode
,
nOffset
,
bAuto
);
return
_RestoreCntntIdx
(
pDoc
,
m_
aSaveArr
,
nNode
,
nOffset
,
bAuto
);
}
virtual
void
Restore
(
SwNode
&
rNd
,
sal_Int32
nLen
,
sal_Int32
nCorrLen
)
SAL_OVERRIDE
{
return
_RestoreCntntIdx
(
aSaveArr
,
rNd
,
nLen
,
nCorrLen
);
return
_RestoreCntntIdx
(
m_
aSaveArr
,
rNd
,
nLen
,
nCorrLen
);
}
virtual
~
CntntIdxStoreImpl
(){};
private
:
...
...
@@ -2109,7 +2109,7 @@ void CntntIdxStoreImpl::SaveBkmks(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCntnt
if
(
pBkmk
->
GetMarkPos
().
nContent
.
GetIndex
()
<
nCntnt
)
{
const
BkmkEntry
aEntry
=
{
ppBkmk
-
pMarkAccess
->
getAllMarksBegin
(),
false
,
pBkmk
->
GetMarkPos
().
nContent
.
GetIndex
()
};
aBkmkEntries
.
push_back
(
aEntry
);
m_
aBkmkEntries
.
push_back
(
aEntry
);
}
else
// if a bookmark position is equal nCntnt, the other position
bMarkPosEqual
=
true
;
// has to decide if it is added to the array
...
...
@@ -2121,10 +2121,10 @@ void CntntIdxStoreImpl::SaveBkmks(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCntnt
if
(
bMarkPosEqual
)
{
// the other position is before, the (main) position is equal
const
BkmkEntry
aEntry
=
{
ppBkmk
-
pMarkAccess
->
getAllMarksBegin
(),
false
,
pBkmk
->
GetMarkPos
().
nContent
.
GetIndex
()
};
aBkmkEntries
.
push_back
(
aEntry
);
m_
aBkmkEntries
.
push_back
(
aEntry
);
}
const
BkmkEntry
aEntry
=
{
ppBkmk
-
pMarkAccess
->
getAllMarksBegin
(),
true
,
pBkmk
->
GetOtherMarkPos
().
nContent
.
GetIndex
()
};
aBkmkEntries
.
push_back
(
aEntry
);
m_
aBkmkEntries
.
push_back
(
aEntry
);
}
}
}
...
...
@@ -2134,8 +2134,8 @@ void CntntIdxStoreImpl::RestoreBkmks(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nOf
IDocumentMarkAccess
*
const
pMarkAccess
=
pDoc
->
getIDocumentMarkAccess
();
SwCntntNode
*
pCNd
=
pDoc
->
GetNodes
()[
nNode
]
->
GetCntntNode
();
for
(
std
::
vector
<
BkmkEntry
>::
const_iterator
pEntry
=
aBkmkEntries
.
begin
();
pEntry
!=
aBkmkEntries
.
end
();
std
::
vector
<
BkmkEntry
>::
const_iterator
pEntry
=
m_
aBkmkEntries
.
begin
();
pEntry
!=
m_
aBkmkEntries
.
end
();
++
pEntry
)
{
if
(
pEntry
->
m_bOther
)
...
...
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