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
b13fbaf6
Kaydet (Commit)
b13fbaf6
authored
Haz 25, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwLayAction::FormatLayout: use vcl::RenderContext
Change-Id: I3bc993b00940732fd9ca26ccec7d025c8558516a
üst
f1761903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
layact.hxx
sw/source/core/inc/layact.hxx
+1
-1
layact.cxx
sw/source/core/layout/layact.cxx
+12
-12
No files found.
sw/source/core/inc/layact.hxx
Dosyayı görüntüle @
b13fbaf6
...
...
@@ -100,7 +100,7 @@ class SwLayAction
inline
bool
_PaintContent
(
const
SwContentFrm
*
,
const
SwPageFrm
*
,
const
SwRect
&
);
bool
FormatLayout
(
SwLayoutFrm
*
,
bool
bAddRect
=
true
);
bool
FormatLayout
(
OutputDevice
*
pRenderContext
,
SwLayoutFrm
*
,
bool
bAddRect
=
true
);
bool
FormatLayoutTab
(
SwTabFrm
*
,
bool
bAddRect
=
true
);
bool
FormatContent
(
const
SwPageFrm
*
pPage
);
void
_FormatContent
(
const
SwContentFrm
*
pContent
,
...
...
sw/source/core/layout/layact.cxx
Dosyayı görüntüle @
b13fbaf6
...
...
@@ -572,7 +572,7 @@ void SwLayAction::InternalAction(OutputDevice* pRenderContext)
break
;
}
FormatLayout
(
pPage
);
FormatLayout
(
p
RenderContext
,
p
Page
);
XCHECKPAGE
;
}
// #i28701# - change condition
...
...
@@ -755,7 +755,7 @@ void SwLayAction::InternalAction(OutputDevice* pRenderContext)
break
;
}
FormatLayout
(
pPg
);
FormatLayout
(
p
RenderContext
,
p
Pg
);
XCHECKPAGE
;
}
...
...
@@ -1026,7 +1026,7 @@ bool SwLayAction::IsShortCut( SwPageFrm *&prPage )
}
}
else
FormatLayout
(
prPage
);
FormatLayout
(
p
Sh
->
GetOut
(),
p
rPage
);
if
(
IsAgain
()
)
return
false
;
}
...
...
@@ -1216,7 +1216,7 @@ bool SwLayAction::IsShortCut( SwPageFrm *&prPage )
}
// OD 15.11.2002 #105155# - introduce support for vertical layout
bool
SwLayAction
::
FormatLayout
(
SwLayoutFrm
*
pLay
,
bool
bAddRect
)
bool
SwLayAction
::
FormatLayout
(
OutputDevice
*
pRenderContext
,
SwLayoutFrm
*
pLay
,
bool
bAddRect
)
{
OSL_ENSURE
(
!
IsAgain
(),
"Attention to the invalid page."
);
if
(
IsAgain
()
)
...
...
@@ -1236,7 +1236,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
SwRect
aOldRect
(
aOldFrame
);
if
(
pLay
->
IsPageFrm
()
)
{
aOldRect
=
static_cast
<
SwPageFrm
*>
(
pLay
)
->
GetBoundRect
(
p
Lay
->
getRootFrm
()
->
GetCurrShell
()
->
GetOut
()
);
aOldRect
=
static_cast
<
SwPageFrm
*>
(
pLay
)
->
GetBoundRect
(
p
RenderContext
);
}
pLay
->
Calc
();
...
...
@@ -1264,7 +1264,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
if
(
pLay
->
IsPageFrm
()
)
{
SwPageFrm
*
pPageFrm
=
static_cast
<
SwPageFrm
*>
(
pLay
);
aPaint
=
pPageFrm
->
GetBoundRect
(
p
PageFrm
->
getRootFrm
()
->
GetCurrShell
()
->
GetOut
()
);
aPaint
=
pPageFrm
->
GetBoundRect
(
p
RenderContext
);
}
bool
bPageInBrowseMode
=
pLay
->
IsPageFrm
();
...
...
@@ -1320,7 +1320,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
if
(
pSh
)
{
SwPageFrm
::
GetBorderAndShadowBoundRect
(
aPageRect
,
pSh
,
p
Sh
->
GetOut
()
,
p
RenderContext
,
aPageRect
,
pPageFrm
->
IsLeftShadowNeeded
(),
pPageFrm
->
IsRightShadowNeeded
(),
pPageFrm
->
SidebarPosition
()
==
sw
::
sidebarwindows
::
SidebarPosition
::
RIGHT
);
}
...
...
@@ -1335,7 +1335,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
pImp
->
GetShell
()
->
AddPaintRect
(
aSpaceToPrevPage
);
if
(
pSh
)
p
Sh
->
GetOut
()
->
DrawRect
(
aSpaceToPrevPage
.
SVRect
()
);
p
RenderContext
->
DrawRect
(
aSpaceToPrevPage
.
SVRect
()
);
// left
aSpaceToPrevPage
=
aPageRect
;
...
...
@@ -1400,7 +1400,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
bTabChanged
|=
FormatLayoutTab
(
static_cast
<
SwTabFrm
*>
(
pLow
),
bAddRect
);
// Skip the ones already registered for deletion
else
if
(
!
pLow
->
IsSctFrm
()
||
static_cast
<
SwSectionFrm
*>
(
pLow
)
->
GetSection
()
)
bChanged
|=
FormatLayout
(
static_cast
<
SwLayoutFrm
*>
(
pLow
),
bAddRect
);
bChanged
|=
FormatLayout
(
pRenderContext
,
static_cast
<
SwLayoutFrm
*>
(
pLow
),
bAddRect
);
}
else
if
(
pImp
->
GetShell
()
->
IsPaintLocked
()
)
// Shortcut to minimize the cycles. With Lock, the
...
...
@@ -1414,7 +1414,7 @@ bool SwLayAction::FormatLayout( SwLayoutFrm *pLay, bool bAddRect )
// OD 11.11.2002 #104414# - add complete frame area as paint area, if frame
// area has been already added and after formatting its lowers the frame area
// is enlarged.
SwRect
aBoundRect
(
pLay
->
IsPageFrm
()
?
static_cast
<
SwPageFrm
*>
(
pLay
)
->
GetBoundRect
(
p
Lay
->
getRootFrm
()
->
GetCurrShell
()
->
GetOut
()
)
:
pLay
->
Frm
()
);
SwRect
aBoundRect
(
pLay
->
IsPageFrm
()
?
static_cast
<
SwPageFrm
*>
(
pLay
)
->
GetBoundRect
(
p
RenderContext
)
:
pLay
->
Frm
()
);
if
(
bAlreadyPainted
&&
(
aBoundRect
.
Width
()
>
aFrmAtCompletePaint
.
Width
()
||
...
...
@@ -1468,7 +1468,7 @@ bool SwLayAction::FormatLayoutFly( SwFlyFrm* pFly )
if
(
pLow
->
IsTabFrm
()
)
bTabChanged
|=
FormatLayoutTab
(
static_cast
<
SwTabFrm
*>
(
pLow
),
bAddRect
);
else
bChanged
|=
FormatLayout
(
static_cast
<
SwLayoutFrm
*>
(
pLow
),
bAddRect
);
bChanged
|=
FormatLayout
(
pImp
->
GetShell
()
->
GetOut
(),
static_cast
<
SwLayoutFrm
*>
(
pLow
),
bAddRect
);
}
pLow
=
pLow
->
GetNext
();
}
...
...
@@ -1615,7 +1615,7 @@ bool SwLayAction::FormatLayoutTab( SwTabFrm *pTab, bool bAddRect )
SwLayoutFrm
*
pLow
=
static_cast
<
SwLayoutFrm
*>
(
pTab
->
Lower
());
while
(
pLow
)
{
bChanged
|=
FormatLayout
(
pLow
,
bAddRect
);
bChanged
|=
FormatLayout
(
p
Imp
->
GetShell
()
->
GetOut
(),
p
Low
,
bAddRect
);
if
(
IsAgain
()
)
return
false
;
pLow
=
static_cast
<
SwLayoutFrm
*>
(
pLow
->
GetNext
());
...
...
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