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
ca5f56a5
Kaydet (Commit)
ca5f56a5
authored
Nis 26, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
May 09, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(SwPageFlyCache) to boost::ptr_vector
üst
12a1e53d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
laycache.cxx
sw/source/core/layout/laycache.cxx
+1
-3
layhelp.hxx
sw/source/core/layout/layhelp.hxx
+3
-4
No files found.
sw/source/core/layout/laycache.cxx
Dosyayı görüntüle @
ca5f56a5
...
...
@@ -70,8 +70,6 @@
using
namespace
::
com
::
sun
::
star
;
SV_IMPL_PTRARR
(
SwPageFlyCache
,
SwFlyCachePtr
)
/*
* Reading and writing of the layout cache.
* The layout cache is not necessary, but it improves
...
...
@@ -158,7 +156,7 @@ sal_Bool SwLayCacheImpl::Read( SvStream& rStream )
aIo
.
GetStream
()
>>
nPgNum
>>
nIndex
>>
nX
>>
nY
>>
nW
>>
nH
;
SwFlyCache
*
pFly
=
new
SwFlyCache
(
nPgNum
,
nIndex
,
nX
,
nY
,
nW
,
nH
);
aFlyCache
.
Insert
(
pFly
,
aFlyCache
.
Count
()
);
aFlyCache
.
push_back
(
pFly
);
aIo
.
CloseRec
(
SW_LAYCACHE_IO_REC_FLY
);
break
;
}
...
...
sw/source/core/layout/layhelp.hxx
Dosyayı görüntüle @
ca5f56a5
...
...
@@ -56,8 +56,7 @@ class SvStream;
*************************************************************************/
class
SwFlyCache
;
typedef
SwFlyCache
*
SwFlyCachePtr
;
SV_DECL_PTRARR_DEL
(
SwPageFlyCache
,
SwFlyCachePtr
,
0
)
typedef
boost
::
ptr_vector
<
SwFlyCache
>
SwPageFlyCache
;
class
SwLayCacheImpl
:
public
std
::
vector
<
sal_uLong
>
{
...
...
@@ -75,8 +74,8 @@ public:
xub_StrLen
GetBreakOfst
(
size_t
nIdx
)
const
{
return
aOffset
[
nIdx
];
}
sal_uInt16
GetBreakType
(
sal_uInt16
nIdx
)
const
{
return
aType
[
nIdx
];
}
sal_uInt16
GetFlyCount
()
const
{
return
aFlyCache
.
Count
();
}
SwFlyCache
*
GetFlyCache
(
sal_uInt16
nIdx
)
const
{
return
aFlyCache
[
nIdx
];
}
sal_uInt16
GetFlyCount
()
const
{
return
aFlyCache
.
size
();
}
SwFlyCache
*
GetFlyCache
(
sal_uInt16
nIdx
)
{
return
&
aFlyCache
[
nIdx
];
}
sal_Bool
IsUseFlyCache
()
const
{
return
bUseFlyCache
;
}
};
...
...
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