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
aa07f289
Kaydet (Commit)
aa07f289
authored
Ara 15, 2017
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix SwTextFrame::pTextCache member
Change-Id: Ibfbc59c9df89a3cde6226bd49cf33c2ac865d4a8
üst
c186ef35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
txtfrm.hxx
sw/source/core/inc/txtfrm.hxx
+4
-4
txtfrm.cxx
sw/source/core/text/txtfrm.cxx
+3
-3
txtinit.cxx
sw/source/core/text/txtinit.cxx
+2
-2
No files found.
sw/source/core/inc/txtfrm.hxx
Dosyayı görüntüle @
aa07f289
...
...
@@ -60,7 +60,7 @@ class SW_DLLPUBLIC SwTextFrame: public SwContentFrame
/// if there are too many of them, but the "valid" flags of the frame
/// will still be set; GetFormatted() is the function that forces
/// recreation of the SwLineLayout by Format() if necessary.
static
SwCache
*
pTextCache
;
static
SwCache
*
s_
pTextCache
;
static
long
nMinPrtLine
;
// This Line must not be underrun when printing
// Hack for table cells stretching multiple pages
...
...
@@ -451,7 +451,7 @@ public:
SwTextFrame
*
FindQuoVadisFrame
();
/**
* In case the SwLineLayout was cleared out of the
pTextCache, recreate it.
* In case the SwLineLayout was cleared out of the
s_pTextCache, recreate it
*
* #i29062# GetFormatted() can trigger a full formatting
* of the paragraph, causing other layout frames to become invalid. This
...
...
@@ -472,8 +472,8 @@ public:
bool
GetDropRect
(
SwRect
&
rRect
)
const
{
return
HasPara
()
&&
GetDropRect_
(
rRect
);
}
static
SwCache
*
GetTextCache
()
{
return
pTextCache
;
}
static
void
SetTextCache
(
SwCache
*
pNew
)
{
pTextCache
=
pNew
;
}
static
SwCache
*
GetTextCache
()
{
return
s_
pTextCache
;
}
static
void
SetTextCache
(
SwCache
*
pNew
)
{
s_
pTextCache
=
pNew
;
}
static
long
GetMinPrtLine
()
{
return
nMinPrtLine
;
}
...
...
sw/source/core/text/txtfrm.cxx
Dosyayı görüntüle @
aa07f289
...
...
@@ -398,7 +398,7 @@ SwTextFrame::SwTextFrame(SwTextNode * const pNode, SwFrame* pSib )
void
SwTextFrame
::
DestroyImpl
()
{
// Remove associated SwParaPortion from pTextCache
// Remove associated SwParaPortion from
s_
pTextCache
ClearPara
();
const
SwContentNode
*
pCNd
;
...
...
@@ -2123,7 +2123,7 @@ SwTextFrame* SwTextFrame::GetFormatted( bool bForceQuickFormat )
vcl
::
RenderContext
*
pRenderContext
=
getRootFrame
()
->
GetCurrShell
()
->
GetOut
();
SwSwapIfSwapped
swap
(
this
);
// In case the SwLineLayout was cleared out of the
pTextCache, recreate it.
// In case the SwLineLayout was cleared out of the
s_pTextCache, recreate it
// Not for empty paragraphs
if
(
!
HasPara
()
&&
!
(
isFrameAreaDefinitionValid
()
&&
IsEmpty
())
)
{
...
...
@@ -2134,7 +2134,7 @@ SwTextFrame* SwTextFrame::GetFormatted( bool bForceQuickFormat )
// If the flags were valid (hence bFormat=true), Calc did nothing,
// so Format() must be called manually in order to recreate
// the SwLineLayout that has been deleted from the
// SwTextFrame::pTextCache (hence !HasPara() above).
// SwTextFrame::
s_
pTextCache (hence !HasPara() above).
// Optimization with FormatQuick()
if
(
bFormat
&&
!
FormatQuick
(
bForceQuickFormat
)
)
Format
(
getRootFrame
()
->
GetCurrShell
()
->
GetOut
());
...
...
sw/source/core/text/txtinit.cxx
Dosyayı görüntüle @
aa07f289
...
...
@@ -38,7 +38,7 @@
#include <txtfly.hxx>
#include <dbg_lay.hxx>
SwCache
*
SwTextFrame
::
pTextCache
=
nullptr
;
SwCache
*
SwTextFrame
::
s_
pTextCache
=
nullptr
;
long
SwTextFrame
::
nMinPrtLine
=
0
;
SwContourCache
*
pContourCache
=
nullptr
;
SwDropCapCache
*
pDropCapCache
=
nullptr
;
...
...
@@ -59,7 +59,7 @@ void TextInit_()
pSwFontCache
=
new
SwFontCache
;
// Cache for SwTextFormatColl -> SwFontObj = { SwFont aSwFont, SfxPoolItem* pDefaultArray }
SwCache
*
pTextCache
=
new
SwCache
(
250
// Cache for SwTextFrame -> SwTextLine = { SwParaPortion* pLine }
#ifdef DBG_UTIL
,
"static SwTextFrame::pTextCache"
,
"static SwTextFrame::
s_
pTextCache"
#endif
);
SwTextFrame
::
SetTextCache
(
pTextCache
);
...
...
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