Lines Matching refs:sal_Int32

199             for( sal_Int32 i = 0; i < aLabelSeq.getLength(); ++i )  in lcl_createTextShapes()
234 … lcl_collectColumnWidths( std::vector< sal_Int32 >& rColumnWidths, const sal_Int32 nNumberOfRows, … in lcl_collectColumnWidths()
235 …, const ::std::vector< Reference< drawing::XShape > > aTextShapes, sal_Int32 nSymbolPlusDistanceWi… in lcl_collectColumnWidths()
238 sal_Int32 nRow = 0; in lcl_collectColumnWidths()
239 sal_Int32 nColumn = 0; in lcl_collectColumnWidths()
240 sal_Int32 nNumberOfEntries = aTextShapes.size(); in lcl_collectColumnWidths()
245 sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns); in lcl_collectColumnWidths()
249 sal_Int32 nWidth = nSymbolPlusDistanceWidth + aTextSize.Width; in lcl_collectColumnWidths()
259 void lcl_collectRowHeighs( std::vector< sal_Int32 >& rRowHeights, const sal_Int32 nNumberOfRows, co… in lcl_collectRowHeighs()
265 sal_Int32 nRow = 0; in lcl_collectRowHeighs()
266 sal_Int32 nColumn = 0; in lcl_collectRowHeighs()
267 sal_Int32 nNumberOfEntries = aTextShapes.size(); in lcl_collectRowHeighs()
270 sal_Int32 nCurrentRowHeight = 0; in lcl_collectRowHeighs()
273 sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns); in lcl_collectRowHeighs()
284 sal_Int32 lcl_getTextLineHeight( const std::vector< sal_Int32 >& aRowHeights, const sal_Int32 nNumb… in lcl_getTextLineHeight()
286 const sal_Int32 nFontHeight = static_cast< sal_Int32 >( fViewFontSize ); in lcl_getTextLineHeight()
287 sal_Int32 nTextLineHeight = nFontHeight; in lcl_getTextLineHeight()
288 for( sal_Int32 nR=0; nR<nNumberOfRows; nR++ ) in lcl_getTextLineHeight()
290 sal_Int32 nFullTextHeight = aRowHeights[ nR ]; in lcl_getTextLineHeight()
318 sal_Int32 nXPadding = static_cast< sal_Int32 >( std::max( 100.0, fViewFontSize * 0.33 ) ); in lcl_placeLegendEntries()
320 sal_Int32 nXOffset = static_cast< sal_Int32 >( std::max( 100.0, fViewFontSize * 0.66 ) ); in lcl_placeLegendEntries()
321 sal_Int32 nYPadding = static_cast< sal_Int32 >( std::max( 100.0, fViewFontSize * 0.2 ) ); in lcl_placeLegendEntries()
322 sal_Int32 nYOffset = static_cast< sal_Int32 >( std::max( 100.0, fViewFontSize * 0.2 ) ); in lcl_placeLegendEntries()
325 …const sal_Int32 nSymbolToTextDistance = static_cast< sal_Int32 >( std::max( 100.0, fViewFontSize *… in lcl_placeLegendEntries()
326 const sal_Int32 nSymbolPlusDistanceWidth = rMaxSymbolExtent.Width + nSymbolToTextDistance; in lcl_placeLegendEntries()
327 sal_Int32 nMaxTextWidth = rAvailableSpace.Width - (2 * nXPadding) - nSymbolPlusDistanceWidth; in lcl_placeLegendEntries()
345 sal_Int32 nMaxEntryWidth = nXOffset + nSymbolPlusDistanceWidth + aMaxEntryExtent.Width; in lcl_placeLegendEntries()
346 sal_Int32 nMaxEntryHeight = nYOffset + aMaxEntryExtent.Height; in lcl_placeLegendEntries()
347 sal_Int32 nNumberOfEntries = rEntries.size(); in lcl_placeLegendEntries()
349 sal_Int32 nNumberOfColumns = 0, nNumberOfRows = 0; in lcl_placeLegendEntries()
350 std::vector< sal_Int32 > aColumnWidths; in lcl_placeLegendEntries()
351 std::vector< sal_Int32 > aRowHeights; in lcl_placeLegendEntries()
353 sal_Int32 nTextLineHeight = static_cast< sal_Int32 >( fViewFontSize ); in lcl_placeLegendEntries()
358 sal_Int32 nCurrentRow=0; in lcl_placeLegendEntries()
359 sal_Int32 nCurrentColumn=-1; in lcl_placeLegendEntries()
360 sal_Int32 nColumnCount=0; in lcl_placeLegendEntries()
361 sal_Int32 nMaxColumnCount=-1; in lcl_placeLegendEntries()
362 for( sal_Int32 nN=0; nN<static_cast<sal_Int32>(aTextShapes.size()); nN++ ) in lcl_placeLegendEntries()
368 sal_Int32 nNewWidth = aSize.Width + nSymbolPlusDistanceWidth; in lcl_placeLegendEntries()
369 sal_Int32 nCurrentColumnCount = aColumnWidths.size(); in lcl_placeLegendEntries()
392 sal_Int32 nSumWidth = 0; in lcl_placeLegendEntries()
393 for( sal_Int32 nC=0; nC<nCurrentColumnCount; nC++ ) in lcl_placeLegendEntries()
427 sal_Int32 nSumHeight = 0; in lcl_placeLegendEntries()
428 for( sal_Int32 nR=0; nR<nNumberOfRows; nR++ ) in lcl_placeLegendEntries()
430 sal_Int32 nRemainingSpace = rAvailableSpace.Height - nSumHeight; in lcl_placeLegendEntries()
435 for( sal_Int32 nR=nNumberOfRows; nR--; ) in lcl_placeLegendEntries()
437 for( sal_Int32 nC=nNumberOfColumns; nC--; ) in lcl_placeLegendEntries()
439 sal_Int32 nEntry = (nC + nR * nNumberOfColumns); in lcl_placeLegendEntries()
440 if( nEntry < static_cast<sal_Int32>(aTextShapes.size()) ) in lcl_placeLegendEntries()
458 nNumberOfRows = static_cast<sal_Int32>(aRowHeights.size()); in lcl_placeLegendEntries()
462 sal_Int32 nNormalSpacingHeight = 2*nYPadding+(nNumberOfRows-1)*nYOffset; in lcl_placeLegendEntries()
471sal_Int32 nRemainingSingleSpace = (nRemainingSpace-nNormalSpacingHeight)/(nNumberOfRows+1); in lcl_placeLegendEntries()
478 sal_Int32 nSumWidth = 0; in lcl_placeLegendEntries()
479 for( sal_Int32 nC=0; nC<nNumberOfColumns; nC++ ) in lcl_placeLegendEntries()
484 sal_Int32 nNormalSpacingWidth = 2*nXPadding+(nNumberOfColumns-1)*nXOffset; in lcl_placeLegendEntries()
493sal_Int32 nRemainingSingleSpace = (nRemainingSpace-nNormalSpacingWidth)/(nNumberOfColumns+1); in lcl_placeLegendEntries()
501 sal_Int32 nMaxNumberOfRows = nMaxEntryHeight in lcl_placeLegendEntries()
506 ? static_cast< sal_Int32 >( in lcl_placeLegendEntries()
511 ? static_cast< sal_Int32 >( in lcl_placeLegendEntries()
518 sal_Int32 nMaxNumberOfColumns = nMaxEntryWidth in lcl_placeLegendEntries()
523 ? static_cast< sal_Int32 >( in lcl_placeLegendEntries()
528 ? static_cast< sal_Int32 >( in lcl_placeLegendEntries()
539 nNumberOfRows = static_cast< sal_Int32 >( in lcl_placeLegendEntries()
542 ? static_cast< sal_Int32 >( in lcl_placeLegendEntries()
558 sal_Int32 nCurrentXPos = nXPadding; in lcl_placeLegendEntries()
559 sal_Int32 nCurrentYPos = nYPadding; in lcl_placeLegendEntries()
564 sal_Int32 nMaxYPos = 0; in lcl_placeLegendEntries()
565 sal_Int32 nRow = 0; in lcl_placeLegendEntries()
566 sal_Int32 nColumn = 0; in lcl_placeLegendEntries()
572 sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns); in lcl_placeLegendEntries()
581 sal_Int32 nTextXPos = nCurrentXPos + nSymbolPlusDistanceWidth; in lcl_placeLegendEntries()
592 sal_Int32 nSymbolXPos = nCurrentXPos; in lcl_placeLegendEntries()
595sal_Int32 nSymbolYPos = nCurrentYPos + ( ( nTextLineHeight - aSymbolSize.Height ) / 2 ); in lcl_placeLegendEntries()
624 sal_Int32 nLegendWidth = -(nCurrentXPos-nXPadding); in lcl_placeLegendEntries()
632 sal_Int32 nLegendWidth = aResultingLegendSize.Width; in lcl_placeLegendEntries()
634 for( sal_Int32 nEntry=0; nEntry<nNumberOfEntries; nEntry++ ) in lcl_placeLegendEntries()
651 sal_Int32 lcl_getLegendLeftRightMargin() in lcl_getLegendLeftRightMargin()
657 sal_Int32 lcl_getLegendTopBottomMargin() in lcl_getLegendTopBottomMargin()
729 static_cast< sal_Int32 >( aRelPos.Primary * rPageSize.Width ), in lcl_calculatePositionAndRemainingSpace()
730 static_cast< sal_Int32 >( aRelPos.Secondary * rPageSize.Height )); in lcl_calculatePositionAndRemainingSpace()
737 sal_Int32 nXDistance = lcl_getLegendLeftRightMargin(); in lcl_calculatePositionAndRemainingSpace()
738 sal_Int32 nYDistance = lcl_getLegendTopBottomMargin(); in lcl_calculatePositionAndRemainingSpace()
743 sal_Int32 nExtent = aLegendSize.Width; in lcl_calculatePositionAndRemainingSpace()
755 sal_Int32 nExtent = aLegendSize.Height; in lcl_calculatePositionAndRemainingSpace()
772 const sal_Int32 nEdgeDistance( 30 ); in lcl_calculatePositionAndRemainingSpace()
775 sal_Int32 nNewX( (rPageSize.Width - aLegendSize.Width) - nEdgeDistance ); in lcl_calculatePositionAndRemainingSpace()
781 sal_Int32 nNewY( (rPageSize.Height - aLegendSize.Height) - nEdgeDistance ); in lcl_calculatePositionAndRemainingSpace()
917 …aLegendSize.Width = static_cast<sal_Int32>( ::rtl::math::approxCeil( aRelativeSize.Primary * rPage… in createShapes()
918 …aLegendSize.Height = static_cast<sal_Int32>( ::rtl::math::approxCeil( aRelativeSize.Secondary * rP… in createShapes()
942 sal_Int32 nSymbolHeigth = static_cast< sal_Int32 >( fViewFontSize * 0.6 ); in createShapes()
943 sal_Int32 nSymbolWidth = static_cast< sal_Int32 >( nSymbolHeigth ); in createShapes()
953 sal_Int32 nCurrentWidth = aCurrentRatio.Width; in createShapes()