printfun.cxx (d636f962) | printfun.cxx (437a6594) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 470 unchanged lines hidden (view full) --- 479// sal_Bool bAddLines = pDoc->HasLines( aRange, aLines ); 480 481 long nTwipsSizeX = 0; 482 for (SCCOL i=nX1; i<=nX2; i++) 483 nTwipsSizeX += pDoc->GetColWidth( i, nTab ); 484 long nTwipsSizeY = (long) pDoc->GetRowHeight( nY1, nY2, nTab ); 485 486 // wenn keine Linien, dann trotzdem Platz fuer den Aussenrahmen (20 Twips = 1pt) | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 470 unchanged lines hidden (view full) --- 479// sal_Bool bAddLines = pDoc->HasLines( aRange, aLines ); 480 481 long nTwipsSizeX = 0; 482 for (SCCOL i=nX1; i<=nX2; i++) 483 nTwipsSizeX += pDoc->GetColWidth( i, nTab ); 484 long nTwipsSizeY = (long) pDoc->GetRowHeight( nY1, nY2, nTab ); 485 486 // wenn keine Linien, dann trotzdem Platz fuer den Aussenrahmen (20 Twips = 1pt) |
487 // (HasLines initalisiert aLines auf 0,0,0,0) | 487 // (HasLines initialisiert aLines auf 0,0,0,0) |
488 nTwipsSizeX += aLines.Left() + Max( aLines.Right(), 20L ); 489 nTwipsSizeY += aLines.Top() + Max( aLines.Bottom(), 20L ); 490 491 double nScaleX = (double) nDevSizeX / nTwipsSizeX; 492 double nScaleY = (double) nDevSizeY / nTwipsSizeY; 493 494 //! Flag bei FillInfo uebergeben !!!!! 495 ScRange aERange; --- 125 unchanged lines hidden (view full) --- 621} 622 623// 624// Drucken 625// 626 627void lcl_FillHFParam( ScPrintHFParam& rParam, const SfxItemSet* pHFSet ) 628{ | 488 nTwipsSizeX += aLines.Left() + Max( aLines.Right(), 20L ); 489 nTwipsSizeY += aLines.Top() + Max( aLines.Bottom(), 20L ); 490 491 double nScaleX = (double) nDevSizeX / nTwipsSizeX; 492 double nScaleY = (double) nDevSizeY / nTwipsSizeY; 493 494 //! Flag bei FillInfo uebergeben !!!!! 495 ScRange aERange; --- 125 unchanged lines hidden (view full) --- 621} 622 623// 624// Drucken 625// 626 627void lcl_FillHFParam( ScPrintHFParam& rParam, const SfxItemSet* pHFSet ) 628{ |
629 // nDistance muss vorher unterschiedlich initalisiert sein | 629 // nDistance muss vorher unterschiedlich initialisiert sein |
630 631 if ( pHFSet == NULL ) 632 { 633 rParam.bEnable = sal_False; 634 rParam.pBorder = NULL; 635 rParam.pBack = NULL; 636 rParam.pShadow = NULL; 637 } --- 2537 unchanged lines hidden --- | 630 631 if ( pHFSet == NULL ) 632 { 633 rParam.bEnable = sal_False; 634 rParam.pBorder = NULL; 635 rParam.pBack = NULL; 636 rParam.pShadow = NULL; 637 } --- 2537 unchanged lines hidden --- |