diff options
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 432f2fe44af6..54f977c5faef 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -184,7 +184,7 @@ private: void TextChanged(); }; -//================================================================== + ScDrawStringsVars::ScDrawStringsVars(ScOutputData* pData, bool bPTL) : pOutput ( pData ), @@ -395,10 +395,10 @@ void ScDrawStringsVars::SetPattern( aMetric = pFmtDevice->GetFontMetric(); - // + // Wenn auf dem Drucker das Leading 0 ist, gibt es Probleme // -> Metric vom Bildschirm nehmen (wie EditEngine!) - // + if ( pFmtDevice->GetOutDevType() == OUTDEV_PRINTER && aMetric.GetIntLeading() == 0 ) { @@ -807,7 +807,7 @@ sal_uLong ScDrawStringsVars::GetResultValueFormat() const return nValueFormat; } -//================================================================== + double ScOutputData::GetStretch() { @@ -835,11 +835,11 @@ double ScOutputData::GetStretch() } } -//================================================================== -// + + // output strings -// + static void lcl_DoHyperlinkResult( OutputDevice* pDev, const Rectangle& rRect, ScRefCellValue& rCell ) { @@ -1248,9 +1248,9 @@ void ScOutputData::GetOutputArea( SCCOL nX, SCSIZE nArrY, long nPosX, long nPosY rParam.mnColWidth = nMergeSizeX; // store the actual column width. - // + // construct the rectangles using logical left/right values (justify is called at the end) - // + // rAlignRect is the single cell or merged area, used for alignment. @@ -1505,9 +1505,9 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) bool bDoCell = false; bool bNeedEdit = false; - // + // Part of a merged cell? - // + bool bOverlapped = (pInfo->bHOverlapped || pInfo->bVOverlapped); if ( bOverlapped ) @@ -1527,9 +1527,9 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) bMergeEmpty = true; } - // + // Rest of a long text further to the left? - // + if ( bEmpty && !bMergeEmpty && nX < nX1 && !bOverlapped ) { @@ -1546,9 +1546,9 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) } } - // + // Rest of a long text further to the right? - // + if ( bEmpty && !bMergeEmpty && nX == nX2 && !bOverlapped ) { @@ -1567,16 +1567,16 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) } } - // + // normal visible cell - // + if (!bEmpty) bDoCell = true; - // + // don't output the cell that's being edited - // + if ( bDoCell && bEditMode && nCellX == nEditCol && nCellY == nEditRow ) bDoCell = false; @@ -1590,9 +1590,9 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) bDoCell = false; } - // + // output the cell text - // + ScRefCellValue aCell; if (bDoCell) @@ -1885,9 +1885,9 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) bVClip = true; } - // + // horizontalen Platz testen - // + bool bRightAdjusted = false; // to correct text width calculation later bool bNeedEditEngine = false; @@ -2076,7 +2076,7 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) mpDoc->EnableIdle(bWasIdleEnabled); } -// ------------------------------------------------------------------------------- + ScFieldEditEngine* ScOutputData::CreateOutputEditEngine() { @@ -2758,9 +2758,9 @@ void ScOutputData::DrawEditStandard(DrawEditParam& rParam) OutputAreaParam aAreaParam; - // + // Initial page size - large for normal text, cell size for automatic line breaks - // + Size aPaperSize = Size( 1000000, 1000000 ); if (rParam.mbBreak) @@ -2793,9 +2793,9 @@ void ScOutputData::DrawEditStandard(DrawEditParam& rParam) else rParam.mpEngine->SetPaperSize(aPaperSize); - // + // Fill the EditEngine (cell attributes and text) - // + // default alignment for asian vertical mode is top-right if ( rParam.mbAsianVertical && rParam.meVerJust == SVX_VER_JUSTIFY_STANDARD ) @@ -2818,9 +2818,9 @@ void ScOutputData::DrawEditStandard(DrawEditParam& rParam) rParam.mpEngine->SetUpdateMode( true ); // after SetText, before CalcTextWidth/GetTextHeight - // + // Get final output area using the calculated width - // + long nEngineWidth, nEngineHeight; rParam.getEngineSize(rParam.mpEngine, nEngineWidth, nEngineHeight); @@ -3261,9 +3261,9 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam) OutputAreaParam aAreaParam; - // + // Initial page size - large for normal text, cell size for automatic line breaks - // + Size aPaperSize = Size( 1000000, 1000000 ); if (rParam.mbBreak) @@ -3286,9 +3286,9 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam) else rParam.mpEngine->SetPaperSize(aPaperSize); - // + // Fill the EditEngine (cell attributes and text) - // + rParam.setPatternToEngine(mbUseStyleColor); rParam.setAlignmentToEngine(); @@ -3307,9 +3307,9 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam) rParam.mpEngine->SetUpdateMode( true ); // after SetText, before CalcTextWidth/GetTextHeight - // + // Get final output area using the calculated width - // + long nEngineWidth, nEngineHeight; rParam.getEngineSize(rParam.mpEngine, nEngineWidth, nEngineHeight); @@ -3527,9 +3527,9 @@ void ScOutputData::DrawEditTopBottom(DrawEditParam& rParam) OutputAreaParam aAreaParam; - // + // Initial page size - large for normal text, cell size for automatic line breaks - // + Size aPaperSize = Size( 1000000, 1000000 ); if (rParam.hasLineBreak()) @@ -3552,9 +3552,9 @@ void ScOutputData::DrawEditTopBottom(DrawEditParam& rParam) else rParam.mpEngine->SetPaperSize(aPaperSize); - // + // Fill the EditEngine (cell attributes and text) - // + rParam.setPatternToEngine(mbUseStyleColor); rParam.setAlignmentToEngine(); @@ -3573,9 +3573,9 @@ void ScOutputData::DrawEditTopBottom(DrawEditParam& rParam) rParam.mpEngine->SetUpdateMode( true ); // after SetText, before CalcTextWidth/GetTextHeight - // + // Get final output area using the calculated width - // + long nEngineWidth, nEngineHeight; rParam.getEngineSize(rParam.mpEngine, nEngineWidth, nEngineHeight); @@ -3800,9 +3800,9 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam) OutputAreaParam aAreaParam; - // + // Initial page size - large for normal text, cell size for automatic line breaks - // + Size aPaperSize = Size( 1000000, 1000000 ); // call GetOutputArea with nNeeded=0, to get only the cell width @@ -3833,9 +3833,9 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam) else rParam.mpEngine->SetPaperSize(aPaperSize); - // + // Fill the EditEngine (cell attributes and text) - // + rParam.setPatternToEngine(mbUseStyleColor); rParam.setAlignmentToEngine(); @@ -3854,9 +3854,9 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam) rParam.mpEngine->SetUpdateMode( true ); // after SetText, before CalcTextWidth/GetTextHeight - // + // Get final output area using the calculated width - // + long nEngineWidth, nEngineHeight; rParam.getEngineSize(rParam.mpEngine, nEngineWidth, nEngineHeight); @@ -4203,9 +4203,9 @@ void ScOutputData::DrawEditAsianVertical(DrawEditParam& rParam) OutputAreaParam aAreaParam; - // + // Initial page size - large for normal text, cell size for automatic line breaks - // + Size aPaperSize = Size( 1000000, 1000000 ); // call GetOutputArea with nNeeded=0, to get only the cell width @@ -4236,9 +4236,9 @@ void ScOutputData::DrawEditAsianVertical(DrawEditParam& rParam) else rParam.mpEngine->SetPaperSize(aPaperSize); - // + // Fill the EditEngine (cell attributes and text) - // + // default alignment for asian vertical mode is top-right if ( rParam.meVerJust == SVX_VER_JUSTIFY_STANDARD ) @@ -4261,9 +4261,9 @@ void ScOutputData::DrawEditAsianVertical(DrawEditParam& rParam) rParam.mpEngine->SetUpdateMode( true ); // after SetText, before CalcTextWidth/GetTextHeight - // + // Get final output area using the calculated width - // + long nEngineWidth, nEngineHeight; rParam.getEngineSize(rParam.mpEngine, nEngineWidth, nEngineHeight); @@ -4711,7 +4711,7 @@ void ScOutputData::DrawEdit(bool bPixelToLogic) DrawRotated(bPixelToLogic); //! von aussen rufen ? } -// ------------------------------------------------------------------------------- + void ScOutputData::DrawRotated(bool bPixelToLogic) { |