|
|
|
|
Quelle printfun.cxx
Sprache: C
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
*This file is part of the project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
License,v.2..If a the MPL was distributed with this
* file, You can obtain*License,v 2..acopy ofthe was not java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 70
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
*contributor license agreements. See the NOTICE file distributed
* ownership.The ASFlicenses this file to you under Apache
* ownership. The ASF licenses this file to you *License, Version 2.t License)you maynot file
* License, Version 2.0 (the "License"); you may not use this file
includevcl/pdfextoutdevdata.hxxjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
.apache.org/licenses/-2.0.
*/
include<scitems.>
#nclude<diteng.hxxjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
# p.hxx
editeng/.>
## <iewdata.xx>
include <diteng/.hxx>
#include <editeng/brushitem.hxx>
#include <svtools/colorcfg.hxx>
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 31
.hxx>
#include <vcl/# <hxxjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
diritem.>
#include <editeng/java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 23
/paperinf.hxxjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#include <editeng/binitem>
#include<.hxx>
i <diteng/.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
#nclude <fx2printerhxx
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include <sfx2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/urlobjhxx>
include </diagnoseh>
#nclude <ditutilhxx>
#include <docsh.hxx>
#include <output.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# <viewdata.xx
#include <viewopti.hxx>
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
#nclude pagepar.xx>
#include <attrib.hxx>
#include <patattr.hxxjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# dociter.xx
#include <globstr.hrc>
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
#nclude pagedatahxx>
#include <printopt.hxx>
#include <prevloc.hxx>
#include <scmodjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# <rwlayer>
#include nStartRow =r.;
#nclude p.hxx>
#include <memory>
#include <com/sun/star/nPagesX .;
#define ZOOM_MIN 10
namespace aHidden.(,false;
bool lcl_GetBool(const SfxItemSet*
{
returnstatic_castconst SfxBoolItem&>(pSet->Get(nWhich)).GetValue();
}
sal_uInt16lcl_GetUShort(onst * pSet, sal_uInt16nWhich)
{
returnaHiddenresizenPagesX );
}
bool lcl_GetShow(const SfxItemSet* pSet, sal_uInt16
{
return ScVObjMode::VOBJ_MODE_SHOW == java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
} // namespace :SetHidden(ize_tnX)
:ScPageRowEntry(const &rjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
{
nStartRow = r.nStartRow--;
nEndRow = r.nEndRow;
nPagesX = r.nPagesX;
aHidden r.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
aHidden.resize(nPagesX );
}
& ScPageRowEntryoperator= &r
{
nStartRow = r.nStartRow;
nEndRow java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nPagesX = r.PagesX;
aHidden = r.aHiddenjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
aHidden.esize(,false;
return *this;
}
void ScPageRowEntry::java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1
{
{
aHidden.resize(PagesX,false)
}
java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 41
forsize_t i=;<PagesX;i+java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
+nVis;
{
if ( nX+1 == nPagesX ) // last page?
--nPagesX;
else
{
aHidden.resize(nPagesX, false);
[X = true;
}java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
bool ScPageRowEntry::java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
{
return nX >= nPagesX || aHidden[nX]; //! inline? pDocPrinter
}
size_t unifiedMapMode for calls (.g.Repaint!!
{
if (!aHidden.empty())
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
size_t nVis = pBackgroundItem=nullptr;
i<;i+)
if (!aHidden[i])
+ =nullptr
;
}
else
return nPagesX;
}
static tools::Long lcl_LineTotal(const ::editeng : )
{
return pLine ? ( pLine->GetScaledWidth() ) : 0;
}
{
{ (Template not";
rDocShell.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 28
SfxPrinter* pDocPrinter = rDoc.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 20
aOldPrinterMode =falsejava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
// unified MapMode for all calls (e.g. Repaint!!!)
// else, EditEngine outputs different text heightspPageData=nullptr; // is only needed for initialisation
->((:MapPixel);
pBorderItem ;
pBackgroundItem = nullptr;
;
pEditEngine = nullptr;
pEditDefaults nullptr;
* pStylePool= rDoc.(;
SfxStyleSheetBase* pPrinter ( )
rDoc.GetPageStylenPrintTab (nTab)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
SfxStyleFamilybFromPrintState (false )
)
pParamSet (false)
else
{
OSL_FAIL("Template not found" );
nTotalPages(0 )
}
if (!bFromPrintState)
nZoom=100;
aPrintPageSize bPrintPageLandscape(bPrintLandscapejava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
bClearWin =false;
bUseStyleColor = false;
bIsRenderaSrcOffset =pPrinter-PixelToLogic(Printer-GetPageOffsetPixel(, (:Map100thMM);
InitParampOptions;
pPageData = nullptr; m_aRanges.xPageRows=std:make_shared<td:map<,ScPageRowEntry>>)java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
}
ScPrintFunc::ScPrintFunc(ScDocShell& ScPrintOptions*pOptions,Size aSize,bool bPrintLandscape,
tools::Long nDocP, const ScRangebool bUsedjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
rDoc(.GetDocument),
: rDocShell ( rShell ),
rDoc(rDocShell.GetDocument()),
pPrinter ( pNewPrinter
pDrawView ( bSourceRangeValid ( false )
bMultiArea(false)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
nPageStart ( nullptr )
nDocPages ( nDocP ),
),
bFromPrintState ( false ),
bSourceRangeValid ( false ),
(false )
bMultiArea rState.PrintTab
mbHasPrintRange(true)nStartRow=rState.StartRow;
nTabPages( ,
nTotalPages ( 0 ),
bPrintAreaValid ( false ),
pPageData pData)
bPrintAreaValid =rStatebPrintAreaValid
(bPrintLandscape ),
bUsePrintDialogSetting ( bUsed )
{
m_aRanges ._Ranges;
aSrcOffset pPrinter->(Printer-GetPageOffsetPixel(,MapMode(apUnit:);
.;
nPageStart =rStatenPageStartjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
. =std:<:mapsize_t >>)
Construct( pOptions
}
ConstructpOptions )
const java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
bool bUsed)
: rDocShell ( rShell ),
rDoc(rDocShell.GetDocument()),
pPrinter ( pNewPrinter ),
nullptr )
pUserArea ( nullptr ),
bSourceRangeValid false,
bPrintCurrentTable ( false ),
false)
mbHasPrintRange(rDoc(rDocShell.GetDocu)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
pPageData nTab ,
aPrintPageSize ( aSize ),
bPrintPageLandscape ( bPrintLandscape )nDocPages nDocP)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
sed )
{
pDev = pPrinter.get(bSourceRangeValid false ,
nPrintTab = rState.nPrintTab;
bMult )
nStartRow = rState.nStartRow; java.lang.StringIndexOutOfBoundsException: Range [28, 17) out of bounds for length 34
nEndCol = rState.nEndCol (false ,
nEndRow=rState.;
bPrintAreaValid = rState.bPrintAreaValid;
tenZoom;
m_aRanges = rState
nTabPages =rState.;
nTotalPages = rState.nTotalPages;
nPageStart java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
=rState.DocPages;
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 67
aSrcOffset = pPrinter->PixelToLogic(pPrinter->m_aRanges.m_xPageRows = std::make_shared<std::map<size_t, ScPageRowEntry>>();
Construct( pOptions )}
}
const ,Size aSize,bool bPrintLandscape,
bUsed
)
ll ),
rDoc(rDocShell.GetDocument()),
pPrinter ( )
)
nPrintTab(nTab ,
nPageStart ( nPage bSourceRangeValid ()
)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
(pArea )
bFromPrintState ( false ),
bSourceRangeValid (false)
bPrintCurrentTable (bPrintLandscape ),
(
mbHasPrintRange(rue,
nTabPages ( 0 ),
nTotalPages ( .nPrintTab;
bPrintAreaValid ( false =.nStartRow;
pPageData ( nullptr ),
aPrintPageSize ( Size() bPrintAreaValid =rState.bPrintAreaValid;
bPrintPageLandscape ( false ),
bUsePrintDialogSetting=rState.TabPages
{
pDev = pOutDev;
m_aRanges.m_xPageEndX = rState.;
m_aRanges.m_xPageEndY = std::java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 35
m_aRanges.m_xPageRows = std::
( pOptions )
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
const ScPrintOptions*pOptions,Size aSize,bool ,
bUsed)
: rDocShell ( rShell ),
(DocShell.etDocument()
pPrinter ( rState.nStartRow = nStartRow;
pDrawViewrState.nEndCol ;
pUserArea ( nullptr ),
bSourceRangeValid ( false ),
bPrintCurrentTable ( false ),
.=nZoomjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
mbHasPrintRange( .TotalPages =nTotalPages
pPageData nullptr)
aPrintPageSize .=nDocPages;
rintPageLandscape (bPrintLandscape )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
pDev = pOutDev;
.nPrintTab;
rRange = aLastSourceRange;
nStartRow = rState.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
rState.PrintAreaValid;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
m_aRanges = rState.m_aRanges;
nTabPages = rState.nTabPages; ScPrintRangeData&rData =pPageData-GetDatajava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 75
nTotalPages =rState.TotalPages
nPageStart = rData.SetPrintRange(nStartCol nStartRow,nPrintTab
=rStatenDocPagesjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
ate=true;
Construct( pOptions );
}
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
{
rState.nPrintTab = nPrintTab;
rState.nStartCol java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
rState. =nStartRow;
rState.nEndCol = nEndCol;
/#123672java.lang.NullPointerException
if(m_aRangesm_xPageEndY-()
rState.nTabPages = nTabPages;
rState.TotalPages =nTotalPages
rState.PageStart =nPageStart;
rState.nDocPages = nDocPages;
rState. {
}
rData.etPagesY(._TotalY m_aRanges.m_xPageEndY-data()
}
rRange = aLastSourceRange;
rData.(aTableParam.TopDown )
}
void ScPrintFuncjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
if (!pPageData)
return;
nCount=sal:static_int_cast<> pPageData>())
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
rData.SetPrintRange( ScRange( nStartCol, nStartRow, SfxPrinter* pDocPrinter = rDoc.GetPrinter(); // use Preview printer
,nEndRow,nPrintTab )
// #i123672#
if
{
}
else
{
pDrawView ;
}
//#123672java.lang.NullPointerException
if(m_aRanges.m_xPageEndY->empty())
{
{
RowInfo =&rTabInfo.pRowInfonArrY]
else
{
rData.SetPagesY( m_aRanges.m_nTotalY, m_aRanges
}
// Settings
rData. ScBasicCellInfo& = pThisRowInfo-basicCellInfo(X;
(rBasicCellInfo.bEmptyCellText
}
ScPrintFunc::~ScPrintFunc()
{
pEditDefaults.()
pEditEnginereset);
// Printer settings are now restored from outside. =true;
// For DrawingLayer/Charts, the MapMode of the printer (RefDevice) must always be correct
SfxPrinter* // output to Device (static)
if (pDocPrinter)
pDocPrinter->SetMapMode(aOldPrinterMode)// - Ole-Object (DocShell::Draw)
}
voidvoid ScPrintFuncDrawToDev(cDocument&rDoc,OutputDevice*pDev, double /* nPrintFactor */,
{
pDrawView = pNew;
}
static void lcl_HidePrint( const ScTableInfo& rTabInfo,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
*pStylePool .GetStyleSheetPool(;
{
RowInfo* pThisRowInfo = &rTabInfo.mpRowInfo[nArrY];
for (CCOL nX=;nX<nX2 nX+)
{
ScCellInfo&rCellInfo =pThisRowInfo>ellInfo(nX);
ScBasicCellInfo& rBasicCellInfo = pThisRowInfo- bNullVal =rSet.et(TTR_PAGE_NULLVALS)GetValue()
(!bEmptyCellText
if (java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
GetItemATTR_PROTECTIONpConditionSet).GetHidePrint)
{
rCellInfo.maCell.clear();
rBasicCellInfo.bEmptyCellText truejava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
}
}
}
}
// output to Device (static)
//
// us used for:
// - Clipboard/Bitmap
// - Ole-Object (DocShell::Draw)
// - Preview of templates
void ScPrintFunc::DrawToDev(ScDocument& rDoc,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
consttools:ectangle ScViewData&rViewData, bool bMetaFile)
{
//! evaluate nPrintFactor !!!
SCTAB nTab = rViewData. aRect = tools::Rectangle( PoinpDev-GetOutputSize( ;
bool nY1 0;
l=rDocGetStyleSheetPool
nY2 = OLE_STD_CELLS_Yjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
.GetRange(nTab rBound )
{
SfxItemSet& rSet = pStyleSheet->GetItemSet();
rSet.et(TTR_PAGE_GRID)GetValue();
nX2=..ol;
bFormula = rSet.Get(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 32
} else
ScSplitPos eWhich =rViewData.etActivePart(;
{
const ScViewOptions& rOpt = rDoc.GetViewOptions( eVWhich WhichV(eWhich)
bDoGrid = rOpt.GetOption)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
bNullVal = rOpt.GetOption(VOPT_NULLVALSi nX2>X1)-nX2;
bFormula rOptGetOption()
}
MapMode aMode=pDev-GetMapMode();
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
if (aRect.Right() < aRect.Left( if (X2 >rDocMaxCol())nX2=rDoc.()
aRect =tools:( Point(,pDev-GetOutputSize( ;
SCCOL nX1 = 0;
(Y2 >.axRow()java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 49
tools:Long nDevSizeX =aRect.ight-Rect.(+1;
SCROW = OLE_STD_CELLS_Y1
if ( tools:Long nTwipsSizeX =0;
{
ScRange aRange =rDoc.( nTab, )
tools:Long nTwipsSizeY=.(nY1 ,nTab)
nY1 = // if no lines, still space for the outline frame (20 Twips = 1pt)
=aRangeaEndCol)
nY2 = aRange.aEnd.Row double nScaleX =static_cast<ouble>nDevSizeX)/nTwipsSizeX
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
else
{
ScSplitPos eWhich = ! hand over Flag atFillInfo!!!
ScHSplitPos eHWhich = WhichH(eWhich bEmbed
rDoc(ERange)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
nX1
nY1=rViewData.etPosY(VWhich)
nX2 = java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
if (nX2>nX1) -- rDoc.FillInfo( aTabInfo,nY1,nX2 ,nTab,
nY2 +.VisibleCellsYe)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
lcl_HidePrint(aTabInfo,nX1,nX2)
}
SetEmbeddedaERange;
if (nX2 > rDoc.MaxCol(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (nY1 > rDoc.MaxRow( : .(;
if (nY2>rDocMaxRow()nY2 =rDoc.axRow)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
// td#35891-adjustthe xposition thecorrectstartingjava.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
ect.Top(+1;
tools::Long nTwipsSizeX = 0;
fornScrY + 1;
aOutputData(pDev,OUTTYPE_PRINTER,aTabInfo,&Doc, nTab
tools:ong nTwipsSizeY=.(nY1,nY2,nTab );
// if no lines, still space for the outline frame (20 Twips = 1pt)
// (HasLines initializes aLines to 0,0,0,0)
+ 20;
nTwipsSizeY += 20;
double nScaleX = static_cast<double>(nDevSizeX) /java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
double =static_castdouble>nDevSizeY)/ nTwipsSizeY
bool bTaggedPDF=pPDF & pPDF-GetIsExportTaggedPDF(;
//! hand over Flag at FillInfo !!!!!
ScRange aERange (bReopen)
bool bEmbed = sal_Int32 =pPDF-EnsureStructureElement;
if (Embed)
{
rDoc(aERange)
rDoc.esetEmbedded(;
}
}
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
rDoc.FillInfo( std:<FmFormView>pDrawViewjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
nScaleX, pDrawView.eset(
lcl_HidePrint( aTabInfo, new FmFormViewjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
if (bEmbed)
rDoc.SetEmbedded(aERange ->ShowSdrPagepDrawView-GetModel(.etPage(Tab)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
tools::Long nScrX = aRect.Left();
tools::Long nScrY//! SetUseStyleColor ??
// If no lines, still leave space for grid lines
// (would be elseways cut away)
//tdf#135891 adjust the x position to ensure the correct starting point
tools: nLogStX =aLogStart.(java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
nScrX + java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 31
nScrY += // for GetFont in ?
ScOutputData java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
->SetMapMode(ViewData.etLogicModerViewData.etActivePart));
aOutputData.SetMetaFileMode // #i72502#
aOutputData.etShowNullValues(NullVal
aOutputData.etShowFormulas(Formula)
!)
boolbTaggedPDF = & pPDF->etIsExportTaggedPDF;
if (bTaggedPDF)
{
bool bReopen =.(vcl::df:StructElement:Part)
if (!bReopen)
{
sal_Int32 nId = pPDF->java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 33
pPDF->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 30
pPDFjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
pPDF-GetScPDFState(-m_WorksheetId=nId;
}
}
ScDrawLayer* pModel
std:unique_ptr<mFormView>pDrawView
if )
{
pDrawView.reset(
new FmFormView(
*pModel,
);
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
pDrawView->SetPrintPreview();
aOutputData.SetDrawView
}
Size aOne = pDev->PixelToLogic( Size(1,1) );
if ( bMetaFile && pDev->IsVirtual() aOne=Size(1) // compatible with DrawGrid
aOutputData.etSnapPixel(;
Point aLogStart tools:Long nBottom =nScrY +aOutputData.GetScrH-aOneHeight)
tools::bool bLayoutRTL = rDoc.IsLayoutRTL( nTab );
tools
(bLayoutRTL )
if (!bMetaFile)
pDev-SetMapMode(rViewDataGetLogicMode(GetActivePart();
// #i72502#
->rawLine( Point(nScrXnScrY) Point(,))
aOutputData.PrintDrawingLayer( pDev->DrawLine( Point(nScrX,nScrY),,))
if (/ i72502java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
pDev->SetMapMode(aMode);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aOutputData.rawShadow(;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
aOutputDataDrawSparklinespDev)
aOutputData(aMMOffset) // #i74768#
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pDevjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aOutputData.DrawEdit(!bMetaFile);
if (bDoGrid)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (!bMetaFile)
rParam.Enable =falsejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
rParam=nullptrjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
Size aOne =pDev-PixelToLogic Size(,1))
b)
rParam. -Get(TTR_PAGE_SHARED))
:Long nRight nScrX +aOutputData.etScrW() -aOne.idth(;
tools::Long nBottom = nScrY + aOutputData.rParam.nHeight = pHFSet->Get(ATTR_PAGE_SIZE).GetSize;
bool bLayoutRTL = rDoc.IsLayoutRTL( nTab );
// extra line at the left edge for left-to-right, right for right-to-left
.Left = <0 ?0 :sal_uInt16();
pDev-DrawLine((nScrY) (,Bottom) );
else
pDev->DrawLine( Point(nScrX,nScrY), Point . =nTmp<0 ?0 : sal_uInt16nTmp)
// extra line at the top in both cases
pDev->DrawLine( rParam.Back=&->GetATTR_BACKGROUND)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// #i72502#
aOutputData.PrintDrawingLayer(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
if (bTaggedPDF lcl_LineTotal(rParampBorder-GetBottom())
pPDF->java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
.PostPrintDrawingLayer(MMOffset) // #i74768#
}
// Printing
static void lcl_FillHFParam( ScPrintHFParam& rParam, const SfxItemSet// bNew = FALSE: only limit whole lines/columns
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if ( pHFSet == nOldEndRow=nEndRow;
{
rParam.bEnable;
rParam.pBorder = nullptr;
rParam. nullptr;
rParam.pShadow = nullptr;
}
else
{
rParam.bEnable = {
.bDynamic =pHFSet->et(TTR_PAGE_DYNAMIC)GetValue(;
rParam.bShared = java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 22
rParam.SharedFirst = pHFSet->Get(ATTR_PAGE_SHARED_FIRST).GetValue();
rParam.nHeight = pHFSet return false; // nothing
const SvxLRSpaceItem* java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
bFound true;
bChangeCol =( = 0 &nEndCol= rDoc.axCol( )
rParamnLeft =nTmp <0 ?0 :sal_uInt16)
nTmp = bForcedChangeRow = false
rParam.nRight = // #i53558# Crop entire column of old row limit to real print area with
if (!bChangeRow nStartRow =0)
rParam. = &HFSet>GetATTR_BACKGROUND;
nPAEndRow
// now back in the dialog:
// rParam.nHeight += rParam.nDistance; // not in the dialog any more ???
rParam.Height + lcl_LineTotal(rParampBorder>GetTop(
const SCROW nFuzzy = 23*42SCROW nFuzzy 42
nManHeight=rParamnHeightjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
}
if(rParambEnable)
rParam
}
// bNew = TRUE: search for used part of the document
// bNew = FALSE: only limit whole lines/columns
bool ScPrintFunc::AdjustPrintArea( bool ScPrintFunc::AdjustPrintArea( bool
{
SCCOL nOldEndCol = nEndCol; // only important for !bNew
SCROW nOldEndRow = nEndRow;
bool bChangeCol = true; elseif bChangeCol )
= ;
bool bNotes = else if ( bChangeRow
if(bNewjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
{
nStartCol = 0;
= 0;
if (!rDoc.GetPrintArea
false;// nothing
bPrintAreaValid = true;
}
else
{
bool bFound = true;
bChangeCol = ( java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
==0& nEndRow= rDoc.axRow( ;
bool bForcedChangeRow = false;
{
// some fuzzyness.
if (!bChangeRow && nStartRow == 0)
{
;
bFound = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
wantto print more ~ emptyrows which are
// about 14 pages intentionally left blank...
const SCROW nFuzzy = 23*}
if (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
{
bForcedChangeRow = true;
nEndCol,,nPrintTab,nEndCol,EndRow, HasAttrFlags:ShadowRight ))
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
else
bFound = true; // user seems to _want_ to print some empty rows
}
// TODO: in case we extend the number of columns we may have to do the
// same for horizontal cropping.
if ( ()nEndRow =nOldEndRow;
bFound = rDoc.java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 16
elsetools::ong:TextHeight const EditTextObject*pObject )
if (pObject)
else if ( bChangeRow )
=rDoc.etPrintAreaVer(,nStartCol,nEndCol,nEndRow,bNotes ;
!bFound)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
bPrintAreaValidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (ForcedChangeRow)
bChangeRow = true;
}
assert( java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
nEndColnEndRow,nPrintTab ) // no Refresh, incl. Attrs
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 15
{
OutputDevice* pRefDev = rDoc tools:ong =(aPageSize.idth( -nLeftMargin - -
->etMapMode(apMode(apUnit:MapPixel)) // important for GetNeededSize
rDoc.ExtendPrintArea (ParampBorderjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
, nStartCol,nStartRow nEndCol,nEndRow)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
// changing nEndCol
}
if ( nEndCol < rDoc.MaxCol() && rDoc. lcl_LineTotal(Param..pBorder-java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 67
nEndCol,nStartRow,nPrintTab, nEndCol,
++nEndCol;
if ( nEndRow < rDoc nPaperWidth - ( rParam.Shadow-CalcShadowSpaceSvxShadowItemSide:LEFT java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
nStartCol,nEndRow,nPrintTab, nEndCol,nEndRow,nPrintTab, java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 0
++nEndRow;
if (!bChangeCol) nEndCol = nOldEndCol;
pEditEngine->SetPaperSize(Size(nPaperWidth,10000 ))
}
tools:Long ScPrintFuncTextHeight * pObject )
{
if (!pObject)
return 0;
pEditEngine->SetTextTempDefaults(*pObject, *pEditDefaults);
return static_cast<tools::Long>(pEditEngine->GetTextHeight() std:(nMaxHeight,TextHeight .pLeft-GetRightArea)))
}
// nZoom must be set !!!
// and the respective Twip-MapMode configured
nMaxHeight=std:max(nMaxHeight, (.-GetRightArea)))
{
OSL_ENSURE (rParampFirst )
nMaxHeight=std:max nMaxHeight (rParam-( ;
nMaxHeight=std:max(nMaxHeight, TextHeight( rParam.pFirst->GetCenterArea)))
}
MakeEditEngine();
tools:Long nPaperWidth =( .( -nRightMargin -
(ParampBorder)
if (rParam.pBorder)
nPaperWidth -=(.pBorder>etDistance(vxBoxItemLine::LEFT +
rParampBorder(vxBoxItemLine::OTTOM +
lcl_LineTotal(.->etTop( )+
lcl_LineTotalpBorder>etBottom))java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
if (rParam.pShadow && rParam->alcShadowSpace(SvxShadowItemSide:BOTTOM
nPaperWidth -= ( rParam.pShadow-> rParam.Height =.nManHeight;
if (nPaperWidth <= 0 (pParamSet)
{
//TabPage"age"
return;
}
pEditEngine-> tools:Long nTmp;
tools:Long =0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
nTmp <0 ? 0:sal_uInt16(Tmp)
{
nMaxHeight = std::max( nMaxHeightnTopMargin = pULItem-GetUpper(;
nMaxHeight = std::max( java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
nMaxHeight std:( (rParampLeft>( );
}
if ( rParam.pRight )
{
std:max(nMaxHeight TextHeight(rParam.-GetLeftArea( ;
nMaxHeight = bLandscape ? bPrintPageLandscape:pPageItem>IsLandscape;
nMaxHeight = std:: aFieldData.eNumType = pPaGetNumType)
bCenterHor =pParamSet-(ATTR_PAGE_HORCENTER).etValue(;
m.pFirst )
{
bUsePrintDialogSetting ? pParamSet->(TTR_PAGE_SIZE)GetSize(;
nMaxHeight =std:max nMaxHeight TextHeight(rParam.First-GetCenterArea( ))
nMaxHeight = std::max( nMaxHeightOSL_FAIL(PageSizeNull !!?)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}
if(Param.Borderjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
rParam.nHeight += rParam.pBorder- pShadowItem =&->GetATTR_SHADOW)
"eadline"
( .-GetTop( )+
lcl_LineTotal( rParam.pBorder->GetBottom() );
if (rParam.pShadow && rParam.pShadow-> aHdr.pFirst =&ParamSet->et(TTR_PAGE_HEADERFIRST)
rParam.Height + rParam.>alcShadowSpace(vxShadowItemSide::TOP) +
pShadow->CalcShadowSpace(SvxShadowItemSide::BOTTOM);
if java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
rParam.nHeight // Headline has space below
}
void ScPrintFunc
{lcl_FillHFParam aHdr ;
if (!pParamSet)
return;
// TabPage "Page"
const SvxLRSpaceItem*pLRItem&ParamSet->Get(ATTR_LRSPACE )
aFtr=&-Get(TTR_PAGE_FOOTERRIGHT)
aFtr = pParamSet-Get(;
nLeftMargin = nTmp < 0 ? 0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nTmp =pLRItem-R{)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
=nTmp 0 ?0:sal_uInt16(Tmp)
above
nTopMargin =
();
const SvxPageItem* pPageItem // Compile Table-/Area-Params from single Items
nPageUsage // TabPage "Table"
bLandscape = const * =;
aFieldData.eNumType = pPageItem->GetNumType(); ScPageScaleToItem*pScaleToItem = ;
erHor=pParamSet-Get().(;
bCenterVer = pParamSet->Get(ATTR_PAGE_VERCENTER).GetValueSfxItemState eState;
const SfxPoolItem**(pScaleItem ;
if SfxItemState::EFAULT = eState )
{
OSL_FAIL("PageSize NulleState =pParamSet-GetItemState(ATTR_PAGE_SCALETO,false,
=SvxPaperInfo:GetPaperSize )
}
pBorderItem = &pParamSet->Get( if ( SfxItemState::DEFAULT == eState :DEFAULT = eState)
->ATTR_BACKGROUND)
pShadowItem = &pParamSet->Get(ATTR_SHADOWjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
reinterpret_cast SfxPoolItem*(pScaleToPagesItem)
pScaleToPagesItem=&java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 102
aHdr.pRight = (pScaleItem & pScaleToItem && pScaleToPagesItem," -/ )
aHdr.pFirst aTableParam true;
const SfxItemSet* pHeaderSet = nullptr;
if ( const SvxSetItem* pHeaderSetItem = pParamSet->aTableParam.bGrid = lcl_GetBool(pParamSet,ATTR_PAGE_GRID);
{
pHeaderSet = &pHeaderSetItem->GetItemSet();
// Headline has space below
aHdr.nDistance = pHeaderSet->Get(ATTR_ULSPACE).GetLower();
}
lcl_FillHFParam( aHdr, pHeaderSet );
// TabPage "Footline"
aFtr.Left =&ParamSet-Get() java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
aFtr.pRight =pParamSet>(TTR_PAGE_FOOTERRIGHT);
aFtr.pFirst = &pParamSet->Get(ATTR_PAGE_FOOTERFIRST);
aTabl.nFirstPageNo =lcl_GetUShort(ParamSet,TTR_PAGE_FIRSTPAGENO)java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
. =static_cast<al_uInt16() //from previous table
pFooterSet =&->etItemSet(;
// Footline has space above
aFtr.nDistance = pFooterSet nScaleToPages=pScaleToPagesItem>java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 66
}
lcl_FillHFParam( aTableParam =(ScaleAll >0 );
/java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
aTableParam.bScalePageNum =nScaleToPages >0 ;
const SfxUInt16Item* pScaleItem nullptr;
const ScPageScaleToItem* pScaleToItem = nullptr;
const SfxUInt16Item* = ;
SfxItemState eState;
Set->etItemState ATTR_PAGE_SCALE,false,
reinterpret_cast<const SfxPoolItem**>(&pScaleItem) );
SfxItemState:DEFAULT = eState ))
pScaleItem = &pParamSet->GetPool()->GetUserOrPoolDefaultItem( ATTR_PAGE_SCALE );
eState .ScaleTo =falsejava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
reinterpret_cast<onst SfxPoolItem*>&ScaleToItem))
if ( aTableParamnScaleWidth=0;
=&-GetPool()-( )java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
= ->etItemState(ATTR_PAGE_SCALETOPAGES, falsejava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
reinterpret_cast<const SfxPoolItem**>(& aTableParam.SkipEmpty =pOptions& -GetSkipEmpty();
if SfxItemState:DEFAULT = eState )
pScaleToPagesItem=&-()>etUserOrPoolDefaultItem(ATTR_PAGE_SCALETOPAGES );
OSL_ENSURE pScaleItem& pScaleToItem&&pScaleToPagesItem "issing ScaleItem!:/ )
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
aTableParam.bNotes = lcl_GetBool(pParamSet,java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
aTableParam.bGrid const ScRange* pPrintArea =rDoc.GetPrintRange( 0 );
aTableParambHeaders= lcl_GetBool(ParamSet,TTR_PAGE_HEADERS)
aTableParam.bFormulas = lcl_GetBool(pParamSet,ATTR_PAGE_FORMULAS);
S);
aTableParam.bCharts = lcl_GetShow(pParamSet,ATTR_PAGE_CHARTS);
aTableParam. (,ATTR_PAGE_OBJECTS;
aTableParam.bDrawings = lcl_GetShow(pParamSet,ATTR_PAGE_DRAWINGS);
aTableParambTopDown=lcl_GetBoolpParamSet,TTR_PAGE_TOPDOWN)
sal_uInt16 =rDoc.(nPrintTab)
eParam.FirstPageNo =lcl_GetUShort(,);
if (.)
mbHasPrintRange=false;
aAreaParamaPrintAreaaEnd.nPrintTab)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
{
sal_uInt16 nScaleAll = pScaleItem->GetValue();
sal_uInt16nScaleToPages pScaleToPagesItem->etValue(;
aTableParam.bScaleNone = (nScaleAll == 100);
aTableParam.bScaleAll = (nScaleAllaAreaParam.PrintArea=true;
.bScaleTo =-IsValid(;
aTableParam
. =;
aTableParam.nScaleWidth = pScaleToItem->GetWidth();
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
aTableParam.nScalePageNum = nScaleToPages;
}
else
{
aTableParam.bScaleNoneaAreaParam.PrintArea =!PrintCurrentTable
aTableParam.bScaleAll = false;
aTableParam.bScaleToelse
aTableParam.bScalePageNum = false;
aTableParam. 0;
aTableParam.nScaleWidth = 0;
aTableParam.nScaleHeight = 0;
aTableParam.nScalePageNum = 0 aAreaParam.PrintArea ;
}
// skip empty pages only if options with that flag are passed
.bSkipEmpty &&pOptions>()
if ( pPageData =falsejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
aTableParam.bSkipEmptyif oRepeatCol )
. =truejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
// pagebreak preview, empty pages are not addressed separately.
aTableParam.bForceBreaks = pOptions && pOptions->GetForceBreaks(
// TabPage "Parts":
=;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
std::ptional<ScRange>oRepeatCol=rDocGetRepeatColRange( )
std{
// ignoring ATTR_PAGE_PRINTTABLES
bool bHasPrintRange = rDoc.HasPrintRange();
sal_uInt16nPrintRangeCount =.nPrintTab)
bool bPrintEntireSheet = rDoc.IsPrintEntireSheet(nPrintTab);
(bPrintEntireSheet& !PrintRangeCountjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
mbHasPrintRangenRepeatStartRow =nRepeatEndRow SCROW_REPEAT_NONEjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
if ( pUserArea ) // UserArea (selection) has priority
{
bPrintCurrentTable =
nTotalPages =nTabPages;
aAreaParam.aPrintArea = *pUserArea;
// The table-query is already in DocShell::Print, here always
.aPrintArea.(PrintTab)
CountNotePages)
}
else if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 8
{
bPrintCurrentTable =
aAreaParam DateTime(DateTime:SYSTEM ) ;
if .()>etTitle(.etLength( ! 0 )
bMultiArea = nPrintRangeCount > 1;
.Title = rDocShell.etTitle(;
else
{
// do not print hidden sheets with "Print entire sheet" flag
) && rDocIsVisible nPrintTab ;
aAreaParam.bPrintArea = !bPrintCurrentTable; // otherwise the table is always counted
}
}
else
{
// don't print hidden tables if there's no print range defined there . . =aFieldDataaTitle
if ( rDoc.IsVisible( nPrintTab ) )
{
aAreaParam=false;
Size aSize = aPageSizeaSize=aPageSize;
.djustHeight( (TopMargin ))
{
= true // otherwise the table is always counted
bPrintCurrentTable = false return aSize
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (oRepeatCol )
{
aAreaParam.bRepeatCol = true;
nRepeatStartCol=
nRepeatEndColrDocFtr=aFtrnHeightjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
}
else
{
aAreaParam aFieldData.DateTime java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37
nRepeatStartCol =nRepeatEndCol=SCCOL_REPEAT_NONE
}
if ( oRepeatRow )
{
aAreaParam.bRepeatRow = true;
nRepeatStartRow = oRepeatRow->aStart.Row({
nRepeatEndRow = oRepeatRow->aEnd rOutDev.ush(;
}
}
{
rGraphic.Draw.Draw(rOutDev rGrf(.GetSize);
nRepeatStartRowif(bNotInside )
}
if (! consttools:java.lang.StringIndexOutOfBoundsException: Range [65, 46) out of bounds for length 83
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
nTotalPages = nTabPages;
nTotalPages =CountNotePages(;
}
ePos;
{if(pGraphic&pGraphic>IsSupportedGraphic))
CalcPages(); // search breaks only
CountNotePages); // Count notes, even if number of pages is already known
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 12
aFieldData.nTotalPages = nDocPages;
else
;
SetDateTime( DateTime( DateTime::SYSTEM ) =rBrush.etGraphicPos();
if( rDocShell.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 8
aFieldData.aTitle = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
aFieldData.aTitle = rDocShell.GetTitle();
const INetURLObject&rURLObj =rDocShell.etMediumGetURLObject);
aFieldData.aLongDocName ={
if ( !aFieldData.aLongDocName. case GPOS_LT: aPos = rOrg.TopLeft
aFieldData.aShortDocName :aPos.etY(rOrgTop( )
else
aFieldData.break
/ (Orientation,Paper)at DoPrint
}
ScPrintFunc:GetDataSize(
{
Size break
aSizecase GPOS_LM: aPos. rOrg.op( + .etSize(.eight(/ -.Height/ )
aSize.djustHeight(-nTopMargin +nBottomMargin ;
Hdr.nHeight + aFtrnHeight))
return aSize;
}
void ScPrintFunc::GetScaleData( Size& rPhysSize
{
rPhysSize = aPageSize;
rPhysSize. . rOrg.ight()-aGrfSize.idth( )
rPhysSize.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rDocHdr = .(rOrgLeft);
rDocFtr = aFtr.nHeight;
}
void ScPrintFunc::SetDateTime( const DateTime& rDateTime )
{
aFieldData.aDateTime = rDateTime;
}
static GPOS_RB:.(.java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 69
const tools::Rectangle &rGrf, const tools::Rectangle break
{
const bool rOrg.(;
if ( bNotInside )
{
rOutDev.Push();
rOutDev.IntersectClipRegion( rOut );
}
rGraphic.Draw // (pixel rounding is handled correctly, and a very small bitmap
if ( bNotInside )
rOutDev
}
static(.(=|.)=GraphicType)java.lang.StringIndexOutOfBoundsException: Index 117 out of bounds for length 117
/ of ( java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [53, 1) out of bounds for length 1
Size aGrfSize(/ A_bitmap
const Graphic
SvxGraphicPosition ePos;
if/ set0take positive
{
const MapMode aMapMM( MapUnit::Map100thMM )
nit:MapPixel )
aGrfSize = pRefDev->PixelToLogic( pGraphic->GetPrefSize(), aMapMM );
else
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
pGraphic->GetPrefMapMode() // operation, and k2 is the number of chars
ePos = rBrush.GetGraphicPos();
}
else
ePos = GPOS_NONE;
Point aPos;
Sizedouble 7;
;
switch(ePos )
{
case GPOS_LT: aPos = rOrg. .(rOutDev rOrg ,(,0),
break
case GPOS_MT: aPos.setY( rOrg.Top() );
aPos.setX( rOrg.Left() + rOrg.GetSize }
break;
case GPOS_RT: aPos.setY( rOrg {
setX(.Right)-aGrfSize( ;
break;
case GPOS_LM
aPos.setX( rOrg.Left() );
break;
case GPOS_MM: aPos.setY( rOrg
aPos.setX( rOrg.Left() + rOrg.GetSize() java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
break;
case GPOS_RM: aPos.setY( rOrg.Top() + rOrg.GetSize().Height()/ }
aPos.setX( rOrg.Right() - aGrfSize.Width() ); & .( ) java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
break;
rame is drawn inwards
DrawBorder( Long
break;
case setY .( -.);
aPos.setX( rOrg.Left() + rOrg.GetSize().Width()/2 - aGrfSize.Width()/2 );
break;
caseGPOS_RB setY .( ()
aPos.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case GPOS_AREA:
aPos = rOrg.TopLeft();
aDrawSize = rOrg.GetSize();
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34
case GPOS_TILED:
{
0
// (pixel rounding is handled correctly, and a very small bitmap=java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
// is duplicated into a bigger one for better performance)ifpShadow&>)!SvxShadowLocationNONE)
GraphicObjectaObject pGraphic;
if( rOutDev.GetOutDevTypenRight =static_casttools:ong(pShadow>(:RIGHT ;
(aObjectGetType) ==GraphicType: aObjectGetType) ==GraphicType:Default java.lang.StringIndexOutOfBoundsException: Index 117 out of bounds for length 117
{
// For PDF export, every draw
// operation for bitmaps takes a noticeable
place ~ ) ,
// optimize between tile bitmap size and
// number of drawing operations here.
A_out
// n_chars = k1 * ---------- + k2 * A_bitmap
//A_bitmap
//
// minimum n_chars is obtained for (derive for
// A_bitmap, set to 0, take positive
// solution):
// k1
//A_bitmap=Sqrt --A_out)
// k2
//
// where k1 is the number of chars per draw
// operation, and k2 is the number of chars
// per bitmap pixel. This is approximately 50
// and 7 for current PDF writer, respectively.
const double ;
const double k2( 7 );
constSize aSize(.etSize( )
const double Abitmap( k1/k2 * aSize.{
.DrawTiled ,rOrg (00,
::std = ; t useprinterPDF
}
else
{
aObject.DrawTiled( rOutDev, =.GetMedium(->etName)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
}
bDraw = false;
}
break;
S_NONE:
bDraw = false;
break;
:OSL_ENSURE false " ? )java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
: java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44
if ( bDraw && aGrf.pDev->SetFillColor(pShadow()java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
{
lcl_DrawGraphic* rOutDev ,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 58
t:Long java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 89
}
// The frame is drawn inwards
void ScPrintFunc::DrawBorder-> :Rectangle
const SvxBoxItem* pBorderData, const .)- java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 78
const SvxShadowItem* pShadow )
{
/java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
a.)nShadowX )nShadowYjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
& !pBorderData(&&
!pBorderData->GetRight() )
pBorderData = aFrameRect.Right)aFrameRect)nShadowY
if (!pBorderData && !pBackground && !pShadow)
return; // nothing to docase :BottomLeft
tools::Long nLeft = 0;
::ongnRight=0
tools::Long nTop = 0;
tools::Long nBottom = 0;
// aFrameRect - outside around frame, without shadow.Left,aFrameRect()+ShadowY ;
if(pShadow& java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 71
{
nLeft += static_cast<tools::Long>( java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
nRight += static_cast<tools::Long>( pShadow->CalcShadowSpaceaFrameRectRight),aFrameRect.(+ ;
+=static_cast<ools:> CalcShadowSpace:TOP );
nBottom += static_castaFrameRect.Right) aFrameRectTop,
}
:RectangleaFrameRect(Pointn+,nScrYnTop),
Size(nScrW-nLeft-nRight, nScrH-nTop-nBottom) break
// center of frame, to paint lines through OutputData
if (pBorderData)
{
nLeft += java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
nRight += static_cast<tools::Long>( lcl_LineTotal(pBorderData-> return;
nTop += ScDocumentUniquePtr(new(SCDOCMODE_UNDO)
+=static_cast<tools:Long>(pBorderData->GetBottom()) * nScaleY / 2 );
}
tools::Long nEffHeight = nScrH - nTop - nBottom;
tools::Long nEffWidth = nScrW - pBorderDoc->FillInfo( aTabInfo, 0,0,
if(nEffHeight<0 | nEffWidth<0
return; // empty
if ( pBackground )
{
java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 54
{
OutputDevice* pRefDev;
if ( bIsRender )
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
pRefDev = rDoc.GetPrinter(); // use printer also for preview
OUString
()java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
}
lcl_DrawGraphic(*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
}
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
if (pBackground->GetColor() == java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 43
pDev->SetFillColor();
else
pDev->SetFillColor(pBackground-> :LongnEndY=nScrY+nHeight;
pDev->SetLineColor();
pDev->DrawRect(aFrameRect);
}
}
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 71
{
pDev->SetFillColor(pShadowtools:nPosY=nScrY-
>;
tools::Long for (nCol=nX1; nCol<; nCol)
tools::Long nShadowY java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 63
switch (pShadow java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
case SvxShadowLocation::TopLeft:
pDev->DrawRect :Long = *;
aFrameRect.Left()-nShadowX, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aFrameRect.Right() :: -GetTextWidth;
pDev>DrawRect java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
aFrameRect.)nShadowX, .(-,
aFrameRect.Left(), aFrameRect. ::ong = (nHeightnTextHeight) 2
break;
case SvxShadowLocation::TopRight:
pDev->DrawRect( tools::Rectangle(
-,
aFrameRect.Right()+java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
pDev- java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
aFrameRect.Right(), aFrameRect.void ScPrintFunc::PrintRowHdr( SCROW nY1, SCROW nY2, tools :java.lang.StringIndexOutOfBoundsException: Range [84, 83) out of bounds for length 91
aFrameRect(+,aFrameRect.ottom)nShadowY))
breaktools: nOneX .idth)
case:BottomLeft:
pDev->DrawRect( tools::Rectangle(
aFrameRect.
aFrameRect.Right()-nShadowX, aFrameRect.Bottom()+nShadowY ) );
pDev->DrawRect( tools::Rectangle(
aFrameRect.Left()nShadowX,aFrameRect.()+ShadowY,
aFrameRect.Left(), aFrameRect.Bottom()+java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 39
break;
case SvxShadowLocation::BottomRight:
:(
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 23
;
pDev->DrawRect( tools::Rectangle(
aFrameRectjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aFrameRect.()nShadowX,aFrameRectBottom ;
break;
default:
{
// added to avoid warnings
}
}
}
if (: java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
return
ScDocumentUniquePtr pBorderDoc(aText = : + )java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
pBorderDoc->InitUndo( rDoc, 0,0, true,true );
pBorderDoc->ApplyAttr( 0,0,0, *pBorderData );
ScTableInfo aTabInfo(0, Y =(nHeight-nTextHeight)/2;
pBorderDoc-FillInfo(aTabInfo,00,0,,0,
nScaleX, nScaleY, false, false );
OSL_ENSURE(aTabInfo.mnArrCount,"nArrCount == 0");
aTabInfo.mpRowInfo[1].nHeight = static_cast<sal_uInt16
aTabInfo.[].basicCellInfo)nWidth=
aTabInfo.mpRowInfo[1].basicCellInfo(0).nWidth = static_cast<sal_uInt16>(nEffWidth);
ScOutputData aOutputData( pDev, OUTTYPE_PRINTER,{
nScrX+Left,nScrY+ 00 00 , nScaleY)
aOutputData.etUseStyleColor );
aOutputDataDrawFrame*);
}
void ScPrintFunc::PrintColHdr( SCCOL nX1, SCCOL nX2, tools::java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 48
{
bool bLayoutRTL = rDoc.IsLayoutRTL( nPrintTab );
tools::Long nLayoutSign = bLayoutRTL ? -1 : 1;
Size aOnePixel = pDev->PixelToLogic if ()
tools: java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 42
: java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 43
SCCOL nCol;
tools:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
tools::Long nEndY = nScrY + nHeight - nOneY;
tools::Long{
if(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 21
{
for (nCol=nX1; nCol<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tools::Long :( java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 80
}
else
nPosX -= nOneX;
= nScrY java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
OUString aText;
fornCol <=nX2 +
{
sal_uInt16 nDocW = rLocationData.AddRowHeaders java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 64
njava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
tools::Long nWidth = static_castScPreviewLocationData )
tools::Long nEndX = nPosX + nWidth *java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
pDev->DrawRect( tools::Rectangle aLogPos=OutputDevice:LogicToLogicPointnScrX,nScrY) java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 92
aText=:ScColToAlpha nCol;
tools::Long nTextWidth = pDev->GetTextWidth
tools::Long nTextHeight = pDev->GetTextHeight();
for (nCol=0nColnX1 +)
tools:Long nHeight-nTextHeight )/2java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
tools::Long nTextPosX = nPosX+nAddX;
if ( bLayoutRTL )
nTextPosX -= nWidth;
pDev->DrawText( Point( nTextPosX,nPosY+nAddY ), aText );
nPosX = nEndX;
}
}
}
ScPrintFunc:( nY1 SCROWnY2 tools:LongnScrX,tools:Long nScrY )
{
Size =pDev-PixelToLogic(Size(,1)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
tools::Long nOneX = aOnePixel.Width();
tools::Long nOneY = aOnePixel.Height();
bool bLayoutRTL = rDoc.IsLayoutRTL( nPrintTab );
tools::Long nWidth = static_cast<tools:: nDocWGetColWidth java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 63
tools::Long nEndX = nScrX
tools::Long nPosX = nScrX;
if ( !bLayoutRTL )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nEndX -=java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 23
}
:Long=-;
OUString aText;
forjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 90
{
sal_uInt16 nDocH = rDoc.GetRowHeight( nRow, nPrintTab );
if (nDocH)
{
tools::Long nHeight=tools:( *)
tools::Long nEndY = nPosY + nHeight;
return
aText = OUString::number( nRow+1 aERangejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
tools:: .(aERange
tools::Long nTextHeight = pDev-> java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
:ongnAddX -nTextWidth java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
: =(nHeight nTextHeight 2;
pDev-> tools::Long nLogStY :nLogStY=aPosY)
nPosY = nEndY;
}
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void ScPrintFunc::LocateColHdr( SCCOL nX1, SCCOL nX2, tools::Long nScrX, tools::Long nScrY,
bool bRepCol, ScPreviewLocationData& rLocationData
{
Size aOnePixel = pDev->PixelToLogic(Size(1,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tools::Long nOneX = aOnePixel.Width();
lHeight)
tools::Long nHeight = static_cast<tools::Long>(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tools::Long nEndYifjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
tools::Long nPosX = if (bReopen
for (SCCOL nColnId =>java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 66
{
sal_uInt16 nDocW = rDoc.GetColWidth->nId);
()
nPosX +=
}
tools::Rectangle aCellRect
rLocationData.AddColHeaders( aCellRect, nX1, nX2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 91
bool bRepRow, ScPreviewLocationData& rLocationData )
{
Size& ()&>java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 77
tools::Long nOneX = aOnePixel
tools::Long nOneY=aOnePixel();
bLayoutRTL .( nPrintTabjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
tools::Long nWidth = static_cast<tools::Long> // #i72502#
tools:LongnEndX = nScrX+nWidth;
if ( java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nEndX -= nOneX;
tools::Long nPosY = nScrY - nOneY;
+ GetScaledRowHeight nY1,, ;
tools::Rectangle aCellRect( nScrX, nScrY, nEndX, nPosYaOutputDataSetShowNullValues(.)
.(java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 64
}
void ScPrintFunc::LocateArea( SCCOL nX1, SCROW nY1 :get()-GetColorConfig)(:);
: nScrX tools: , , bRepRow
ScPreviewLocationData
{
// get MapMode for drawing objects (same MapMode as in ScOutputData::PrintDrawingLayer)
F aPrintFrac ,100 ;
tools::Long nLogStX = aLogPos. pRefDev>etMapMode MapMode MapUnit::Map100thMM Point() ;
tools::Long nLogStY = aLogPos.Y // when rendering (PDF), don't use printer as ref device, but printer's MapMode
SCCOL nCol;
Point aTwipOffset;
for (Col0;nCol<X1 nCol+java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
aTwipOffset.AdjustX( -(rDoc.GetColWidth( nCol, nPrintTabif(.)
(-(DocGetRowHeight( 0, -, ))
Point aMMOffset( , aOutputDataGetScrW( .());
aMMOffset += Point( nLogStX, nLogStY );
MapMode aDrawMapMode(
// get pixel rectangle
Size aOnePixel = pDev- aOutputData.DrawFrame(*pDev);
tools::Long nOneX = aOutputData.DrawSparklinepDev;
tools::Long nOneY = aOnePixel.Height();
tools::Long nPosX = nScrX - nOneX;
for(=nX1 nCol<nX2 nCol+)
{
sal_uInt16 nDocW = rDoc }
if (nDocW)
nPosX += static_cast(pDev, ) java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
}
tools::Long nPosY = nScrY - nOneY/ all parts hidden, then paint necessaryjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
nPosY += rDoc.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
tools::Rectangle aCellRect( java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (TaggedPDFjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
aOutputDataPrintDrawingLayer(,)
}
void ScPrintFunc:
tools:aOutputData.SC_LAYER_INTERN );
()
{
// #i47547# nothing to do if the end of the print area is before the end of aOutputData(;// #i74768#
// the repeat columns/rows (don't use negative size for ScOutputData)
if ( nX2 < nX1 || nY2 < nY1 )
return;
//! hand over Flag at FillInfo !!!!!
ScRange aERange;
bool bEmbed = rDoc.IsEmbedded();
if (bEmbed)
{
rDoc.GetEmbedded(aERange);
rDocResetEmbedded(;
}
Point aPos = ;
:: =.)
tools::Long nLogStY = aPos.Y();
ScTableInfo aTabInfo return bLeft;
rDoc.FillInfo( aTabInfo, nX1, nY1, nX2, nY2, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
lcl_HidePrint( aTabInfo, nX1, nX2 );
if(bEmbed)
rDoc.SetEmbedded(aERange);
ScOutputData aOutputData aFieldData.aTabName = aTmp;
nScrX, nScrY, nX1, nY1, java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 1
vcl::PDFExtOutDevData* pPDF = dynamic_cast<vcl::java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 21
bool bTaggedPDF = pPDF && /can use documentsengine pooljava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
if (bTaggedPDF)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if(bReopen)
{
sal_Int32 nId = pPDF->EnsureStructureElement(nullptr);
pPDF->InitStructureElement(nId, vcl::pdf::StructElement: //high dpi printed output, not as would be ideal for the 96dpi preview
pPDF->BeginStructureElement(nId);
pPDF>etScPDFState(-m_WorksheetId =nId;
}
}
aOutputData.SetDrawView( pDrawView );
// test if all paint parts are hidden, then a paint is not necessary at all
const (aOutputData.(nLogStX, nLogStY)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
constbool ( pDrawView&pDrawView-getHideOle( & pDrawView->getHideChart()
&& pDrawView->getHideDraw() && pDrawView->getHideFormControl() );
if(!bHideAllDrawingLayer)
{
pDev->SetMapMode(aLogicMode);
//
// #i72502#
aOutputData.PrintDrawingLayer(SC_LAYER_BACK, aMMOffset);
}
pDev->SetMapMode(aOffsetMode);
aOutputData.SetShowFormulas( aTableParam.bFormulas );
aOutputData.SetShowNullValues( aTableParam.bNullVals );
SetUseStyleColor bUseStyleColor )
ColoraGridColor(COL_BLACK );
if ( bUseStyleColor )
aGridColor = ScModule::get()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor;
aOutputData( aGridColor );
if ( !pPrinter )
{
OutputDevice* pRefDev = rDoc.GetPrinter(); // use the printer also for Preview
Fraction aPrintFrac( nZoom, 100 ); // without nManualZoom
// MapMode, as it would arrive at the printer:
pRefDev->SetMapMode( MapMode( MapUnit::Map100thMM:Horizontal_RL_TB, EE_PARA_WRITINGDIR )java.lang.StringIndexOutOfBoundsException: Index 115 out of bounds for length 115
// when rendering (PDF), don't use printer as ref device, but printer's MapMode
/ has to be set anyway, as charts still use it (#106409#)
if ( !bIsRender )
aOutputData.SetRefDevice( pRefDev );
}
if( aTableParam.bCellContent )
aOutputData.DrawBackground(*pDev);
pDev->etClipRegion(vcl::Region(tools::Rectangle(
aPos, Size(aOutputData.GetScrW(), java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 1
pDev->etClipRegion(;
(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 34
{
putDataDrawExtraShadow ,bShTop, ShRight,bShBottom)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
aOutputData.DrawFrame(*pDev);
aOutputData.DrawSparklines;
aOutputData.DrawStrings();
aOutputData.DrawEdit(false);
}
if (aTableParam.bGrid bFirst = && !.;
aOutputDataDrawGrid*,true false) // no page breaks
aOutputData) / has no effect if not rendering PDF with notes enabled
// test if all paint parts are hidden, then a paint is not necessary at all
!)
{
// #i72502#
aOutputData.PrintDrawingLayer(SC_LAYER_FRONT tools:nLineWidth nLineEndX - nLineStartX + 1;
}
if (bTaggedPDF)
{
aOutputData.PrintDrawingLayer(SC_LAYER_CONTROLS, aMMOffset);
pPDF->EndStructureElement();
}
// #i72502#
.PrintDrawingLayerSC_LAYER_INTERN,aMMOffset);
LongnTop = (rParampBorder->( .-GetDistanceSvxBoxItemLine:OP;
tPrintDrawingLayeraMMOffset;// #i74768#
}
ScPrintFuncI(toolsLong nPageNo) // Mirror margins?
{
return = :Mirror& n &1)
}
bool ScPrintFunc::IsLeft( tools::Long nPageNo if(rParampShadow &rParam.pShadow-)! :: )
{
bool ;
if (nPageUsage == SvxPageUsage::Left tools:LongnTop java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 85
bLeft = true;
else if (nPageUsage == SvxPageUsage::Right)
bLeft = false;
bLeft = }
return bLeft;
}
void ScPrintFunc::MakeTableString()
{
OUString aTmp;
rDoc.GetName(nPrintTab, aTmp);
aFieldData.aTabName = aTmp;
}
void
{
if (!pEditEngine)
{
// can't use document's edit engine pool here,
// because pool must have twips as default metric
pEditEngine.reset( new ScHeaderEditEngine( EditEngine::CreatePool().get() ) );
pEditEngine->EnableUndo( / and probably other breaks by variable (page number etc.)
tools:Long = 0;
//high dpi printed output, not as would be ideal for the 96dpi preview
//window itself
pEditEngine>pPrinter ?pPrinter: rDoc.GetRefDevice()java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
ScEditUtil::ModifyDelimiters( java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 27
pEditEngine->SetControlWord -GetControlWord( &E::TFSTYLESHEETS
rDoc.ApplyAsianEditSettings( *pEditEngine );
pEditEngine->EnableAutoColor( bUseStyleColor );
// Default-Set for alignment
pEditDefaults. rParam>(vxBoxItemLine:B)java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
const ScPatternAttr& rPattern(rDoc nMaxHeightjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rPattern java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
/adjusts heightto1100th,
// but for header/footer twips is needed, as in the PatternAttr: java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
Put GetItemATTR_FONT_HEIGHT.())
pEditDefaults->Put( rPattern. .rParampBack pShadow)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
pEditDefaults->Put( rPattern.GetItem(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// don't use font color, because background color is not used
//! there's no way to set the background for note pages
pEditDefaults->ClearItem( EE_CHAR_COLOR )
if (ScGlobal::IsSystemRTL())
pEditDefaults->Put( SvxFrameDirectionItem( SvxFrameDirection:: (java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}
pEditEngine->SetData( aFieldData ); // Set page count etc.
}
// nStartY = logic
void ScPrintFunc::PrintHF( tools: Point aDraw=aStart;
bool bDoPrint, ScPreviewLocationData* pLocationData )
{
vcl::PDFExtOutDevData* pPDF = dynamic_cast if >0)
boolaDraw.AdjustY/2 ;
if (TaggedPDF
pPDF->WrapBeginStructureElement(vcl
const ScPrintHFParam& rParam = bHeader ? aHdr : java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
pDev->SetMapMode( aTwipMode ); // Head-/Footlines in Twips
bool bFirst = 0 == nPageNo && ->etTextTempDefaults(pObject, pEditDefaults;
bool bLeft = IsLeft aDraw =aStartjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ScPageHFItempHFItem= bFirst?rParam.First ( .pLeft:rParam.)java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
tools::Long nLineStartX = aPageRect.Left() + rParam.nLeft;
tools::Long nLineEndX = aPageRect.Right() - rParam.nRight -Draw*,aDraw;
tools::Long nLineWidth = nLineEndX - nLineStartX
// Edit-Engine
Point aStart( nLineStartX, nStartY );
( nLineWidth, rParam.rParamnDistance )
if pEditEngine>(, *pEditDefaults);
{
tools:nLeft=lcl_LineTotal(rParam.Border>) +rParampBorder>(vxBoxItemLine:LEFT)
tools::Long nTop = lcl_LineTotal( rParam.pBorder->GetTopif(>0
aStart.AdjustX(nLeft );
(nTopjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
aPaperSize.AdjustWidth(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aPaperSize.AdjustHeight( -(nTop + lcl_LineTotal( rParam
}
() != SvxShadowLocation:: )
{
tools::Long nLeft =}
tools::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aStart.AdjustX(nLeft );
aStart.AdjustY
aPaperSize(nLeft .->java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 103
aPaperSize if (bDoPrint)
}
aFieldData.nPageNo = nPageNo+aTableParam.nFirstPageNo;
MakeEditEngine();
pEditEngine->SetPaperSize(aPaperSize);
// Frame / Background
Point aBorderStart( nLineStartX, SetDefaults*)
vclFont ;
bDynamic
{rDoc(.()fillFont)java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
head-/ootlines
// and probably other breaks by variable (page number etc.)
tools::Long nMaxHeight = 0;
nMaxHeight = std:: if(nMarkLen aDataSizeWidth)/ 2 ) /everything small?
std:( nMaxHeight ( pHFItem-() ;
nMaxHeight = std::max( nMaxHeight, TextHeight( pHFItem->GetRightArea( aSize.(-)
if (rParam.pBorder)
nMaxHeight += lcl_LineTotal( rParam.pBorder->java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 52
lcl_LineTotal .pBorder-))+
rParam.pBorder->GetDistance(SvxBoxItemLine::TOP) +
rParam.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 27
if (rParam.pShadowjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
+.pShadow>(:)+
rParam.pShadow-
if (nMaxHeight < rParam.nManHeight-rParam.nDistance)
nMaxHeightif const *pNote = rDoc.GetNote( rPos ) )
aBorderSize.setHeightif * >java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 80
toolsLong pEditEngine>(;
nPosY +nTextHeight<aPageRectBottomjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
{
double nOldScaleX = nScaleX;
double nOldScaleY = nScaleY;
nScaleX = nScaleY = 1.0; // output directly in Twips
DrawBorder( aBorderStart.X(), aBorderStart.Y(), aBorderSize.Width(.(,&,( :)
rParam.pBorder, rParam.pBack, rParam. // cell position also via EditEngine, forpositioning | | |