Kaydet (Commit) 0793a830 authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: Ia73bd33beaaea1ff41292006c04ff7fb582fd938
üst c2f24276
...@@ -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_Bool bEditMode; // InPlace edited cell - do not output bool 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_Bool mbSyntaxMode; // Syntax highlighting bool 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_Bool GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY, bool GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY,
SCCOL& rOverX, SCROW& rOverY, sal_Bool bVisRowChanged ); SCCOL& rOverX, SCROW& rOverY, bool 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_Bool bPixelToLogic, bool bWidth, sal_uInt16 nOrient, long nAttrRotate, bool 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_Bool bSet ) { bSolidBackground = bSet; } void SetSolidBackground( bool bSet ) { bSolidBackground = bSet; }
void SetUseStyleColor( sal_Bool bSet ) { mbUseStyleColor = bSet; } void SetUseStyleColor( bool bSet ) { mbUseStyleColor = bSet; }
void SetEditCell( SCCOL nCol, SCROW nRow ); void SetEditCell( SCCOL nCol, SCROW nRow );
void SetSyntaxMode( sal_Bool bNewMode ); void SetSyntaxMode( bool bNewMode );
void SetMetaFileMode( sal_Bool bNewMode ); void SetMetaFileMode( bool bNewMode );
void SetSingleGrid( sal_Bool bNewMode ); void SetSingleGrid( bool bNewMode );
void SetGridColor( const Color& rColor ); void SetGridColor( const Color& rColor );
void SetMarkClipped( sal_Bool bSet ); void SetMarkClipped( bool bSet );
void SetShowNullValues ( sal_Bool bSet = sal_True ); void SetShowNullValues ( bool bSet = true );
void SetShowFormulas ( sal_Bool bSet = sal_True ); void SetShowFormulas ( bool bSet = true );
void SetShowSpellErrors( sal_Bool bSet = sal_True ); void SetShowSpellErrors( bool bSet = true );
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_True ); void SetSnapPixel( bool bSet = true );
void DrawGrid( sal_Bool bGrid, sal_Bool bPage ); void DrawGrid( bool bGrid, bool bPage );
void DrawStrings( sal_Bool bPixelToLogic = false ); void DrawStrings( bool 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_Bool bBottom); void DrawExtraShadow(bool bLeft, bool bTop, bool bRight, bool bBottom);
void DrawFrame(); void DrawFrame();
// with logic MapMode set! // with logic MapMode set!
void DrawEdit(sal_Bool bPixelToLogic); void DrawEdit(bool bPixelToLogic);
void FindRotated(); void FindRotated();
void DrawRotated(sal_Bool bPixelToLogic); // logical void DrawRotated(bool 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_Bool SetChangedClip(); // sal_False = not bool 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_Bool bHandle ); const Color& rColor, bool 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 );
......
...@@ -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_True); aOutputData.SetSingleGrid(true);
} }
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_True); aOutputData.SetSolidBackground(true);
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_True); // in logic MapMode if bTextWysiwyg is set aOutputData.DrawStrings(true); // in logic MapMode if bTextWysiwyg is set
aOutputData.DrawEdit(sal_True); aOutputData.DrawEdit(true);
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_True ); true );
} }
} }
} }
......
...@@ -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_Bool bSet ) void ScOutputData::SetMarkClipped( bool bSet )
{ {
bMarkClipped = bSet; bMarkClipped = bSet;
} }
void ScOutputData::SetShowNullValues( sal_Bool bSet ) void ScOutputData::SetShowNullValues( bool bSet )
{ {
mbShowNullValues = bSet; mbShowNullValues = bSet;
} }
void ScOutputData::SetShowFormulas( sal_Bool bSet ) void ScOutputData::SetShowFormulas( bool bSet )
{ {
mbShowFormulas = bSet; mbShowFormulas = bSet;
} }
void ScOutputData::SetShowSpellErrors( sal_Bool bSet ) void ScOutputData::SetShowSpellErrors( bool bSet )
{ {
bShowSpellErrors = bSet; bShowSpellErrors = bSet;
} }
void ScOutputData::SetSnapPixel( sal_Bool bSet ) void ScOutputData::SetSnapPixel( bool 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_True; bEditMode = true;
} }
void ScOutputData::SetMetaFileMode( sal_Bool bNewMode ) void ScOutputData::SetMetaFileMode( bool bNewMode )
{ {
bMetaFile = bNewMode; bMetaFile = bNewMode;
} }
void ScOutputData::SetSingleGrid( sal_Bool bNewMode ) void ScOutputData::SetSingleGrid( bool bNewMode )
{ {
bSingleGrid = bNewMode; bSingleGrid = bNewMode;
} }
void ScOutputData::SetSyntaxMode( sal_Bool bNewMode ) void ScOutputData::SetSyntaxMode( bool 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_Bool bPage ) void ScOutputData::DrawGrid( bool bGrid, bool 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_Bool bSingle; bool 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_Bool bDraw = bGrid || nBreakOld; // simple grid only if set that way bool 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_True; bSingle = true;
if (pRowInfo[nArrY].pCellInfo[nXplus1].bHideGrid) if (pRowInfo[nArrY].pCellInfo[nXplus1].bHideGrid)
bSingle = sal_True; bSingle = true;
} }
} }
...@@ -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_Bool bHOver = pThisRowInfo->pCellInfo[nXplus1].bHideGrid; bool 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_Bool bNextYisNextRow = (pRowInfo[nArrYplus1].nRowNo == nYplus1); bool 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_True; bSingle = true;
} }
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_Bool bVOver; bool 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_Bool bBottom) void ScOutputData::DrawExtraShadow(bool bLeft, bool bTop, bool bRight, bool bBottom)
{ {
mpDev->SetLineColor(); mpDev->SetLineColor();
...@@ -1856,7 +1856,7 @@ Region ScOutputData::GetChangedAreaRegion() ...@@ -1856,7 +1856,7 @@ Region ScOutputData::GetChangedAreaRegion()
return aRegion; return aRegion;
} }
sal_Bool ScOutputData::SetChangedClip() bool 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_Bool bRet = (aPoly.Count() != 0); bool 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_Bool bHandle ) const Color& rColor, bool 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_Bool bTop = false; bool bTop = false;
sal_Bool bBottom = false; bool bBottom = false;
sal_Bool bLeft = false; bool bLeft = false;
sal_Bool bRight = false; bool 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_True; bTop = true;
} }
if ( nY==nRefEndY ) if ( nY==nRefEndY )
{ {
nMaxY = nPosY + pRowInfo[nArrY].nHeight - 2; nMaxY = nPosY + pRowInfo[nArrY].nHeight - 2;
bBottom = sal_True; bBottom = true;
} }
if ( nY>nRefEndY && bNoEndY ) if ( nY>nRefEndY && bNoEndY )
{ {
nMaxY = nPosY-2; nMaxY = nPosY-2;
bBottom = sal_True; bBottom = true;
} }
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_True; bLeft = true;
} }
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_True; bRight = true;
} }
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_Bool bTop = false; bool bTop = false;
sal_Bool bBottom = false; bool bBottom = false;
sal_Bool bLeft = false; bool bLeft = false;
sal_Bool bRight = false; bool 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_True; bTop = true;
} }
if ( nY==nRefEndY ) if ( nY==nRefEndY )
{ {
nMaxY = nPosY + pRowInfo[nArrY].nHeight - 1; nMaxY = nPosY + pRowInfo[nArrY].nHeight - 1;
bBottom = sal_True; bBottom = true;
} }
if ( nY>nRefEndY && bNoEndY ) if ( nY>nRefEndY && bNoEndY )
{ {
nMaxY = nPosY - 1; nMaxY = nPosY - 1;
bBottom = sal_True; bBottom = true;
} }
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_True; bLeft = true;
} }
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_True; bRight = true;
} }
nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth * nLayoutSign; nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth * nLayoutSign;
} }
......
This diff is collapsed.
...@@ -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_True, false ); // no page breaks aOutputData.DrawGrid( true, 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_True, false ); // no page breaks aOutputData.DrawGrid( true, 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment