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
0793a830
Kaydet (Commit)
0793a830
authored
Şub 18, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: Ia73bd33beaaea1ff41292006c04ff7fb582fd938
üst
c2f24276
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
70 deletions
+70
-70
output.hxx
sc/source/ui/inc/output.hxx
+23
-23
gridwin4.cxx
sc/source/ui/view/gridwin4.cxx
+5
-5
output.cxx
sc/source/ui/view/output.cxx
+40
-40
output2.cxx
sc/source/ui/view/output2.cxx
+0
-0
printfun.cxx
sc/source/ui/view/printfun.cxx
+2
-2
No files found.
sc/source/ui/inc/output.hxx
Dosyayı görüntüle @
0793a830
...
@@ -176,7 +176,7 @@ private:
...
@@ -176,7 +176,7 @@ private:
// #114135#
// #114135#
FmFormView
*
pDrawView
;
// SdrView to paint to
FmFormView
*
pDrawView
;
// SdrView to paint to
sal_B
ool
bEditMode
;
// InPlace edited cell - do not output
b
ool
bEditMode
;
// InPlace edited cell - do not output
SCCOL
nEditCol
;
SCCOL
nEditCol
;
SCROW
nEditRow
;
SCROW
nEditRow
;
...
@@ -189,7 +189,7 @@ private:
...
@@ -189,7 +189,7 @@ private:
bool
mbUseStyleColor
;
bool
mbUseStyleColor
;
bool
mbForceAutoColor
;
bool
mbForceAutoColor
;
sal_B
ool
mbSyntaxMode
;
// Syntax highlighting
b
ool
mbSyntaxMode
;
// Syntax highlighting
Color
*
pValueColor
;
Color
*
pValueColor
;
Color
*
pTextColor
;
Color
*
pTextColor
;
Color
*
pFormulaColor
;
Color
*
pFormulaColor
;
...
@@ -215,8 +215,8 @@ private:
...
@@ -215,8 +215,8 @@ private:
// private methods
// private methods
sal_B
ool
GetMergeOrigin
(
SCCOL
nX
,
SCROW
nY
,
SCSIZE
nArrY
,
b
ool
GetMergeOrigin
(
SCCOL
nX
,
SCROW
nY
,
SCSIZE
nArrY
,
SCCOL
&
rOverX
,
SCROW
&
rOverY
,
sal_B
ool
bVisRowChanged
);
SCCOL
&
rOverX
,
SCROW
&
rOverY
,
b
ool
bVisRowChanged
);
bool
IsEmptyCellText
(
RowInfo
*
pThisRowInfo
,
SCCOL
nX
,
SCROW
nY
);
bool
IsEmptyCellText
(
RowInfo
*
pThisRowInfo
,
SCCOL
nX
,
SCROW
nY
);
void
GetVisibleCell
(
SCCOL
nCol
,
SCROW
nRow
,
SCTAB
nTab
,
ScRefCellValue
&
rCell
);
void
GetVisibleCell
(
SCCOL
nCol
,
SCROW
nRow
,
SCTAB
nTab
,
ScRefCellValue
&
rCell
);
...
@@ -231,7 +231,7 @@ private:
...
@@ -231,7 +231,7 @@ private:
void
ShrinkEditEngine
(
EditEngine
&
rEngine
,
const
Rectangle
&
rAlignRect
,
void
ShrinkEditEngine
(
EditEngine
&
rEngine
,
const
Rectangle
&
rAlignRect
,
long
nLeftM
,
long
nTopM
,
long
nRightM
,
long
nBottomM
,
long
nLeftM
,
long
nTopM
,
long
nRightM
,
long
nBottomM
,
sal_Bool
bWidth
,
sal_uInt16
nOrient
,
long
nAttrRotate
,
sal_B
ool
bPixelToLogic
,
bool
bWidth
,
sal_uInt16
nOrient
,
long
nAttrRotate
,
b
ool
bPixelToLogic
,
long
&
rEngineWidth
,
long
&
rEngineHeight
,
long
&
rNeededPixel
,
long
&
rEngineWidth
,
long
&
rEngineHeight
,
long
&
rNeededPixel
,
bool
&
rLeftClip
,
bool
&
rRightClip
);
bool
&
rLeftClip
,
bool
&
rRightClip
);
...
@@ -280,37 +280,37 @@ public:
...
@@ -280,37 +280,37 @@ public:
// #114135#
// #114135#
void
SetDrawView
(
FmFormView
*
pNew
)
{
pDrawView
=
pNew
;
}
void
SetDrawView
(
FmFormView
*
pNew
)
{
pDrawView
=
pNew
;
}
void
SetSolidBackground
(
sal_B
ool
bSet
)
{
bSolidBackground
=
bSet
;
}
void
SetSolidBackground
(
b
ool
bSet
)
{
bSolidBackground
=
bSet
;
}
void
SetUseStyleColor
(
sal_B
ool
bSet
)
{
mbUseStyleColor
=
bSet
;
}
void
SetUseStyleColor
(
b
ool
bSet
)
{
mbUseStyleColor
=
bSet
;
}
void
SetEditCell
(
SCCOL
nCol
,
SCROW
nRow
);
void
SetEditCell
(
SCCOL
nCol
,
SCROW
nRow
);
void
SetSyntaxMode
(
sal_B
ool
bNewMode
);
void
SetSyntaxMode
(
b
ool
bNewMode
);
void
SetMetaFileMode
(
sal_B
ool
bNewMode
);
void
SetMetaFileMode
(
b
ool
bNewMode
);
void
SetSingleGrid
(
sal_B
ool
bNewMode
);
void
SetSingleGrid
(
b
ool
bNewMode
);
void
SetGridColor
(
const
Color
&
rColor
);
void
SetGridColor
(
const
Color
&
rColor
);
void
SetMarkClipped
(
sal_B
ool
bSet
);
void
SetMarkClipped
(
b
ool
bSet
);
void
SetShowNullValues
(
sal_Bool
bSet
=
sal_T
rue
);
void
SetShowNullValues
(
bool
bSet
=
t
rue
);
void
SetShowFormulas
(
sal_Bool
bSet
=
sal_T
rue
);
void
SetShowFormulas
(
bool
bSet
=
t
rue
);
void
SetShowSpellErrors
(
sal_Bool
bSet
=
sal_T
rue
);
void
SetShowSpellErrors
(
bool
bSet
=
t
rue
);
void
SetMirrorWidth
(
long
nNew
);
void
SetMirrorWidth
(
long
nNew
);
long
GetScrW
()
const
{
return
nScrW
;
}
long
GetScrW
()
const
{
return
nScrW
;
}
long
GetScrH
()
const
{
return
nScrH
;
}
long
GetScrH
()
const
{
return
nScrH
;
}
void
SetSnapPixel
(
sal_Bool
bSet
=
sal_T
rue
);
void
SetSnapPixel
(
bool
bSet
=
t
rue
);
void
DrawGrid
(
sal_Bool
bGrid
,
sal_B
ool
bPage
);
void
DrawGrid
(
bool
bGrid
,
b
ool
bPage
);
void
DrawStrings
(
sal_B
ool
bPixelToLogic
=
false
);
void
DrawStrings
(
b
ool
bPixelToLogic
=
false
);
void
DrawDocumentBackground
();
void
DrawDocumentBackground
();
void
DrawBackground
();
void
DrawBackground
();
void
DrawShadow
();
void
DrawShadow
();
void
DrawExtraShadow
(
sal_Bool
bLeft
,
sal_Bool
bTop
,
sal_Bool
bRight
,
sal_B
ool
bBottom
);
void
DrawExtraShadow
(
bool
bLeft
,
bool
bTop
,
bool
bRight
,
b
ool
bBottom
);
void
DrawFrame
();
void
DrawFrame
();
// with logic MapMode set!
// with logic MapMode set!
void
DrawEdit
(
sal_B
ool
bPixelToLogic
);
void
DrawEdit
(
b
ool
bPixelToLogic
);
void
FindRotated
();
void
FindRotated
();
void
DrawRotated
(
sal_B
ool
bPixelToLogic
);
// logical
void
DrawRotated
(
b
ool
bPixelToLogic
);
// logical
void
DrawClear
();
void
DrawClear
();
...
@@ -323,14 +323,14 @@ public:
...
@@ -323,14 +323,14 @@ public:
void
DrawingSingle
(
const
sal_uInt16
nLayer
);
void
DrawingSingle
(
const
sal_uInt16
nLayer
);
void
DrawSelectiveObjects
(
const
sal_uInt16
nLayer
);
void
DrawSelectiveObjects
(
const
sal_uInt16
nLayer
);
sal_B
ool
SetChangedClip
();
// sal_False = not
b
ool
SetChangedClip
();
// sal_False = not
Region
GetChangedAreaRegion
();
Region
GetChangedAreaRegion
();
void
FindChanged
();
void
FindChanged
();
void
SetPagebreakMode
(
ScPageBreakData
*
pPageData
);
void
SetPagebreakMode
(
ScPageBreakData
*
pPageData
);
void
DrawRefMark
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
void
DrawRefMark
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
const
Color
&
rColor
,
sal_B
ool
bHandle
);
const
Color
&
rColor
,
b
ool
bHandle
);
void
DrawOneChange
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
void
DrawOneChange
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
const
Color
&
rColor
,
sal_uInt16
nType
);
const
Color
&
rColor
,
sal_uInt16
nType
);
...
...
sc/source/ui/view/gridwin4.cxx
Dosyayı görüntüle @
0793a830
...
@@ -541,7 +541,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
...
@@ -541,7 +541,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
if
(
eMode
==
SC_UPDATE_CHANGED
)
if
(
eMode
==
SC_UPDATE_CHANGED
)
{
{
aOutputData
.
FindChanged
();
aOutputData
.
FindChanged
();
aOutputData
.
SetSingleGrid
(
sal_T
rue
);
aOutputData
.
SetSingleGrid
(
t
rue
);
}
}
sal_Bool
bPageMode
=
pViewData
->
IsPagebreakMode
();
sal_Bool
bPageMode
=
pViewData
->
IsPagebreakMode
();
...
@@ -679,7 +679,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
...
@@ -679,7 +679,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
DrawRedraw
(
aOutputData
,
eMode
,
SC_LAYER_BACK
);
DrawRedraw
(
aOutputData
,
eMode
,
SC_LAYER_BACK
);
}
}
else
else
aOutputData
.
SetSolidBackground
(
sal_T
rue
);
aOutputData
.
SetSolidBackground
(
t
rue
);
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
aOutputData
.
DrawDocumentBackground
();
aOutputData
.
DrawDocumentBackground
();
...
@@ -712,8 +712,8 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
...
@@ -712,8 +712,8 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
pContentDev
->
SetMapMode
(
pViewData
->
GetLogicMode
(
eWhich
));
pContentDev
->
SetMapMode
(
pViewData
->
GetLogicMode
(
eWhich
));
if
(
bLogicText
)
if
(
bLogicText
)
aOutputData
.
DrawStrings
(
sal_T
rue
);
// in logic MapMode if bTextWysiwyg is set
aOutputData
.
DrawStrings
(
t
rue
);
// in logic MapMode if bTextWysiwyg is set
aOutputData
.
DrawEdit
(
sal_T
rue
);
aOutputData
.
DrawEdit
(
t
rue
);
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
// Autofilter- und Pivot-Buttons
// Autofilter- und Pivot-Buttons
...
@@ -806,7 +806,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
...
@@ -806,7 +806,7 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
aOutputData
.
DrawRefMark
(
aRef
.
aStart
.
Col
(),
aRef
.
aStart
.
Row
(),
aOutputData
.
DrawRefMark
(
aRef
.
aStart
.
Col
(),
aRef
.
aStart
.
Row
(),
aRef
.
aEnd
.
Col
(),
aRef
.
aEnd
.
Row
(),
aRef
.
aEnd
.
Col
(),
aRef
.
aEnd
.
Row
(),
Color
(
pData
->
nColorData
),
Color
(
pData
->
nColorData
),
sal_T
rue
);
t
rue
);
}
}
}
}
}
}
...
...
sc/source/ui/view/output.cxx
Dosyayı görüntüle @
0793a830
...
@@ -251,27 +251,27 @@ void ScOutputData::SetGridColor( const Color& rColor )
...
@@ -251,27 +251,27 @@ void ScOutputData::SetGridColor( const Color& rColor )
aGridColor
=
rColor
;
aGridColor
=
rColor
;
}
}
void
ScOutputData
::
SetMarkClipped
(
sal_B
ool
bSet
)
void
ScOutputData
::
SetMarkClipped
(
b
ool
bSet
)
{
{
bMarkClipped
=
bSet
;
bMarkClipped
=
bSet
;
}
}
void
ScOutputData
::
SetShowNullValues
(
sal_B
ool
bSet
)
void
ScOutputData
::
SetShowNullValues
(
b
ool
bSet
)
{
{
mbShowNullValues
=
bSet
;
mbShowNullValues
=
bSet
;
}
}
void
ScOutputData
::
SetShowFormulas
(
sal_B
ool
bSet
)
void
ScOutputData
::
SetShowFormulas
(
b
ool
bSet
)
{
{
mbShowFormulas
=
bSet
;
mbShowFormulas
=
bSet
;
}
}
void
ScOutputData
::
SetShowSpellErrors
(
sal_B
ool
bSet
)
void
ScOutputData
::
SetShowSpellErrors
(
b
ool
bSet
)
{
{
bShowSpellErrors
=
bSet
;
bShowSpellErrors
=
bSet
;
}
}
void
ScOutputData
::
SetSnapPixel
(
sal_B
ool
bSet
)
void
ScOutputData
::
SetSnapPixel
(
b
ool
bSet
)
{
{
bSnapPixel
=
bSet
;
bSnapPixel
=
bSet
;
}
}
...
@@ -280,20 +280,20 @@ void ScOutputData::SetEditCell( SCCOL nCol, SCROW nRow )
...
@@ -280,20 +280,20 @@ void ScOutputData::SetEditCell( SCCOL nCol, SCROW nRow )
{
{
nEditCol
=
nCol
;
nEditCol
=
nCol
;
nEditRow
=
nRow
;
nEditRow
=
nRow
;
bEditMode
=
sal_T
rue
;
bEditMode
=
t
rue
;
}
}
void
ScOutputData
::
SetMetaFileMode
(
sal_B
ool
bNewMode
)
void
ScOutputData
::
SetMetaFileMode
(
b
ool
bNewMode
)
{
{
bMetaFile
=
bNewMode
;
bMetaFile
=
bNewMode
;
}
}
void
ScOutputData
::
SetSingleGrid
(
sal_B
ool
bNewMode
)
void
ScOutputData
::
SetSingleGrid
(
b
ool
bNewMode
)
{
{
bSingleGrid
=
bNewMode
;
bSingleGrid
=
bNewMode
;
}
}
void
ScOutputData
::
SetSyntaxMode
(
sal_B
ool
bNewMode
)
void
ScOutputData
::
SetSyntaxMode
(
b
ool
bNewMode
)
{
{
mbSyntaxMode
=
bNewMode
;
mbSyntaxMode
=
bNewMode
;
if
(
bNewMode
)
if
(
bNewMode
)
...
@@ -305,7 +305,7 @@ void ScOutputData::SetSyntaxMode( sal_Bool bNewMode )
...
@@ -305,7 +305,7 @@ void ScOutputData::SetSyntaxMode( sal_Bool bNewMode )
}
}
}
}
void
ScOutputData
::
DrawGrid
(
sal_Bool
bGrid
,
sal_B
ool
bPage
)
void
ScOutputData
::
DrawGrid
(
bool
bGrid
,
b
ool
bPage
)
{
{
SCCOL
nX
;
SCCOL
nX
;
SCROW
nY
;
SCROW
nY
;
...
@@ -315,7 +315,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -315,7 +315,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
ScBreakType
nBreak
=
BREAK_NONE
;
ScBreakType
nBreak
=
BREAK_NONE
;
ScBreakType
nBreakOld
=
BREAK_NONE
;
ScBreakType
nBreakOld
=
BREAK_NONE
;
sal_B
ool
bSingle
;
b
ool
bSingle
;
Color
aPageColor
;
Color
aPageColor
;
Color
aManualColor
;
Color
aManualColor
;
...
@@ -387,7 +387,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -387,7 +387,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
}
}
}
}
sal_B
ool
bDraw
=
bGrid
||
nBreakOld
;
// simple grid only if set that way
b
ool
bDraw
=
bGrid
||
nBreakOld
;
// simple grid only if set that way
sal_uInt16
nWidthXplus2
=
pRowInfo
[
0
].
pCellInfo
[
nXplus2
].
nWidth
;
sal_uInt16
nWidthXplus2
=
pRowInfo
[
0
].
pCellInfo
[
nXplus2
].
nWidth
;
bSingle
=
bSingleGrid
;
//! get into Fillinfo !!!!!
bSingle
=
bSingleGrid
;
//! get into Fillinfo !!!!!
...
@@ -397,9 +397,9 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -397,9 +397,9 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
for
(
nArrY
=
1
;
nArrY
+
1
<
nArrCount
&&
!
bSingle
;
nArrY
++
)
for
(
nArrY
=
1
;
nArrY
+
1
<
nArrCount
&&
!
bSingle
;
nArrY
++
)
{
{
if
(
pRowInfo
[
nArrY
].
pCellInfo
[
nXplus2
].
bHOverlapped
)
if
(
pRowInfo
[
nArrY
].
pCellInfo
[
nXplus2
].
bHOverlapped
)
bSingle
=
sal_T
rue
;
bSingle
=
t
rue
;
if
(
pRowInfo
[
nArrY
].
pCellInfo
[
nXplus1
].
bHideGrid
)
if
(
pRowInfo
[
nArrY
].
pCellInfo
[
nXplus1
].
bHideGrid
)
bSingle
=
sal_T
rue
;
bSingle
=
t
rue
;
}
}
}
}
...
@@ -418,7 +418,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -418,7 +418,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
RowInfo
*
pThisRowInfo
=
&
pRowInfo
[
nArrY
];
RowInfo
*
pThisRowInfo
=
&
pRowInfo
[
nArrY
];
nNextY
=
nPosY
+
pThisRowInfo
->
nHeight
;
nNextY
=
nPosY
+
pThisRowInfo
->
nHeight
;
sal_B
ool
bHOver
=
pThisRowInfo
->
pCellInfo
[
nXplus1
].
bHideGrid
;
b
ool
bHOver
=
pThisRowInfo
->
pCellInfo
[
nXplus1
].
bHideGrid
;
if
(
!
bHOver
)
if
(
!
bHOver
)
{
{
if
(
nWidthXplus2
)
if
(
nWidthXplus2
)
...
@@ -496,12 +496,12 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -496,12 +496,12 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
bool
bDraw
=
bGrid
||
nBreakOld
;
// simple grid only if set so
bool
bDraw
=
bGrid
||
nBreakOld
;
// simple grid only if set so
sal_B
ool
bNextYisNextRow
=
(
pRowInfo
[
nArrYplus1
].
nRowNo
==
nYplus1
);
b
ool
bNextYisNextRow
=
(
pRowInfo
[
nArrYplus1
].
nRowNo
==
nYplus1
);
bSingle
=
!
bNextYisNextRow
;
// Hidden
bSingle
=
!
bNextYisNextRow
;
// Hidden
for
(
SCCOL
i
=
nX1
;
i
<=
nX2
&&
!
bSingle
;
i
++
)
for
(
SCCOL
i
=
nX1
;
i
<=
nX2
&&
!
bSingle
;
i
++
)
{
{
if
(
pRowInfo
[
nArrYplus1
].
pCellInfo
[
i
+
1
].
bVOverlapped
)
if
(
pRowInfo
[
nArrYplus1
].
pCellInfo
[
i
+
1
].
bVOverlapped
)
bSingle
=
sal_T
rue
;
bSingle
=
t
rue
;
}
}
if
(
bDraw
)
if
(
bDraw
)
...
@@ -520,7 +520,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
...
@@ -520,7 +520,7 @@ void ScOutputData::DrawGrid( sal_Bool bGrid, sal_Bool bPage )
nNextX
=
nPosX
+
pRowInfo
[
0
].
pCellInfo
[
i
+
1
].
nWidth
*
nLayoutSign
;
nNextX
=
nPosX
+
pRowInfo
[
0
].
pCellInfo
[
i
+
1
].
nWidth
*
nLayoutSign
;
if
(
nNextX
!=
nPosX
)
// visible
if
(
nNextX
!=
nPosX
)
// visible
{
{
sal_B
ool
bVOver
;
b
ool
bVOver
;
if
(
bNextYisNextRow
)
if
(
bNextYisNextRow
)
bVOver
=
pRowInfo
[
nArrYplus1
].
pCellInfo
[
i
+
1
].
bVOverlapped
;
bVOver
=
pRowInfo
[
nArrYplus1
].
pCellInfo
[
i
+
1
].
bVOverlapped
;
else
else
...
@@ -1061,7 +1061,7 @@ void ScOutputData::DrawShadow()
...
@@ -1061,7 +1061,7 @@ void ScOutputData::DrawShadow()
DrawExtraShadow
(
false
,
false
,
false
,
false
);
DrawExtraShadow
(
false
,
false
,
false
,
false
);
}
}
void
ScOutputData
::
DrawExtraShadow
(
sal_Bool
bLeft
,
sal_Bool
bTop
,
sal_Bool
bRight
,
sal_B
ool
bBottom
)
void
ScOutputData
::
DrawExtraShadow
(
bool
bLeft
,
bool
bTop
,
bool
bRight
,
b
ool
bBottom
)
{
{
mpDev
->
SetLineColor
();
mpDev
->
SetLineColor
();
...
@@ -1856,7 +1856,7 @@ Region ScOutputData::GetChangedAreaRegion()
...
@@ -1856,7 +1856,7 @@ Region ScOutputData::GetChangedAreaRegion()
return
aRegion
;
return
aRegion
;
}
}
sal_B
ool
ScOutputData
::
SetChangedClip
()
b
ool
ScOutputData
::
SetChangedClip
()
{
{
PolyPolygon
aPoly
;
PolyPolygon
aPoly
;
...
@@ -1891,7 +1891,7 @@ sal_Bool ScOutputData::SetChangedClip()
...
@@ -1891,7 +1891,7 @@ sal_Bool ScOutputData::SetChangedClip()
if
(
bHad
)
if
(
bHad
)
aPoly
.
Insert
(
Polygon
(
mpDev
->
PixelToLogic
(
aDrawingRect
)
)
);
aPoly
.
Insert
(
Polygon
(
mpDev
->
PixelToLogic
(
aDrawingRect
)
)
);
sal_B
ool
bRet
=
(
aPoly
.
Count
()
!=
0
);
b
ool
bRet
=
(
aPoly
.
Count
()
!=
0
);
if
(
bRet
)
if
(
bRet
)
mpDev
->
SetClipRegion
(
Region
(
aPoly
));
mpDev
->
SetClipRegion
(
Region
(
aPoly
));
return
bRet
;
return
bRet
;
...
@@ -1953,7 +1953,7 @@ void ScOutputData::FindChanged()
...
@@ -1953,7 +1953,7 @@ void ScOutputData::FindChanged()
void
ScOutputData
::
DrawRefMark
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
void
ScOutputData
::
DrawRefMark
(
SCCOL
nRefStartX
,
SCROW
nRefStartY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
SCCOL
nRefEndX
,
SCROW
nRefEndY
,
const
Color
&
rColor
,
sal_B
ool
bHandle
)
const
Color
&
rColor
,
b
ool
bHandle
)
{
{
PutInOrder
(
nRefStartX
,
nRefEndX
);
PutInOrder
(
nRefStartX
,
nRefEndX
);
PutInOrder
(
nRefStartY
,
nRefEndY
);
PutInOrder
(
nRefStartY
,
nRefEndY
);
...
@@ -1976,10 +1976,10 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -1976,10 +1976,10 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
}
}
long
nLayoutSign
=
bLayoutRTL
?
-
1
:
1
;
long
nLayoutSign
=
bLayoutRTL
?
-
1
:
1
;
sal_B
ool
bTop
=
false
;
b
ool
bTop
=
false
;
sal_B
ool
bBottom
=
false
;
b
ool
bBottom
=
false
;
sal_B
ool
bLeft
=
false
;
b
ool
bLeft
=
false
;
sal_B
ool
bRight
=
false
;
b
ool
bRight
=
false
;
long
nPosY
=
nScrY
;
long
nPosY
=
nScrY
;
bool
bNoStartY
=
(
nY1
<
nRefStartY
);
bool
bNoStartY
=
(
nY1
<
nRefStartY
);
...
@@ -1991,17 +1991,17 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -1991,17 +1991,17 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
if
(
nY
==
nRefStartY
||
(
nY
>
nRefStartY
&&
bNoStartY
)
)
if
(
nY
==
nRefStartY
||
(
nY
>
nRefStartY
&&
bNoStartY
)
)
{
{
nMinY
=
nPosY
;
nMinY
=
nPosY
;
bTop
=
sal_T
rue
;
bTop
=
t
rue
;
}
}
if
(
nY
==
nRefEndY
)
if
(
nY
==
nRefEndY
)
{
{
nMaxY
=
nPosY
+
pRowInfo
[
nArrY
].
nHeight
-
2
;
nMaxY
=
nPosY
+
pRowInfo
[
nArrY
].
nHeight
-
2
;
bBottom
=
sal_T
rue
;
bBottom
=
t
rue
;
}
}
if
(
nY
>
nRefEndY
&&
bNoEndY
)
if
(
nY
>
nRefEndY
&&
bNoEndY
)
{
{
nMaxY
=
nPosY
-
2
;
nMaxY
=
nPosY
-
2
;
bBottom
=
sal_T
rue
;
bBottom
=
t
rue
;
}
}
bNoStartY
=
(
nY
<
nRefStartY
);
bNoStartY
=
(
nY
<
nRefStartY
);
bNoEndY
=
(
nY
<
nRefEndY
);
bNoEndY
=
(
nY
<
nRefEndY
);
...
@@ -2017,12 +2017,12 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -2017,12 +2017,12 @@ void ScOutputData::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
if
(
nX
==
nRefStartX
)
if
(
nX
==
nRefStartX
)
{
{
nMinX
=
nPosX
;
nMinX
=
nPosX
;
bLeft
=
sal_T
rue
;
bLeft
=
t
rue
;
}
}
if
(
nX
==
nRefEndX
)
if
(
nX
==
nRefEndX
)
{
{
nMaxX
=
nPosX
+
(
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
-
2
)
*
nLayoutSign
;
nMaxX
=
nPosX
+
(
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
-
2
)
*
nLayoutSign
;
bRight
=
sal_T
rue
;
bRight
=
t
rue
;
}
}
nPosX
+=
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
*
nLayoutSign
;
nPosX
+=
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
*
nLayoutSign
;
}
}
...
@@ -2104,10 +2104,10 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -2104,10 +2104,10 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
}
}
long
nLayoutSign
=
bLayoutRTL
?
-
1
:
1
;
long
nLayoutSign
=
bLayoutRTL
?
-
1
:
1
;
sal_B
ool
bTop
=
false
;
b
ool
bTop
=
false
;
sal_B
ool
bBottom
=
false
;
b
ool
bBottom
=
false
;
sal_B
ool
bLeft
=
false
;
b
ool
bLeft
=
false
;
sal_B
ool
bRight
=
false
;
b
ool
bRight
=
false
;
long
nPosY
=
nScrY
;
long
nPosY
=
nScrY
;
bool
bNoStartY
=
(
nY1
<
nRefStartY
);
bool
bNoStartY
=
(
nY1
<
nRefStartY
);
...
@@ -2119,17 +2119,17 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -2119,17 +2119,17 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
if
(
nY
==
nRefStartY
||
(
nY
>
nRefStartY
&&
bNoStartY
)
)
if
(
nY
==
nRefStartY
||
(
nY
>
nRefStartY
&&
bNoStartY
)
)
{
{
nMinY
=
nPosY
-
1
;
nMinY
=
nPosY
-
1
;
bTop
=
sal_T
rue
;
bTop
=
t
rue
;
}
}
if
(
nY
==
nRefEndY
)
if
(
nY
==
nRefEndY
)
{
{
nMaxY
=
nPosY
+
pRowInfo
[
nArrY
].
nHeight
-
1
;
nMaxY
=
nPosY
+
pRowInfo
[
nArrY
].
nHeight
-
1
;
bBottom
=
sal_T
rue
;
bBottom
=
t
rue
;
}
}
if
(
nY
>
nRefEndY
&&
bNoEndY
)
if
(
nY
>
nRefEndY
&&
bNoEndY
)
{
{
nMaxY
=
nPosY
-
1
;
nMaxY
=
nPosY
-
1
;
bBottom
=
sal_T
rue
;
bBottom
=
t
rue
;
}
}
bNoStartY
=
(
nY
<
nRefStartY
);
bNoStartY
=
(
nY
<
nRefStartY
);
bNoEndY
=
(
nY
<
nRefEndY
);
bNoEndY
=
(
nY
<
nRefEndY
);
...
@@ -2145,12 +2145,12 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
...
@@ -2145,12 +2145,12 @@ void ScOutputData::DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
if
(
nX
==
nRefStartX
)
if
(
nX
==
nRefStartX
)
{
{
nMinX
=
nPosX
-
nLayoutSign
;
nMinX
=
nPosX
-
nLayoutSign
;
bLeft
=
sal_T
rue
;
bLeft
=
t
rue
;
}
}
if
(
nX
==
nRefEndX
)
if
(
nX
==
nRefEndX
)
{
{
nMaxX
=
nPosX
+
(
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
-
1
)
*
nLayoutSign
;
nMaxX
=
nPosX
+
(
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
-
1
)
*
nLayoutSign
;
bRight
=
sal_T
rue
;
bRight
=
t
rue
;
}
}
nPosX
+=
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
*
nLayoutSign
;
nPosX
+=
pRowInfo
[
0
].
pCellInfo
[
nX
+
1
].
nWidth
*
nLayoutSign
;
}
}
...
...
sc/source/ui/view/output2.cxx
Dosyayı görüntüle @
0793a830
This diff is collapsed.
Click to expand it.
sc/source/ui/view/printfun.cxx
Dosyayı görüntüle @
0793a830
...
@@ -554,7 +554,7 @@ void ScPrintFunc::DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double /* nPr
...
@@ -554,7 +554,7 @@ void ScPrintFunc::DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double /* nPr
if
(
!
bMetaFile
&&
pViewData
)
if
(
!
bMetaFile
&&
pViewData
)
pDev
->
SetMapMode
(
aMode
);
pDev
->
SetMapMode
(
aMode
);
aOutputData
.
DrawGrid
(
sal_T
rue
,
false
);
// no page breaks
aOutputData
.
DrawGrid
(
t
rue
,
false
);
// no page breaks
pDev
->
SetLineColor
(
COL_BLACK
);
pDev
->
SetLineColor
(
COL_BLACK
);
...
@@ -1615,7 +1615,7 @@ void ScPrintFunc::PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
...
@@ -1615,7 +1615,7 @@ void ScPrintFunc::PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
}
}
if
(
aTableParam
.
bGrid
)
if
(
aTableParam
.
bGrid
)
aOutputData
.
DrawGrid
(
sal_T
rue
,
false
);
// no page breaks
aOutputData
.
DrawGrid
(
t
rue
,
false
);
// no page breaks
aOutputData
.
AddPDFNotes
();
// has no effect if not rendering PDF with notes enabled
aOutputData
.
AddPDFNotes
();
// has no effect if not rendering PDF with notes enabled
...
...
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