printfun.cxx (b3f79822) | printfun.cxx (3ce8cab8) |
---|---|
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 --- 2977 unchanged lines hidden (view full) --- 2986 2987 nStartCol = nEndCol+1; 2988 } 2989} 2990 2991void ScPrintFunc::CalcPages() // berechnet aPageRect und Seiten aus nZoom 2992{ 2993 if (!pPageEndX) pPageEndX = new SCCOL[MAXCOL+1]; | 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 --- 2977 unchanged lines hidden (view full) --- 2986 2987 nStartCol = nEndCol+1; 2988 } 2989} 2990 2991void ScPrintFunc::CalcPages() // berechnet aPageRect und Seiten aus nZoom 2992{ 2993 if (!pPageEndX) pPageEndX = new SCCOL[MAXCOL+1]; |
2994 if (!pPageEndY) pPageEndY = new SCROW[MAXROW+1]; 2995 if (!pPageRows) pPageRows = new ScPageRowEntry[MAXROW+1]; //! vorher zaehlen !!!! | 2994 //performance impact 2995// if (!pPageEndY) pPageEndY = new SCROW[MAXROW+1]; 2996// if (!pPageRows) pPageRows = new ScPageRowEntry[MAXROW+1]; //! vorher zaehlen !!!! |
2996 2997 pDoc->SetPageSize( nPrintTab, GetDocPageSize() ); 2998 if (aAreaParam.bPrintArea) 2999 { 3000 ScRange aRange( nStartCol, nStartRow, nPrintTab, nEndCol, nEndRow, nPrintTab ); 3001 pDoc->UpdatePageBreaks( nPrintTab, &aRange ); 3002 } 3003 else 3004 pDoc->UpdatePageBreaks( nPrintTab, NULL ); // sonst wird das Ende markiert | 2997 2998 pDoc->SetPageSize( nPrintTab, GetDocPageSize() ); 2999 if (aAreaParam.bPrintArea) 3000 { 3001 ScRange aRange( nStartCol, nStartRow, nPrintTab, nEndCol, nEndRow, nPrintTab ); 3002 pDoc->UpdatePageBreaks( nPrintTab, &aRange ); 3003 } 3004 else 3005 pDoc->UpdatePageBreaks( nPrintTab, NULL ); // sonst wird das Ende markiert |
3005 | 3006 SCROW nRealCnt = nEndRow-nStartRow+1; 3007 if (!pPageEndY) pPageEndY = new SCROW[nRealCnt+1]; 3008 if (!pPageRows) pPageRows = new ScPageRowEntry[nRealCnt+1]; //! vorher zaehlen !!!! |
3006 // 3007 // Seiteneinteilung nach Umbruechen in Col/RowFlags 3008 // Von mehreren Umbruechen in einem ausgeblendeten Bereich zaehlt nur einer. 3009 // 3010 3011 nPagesX = 0; 3012 nPagesY = 0; 3013 nTotalY = 0; --- 116 unchanged lines hidden --- | 3009 // 3010 // Seiteneinteilung nach Umbruechen in Col/RowFlags 3011 // Von mehreren Umbruechen in einem ausgeblendeten Bereich zaehlt nur einer. 3012 // 3013 3014 nPagesX = 0; 3015 nPagesY = 0; 3016 nTotalY = 0; --- 116 unchanged lines hidden --- |