/trunk/main/sc/source/ui/drawfunc/ |
H A D | fuins1.cxx | 105 Size aPageSize = rPage; in ScLimitSizeOnDrawPage() local 106 sal_Bool bNegative = aPageSize.Width() < 0; in ScLimitSizeOnDrawPage() 110 aPageSize.Width() = -aPageSize.Width(); in ScLimitSizeOnDrawPage() 114 if ( rSize.Width() > aPageSize.Width() || rSize.Height() > aPageSize.Height() ) in ScLimitSizeOnDrawPage() 116 double fX = aPageSize.Width() / (double) rSize.Width(); in ScLimitSizeOnDrawPage() 121 rSize.Width() = aPageSize.Width(); in ScLimitSizeOnDrawPage() 126 rSize.Height() = aPageSize.Height(); in ScLimitSizeOnDrawPage() 136 if ( rPos.X() + rSize.Width() > aPageSize.Width() ) in ScLimitSizeOnDrawPage() 137 rPos.X() = aPageSize.Width() - rSize.Width(); in ScLimitSizeOnDrawPage() 138 if ( rPos.Y() + rSize.Height() > aPageSize.Height() ) in ScLimitSizeOnDrawPage() [all …]
|
/trunk/main/sd/source/ui/view/ |
H A D | drviews8.cxx | 493 Size aBmpSize( aScanBmp.GetPrefSize() ), aPageSize( pPage->GetSize() ); in ScannerEvent() local 504 aPageSize.Width() -= pPage->GetLftBorder() + pPage->GetRgtBorder(); in ScannerEvent() 505 aPageSize.Height() -= pPage->GetUppBorder() + pPage->GetLwrBorder(); in ScannerEvent() 507 …( ( ( aBmpSize.Height() > aPageSize.Height() ) || ( aBmpSize.Width() > aPageSize.Width() ) ) && aB… in ScannerEvent() 510 double fWinWH = (double) aPageSize.Width() / aPageSize.Height(); in ScannerEvent() 514 aBmpSize.Width() = FRound( aPageSize.Height() * fGrfWH ); in ScannerEvent() 515 aBmpSize.Height()= aPageSize.Height(); in ScannerEvent() 519 aBmpSize.Width() = aPageSize.Width(); in ScannerEvent() 520 aBmpSize.Height()= FRound( aPageSize.Width() / fGrfWH ); in ScannerEvent() 524 …Point aPnt ( ( aPageSize.Width() - aBmpSize.Width() ) >> 1, ( aPageSize.Height() - aBmpSize.Height… in ScannerEvent()
|
H A D | drviewsa.cxx | 312 Size aPageSize( GetDoc()->GetSdPage(0, mePageKind)->GetSize() ); in Construct() local 313 Point aPageOrg( aPageSize.Width(), aPageSize.Height() / 2); in Construct() 314 Size aSize(aPageSize.Width() * 3, aPageSize.Height() * 2); in Construct() 694 Size aPageSize = pPageView->GetPage()->GetSize(); in GetStatusBarState() local 696 aPagePos.X() += aPageSize.Width() / 2; in GetStatusBarState() 697 aPageSize.Width() = (long) (aPageSize.Width() * 1.03); in GetStatusBarState() 699 aPagePos.Y() += aPageSize.Height() / 2; in GetStatusBarState() 700 aPageSize.Height() = (long) (aPageSize.Height() * 1.03); in GetStatusBarState() 701 aPagePos.Y() -= aPageSize.Height() / 2; in GetStatusBarState() 703 aPagePos.X() -= aPageSize.Width() / 2; in GetStatusBarState() [all …]
|
H A D | drviews9.cxx | 121 Size aPageSize = pPage->GetSize(); in SO2_DECL_REF() local 128 if ( ( ( aSize.Height() > aPageSize.Height() ) || ( aSize.Width() > aPageSize.Width() ) ) && in SO2_DECL_REF() 129 aSize.Height() && aPageSize.Height() ) in SO2_DECL_REF() 133 float fWinWH = (float)aPageSize.Width() / in SO2_DECL_REF() 134 (float)aPageSize.Height(); in SO2_DECL_REF() 139 aSize.Width() = (long)(aPageSize.Height() * fGrfWH); in SO2_DECL_REF() 140 aSize.Height()= aPageSize.Height(); in SO2_DECL_REF() 144 aSize.Width() = aPageSize.Width(); in SO2_DECL_REF() 145 aSize.Height()= (long)(aPageSize.Width() / fGrfWH); in SO2_DECL_REF() 151 Point aPnt ((aPageSize.Width() - aSize.Width()) / 2, in SO2_DECL_REF() [all …]
|
H A D | drviewse.cxx | 1090 Size aPageSize = pPageView->GetPage()->GetSize(); in FuSupport() local 1092 aPagePos.X() += aPageSize.Width() / 2; in FuSupport() 1093 aPageSize.Width() = (long) (aPageSize.Width() * 1.03); in FuSupport() 1097 aPagePos.Y() += aPageSize.Height() / 2; in FuSupport() 1098 aPageSize.Height() = (long) (aPageSize.Height() * 1.03); in FuSupport() 1099 aPagePos.Y() -= aPageSize.Height() / 2; in FuSupport() 1105 aPageSize.Height() = 2; in FuSupport() 1108 aPagePos.X() -= aPageSize.Width() / 2; in FuSupport() 1110 SetZoomRect( Rectangle( aPagePos, aPageSize ) ); in FuSupport()
|
H A D | DocumentRenderer.cxx | 868 const Size aPageSize (pPageToPrint->GetSize()); in Print() local 871 const sal_Int32 nPageWidth (aPageSize.Width() + mnGap in Print() 873 const sal_Int32 nPageHeight (aPageSize.Height() + mnGap in Print() 1911 const Size aPageSize (rHandoutPage.GetSize()); in PrepareHandout() local 1914 const double fHorz = (double) aPrintSize.Width() / aPageSize.Width(); in PrepareHandout() 1915 const double fVert = (double) aPrintSize.Height() / aPageSize.Height(); in PrepareHandout() 1919 aFract = Fraction(aPrintSize.Width(), aPageSize.Width()); in PrepareHandout() 1921 aFract = Fraction(aPrintSize.Height(), aPageSize.Height()); in PrepareHandout() 2039 const Size aPageSize = pPage->GetSize(); in PrepareRegularPages() local 2048 aFract = Fraction(rInfo.maPrintSize.Width(), aPageSize.Width()); in PrepareRegularPages() [all …]
|
H A D | drviews3.cxx | 523 Size aPageSize = mpActualPage->GetSize(); in ExecRuler() local 560 aPageSize.Width() - aViewSize.Width()); in ExecRuler() 618 aPageSize.Height() - aViewSize.Height()); in ExecRuler() 834 Size aPageSize = mpActualPage->GetSize(); in GetRulerState() local 836 Rectangle aRect(aPagePos, Point( aViewSize.Width() - (aPagePos.X() + aPageSize.Width()), in GetRulerState() 837 aViewSize.Height() - (aPagePos.Y() + aPageSize.Height()))); in GetRulerState() 913 aLRSpace.SetRight( aRect.Right() + aPageSize.Width() - maMarkRect.Right() ); in GetRulerState() 915 aULSpace.SetLower( aRect.Bottom() + aPageSize.Height() - maMarkRect.Bottom() ); in GetRulerState()
|
/trunk/main/vcl/source/window/ |
H A D | msgbox.cxx | 252 Size aPageSize; in ImplPosControls() local 347 aPageSize.Width() = aImageSize.Width(); in ImplPosControls() 353 aPageSize.Height() = aImageSize.Height(); in ImplPosControls() 359 aPageSize.Height() = aFixedSize.Height(); in ImplPosControls() 362 aPageSize.Width() += IMPL_SEP_MSGBOX_IMAGE; in ImplPosControls() 364 aPageSize.Width() += aFixedSize.Width()+1; in ImplPosControls() 367 if ( aPageSize.Width() < IMPL_MINSIZE_MSGBOX_WIDTH ) in ImplPosControls() 368 aPageSize.Width() = IMPL_MINSIZE_MSGBOX_WIDTH; in ImplPosControls() 369 if ( aPageSize.Width() < nTitleWidth ) in ImplPosControls() 370 aPageSize.Width() = nTitleWidth; in ImplPosControls() [all …]
|
/trunk/main/sc/source/filter/html/ |
H A D | htmlimp.cxx | 78 Size aPageSize; in ScHTMLImport() local 92 aPageSize = ((const SvxSizeItem&) rSet.Get(ATTR_PAGE_SIZE)).GetSize(); in ScHTMLImport() 93 if ( !aPageSize.Width() || !aPageSize.Height() ) in ScHTMLImport() 96 aPageSize = SvxPaperInfo::GetPaperSize( PAPER_A4 ); in ScHTMLImport() 98 aPageSize.Width() -= nLeftMargin + nRightMargin; in ScHTMLImport() 99 aPageSize.Height() -= nTopMargin + nBottomMargin; in ScHTMLImport() 100 aPageSize = pDefaultDev->LogicToPixel( aPageSize, MapMode( MAP_TWIP ) ); in ScHTMLImport() 105 aPageSize = pDefaultDev->LogicToPixel( in ScHTMLImport() 109 mpParser = new ScHTMLLayoutParser( mpEngine, rBaseURL, aPageSize, pDocP ); in ScHTMLImport()
|
/trunk/main/vcl/source/gdi/ |
H A D | print3.cxx | 817 PrinterController::PageSize aPageSize; in modifyJobSetup() local 868 return aPageSize; in modifyJobSetup() 907 PrinterController::PageSize aPageSize; in getPageFile() local 910 return aPageSize; in getPageFile() 928 o_rMtf.SetPrefSize( aPageSize.aSize ); in getPageFile() 947 return aPageSize; in getPageFile() 1011 if( aPaperSize != aPageSize.aSize ) in getFilteredPageFile() 1020 aPageSize.aSize = aPaperSize; in getFilteredPageFile() 1022 return aPageSize; in getFilteredPageFile() 1066 if( aPageSize.aSize.Width() && aPageSize.aSize.Height() ) in getFilteredPageFile() [all …]
|
H A D | print.cxx | 1228 const Size aPageSize = PixelToLogic( aPixSize, MAP_100TH_MM ); in SetPaperSizeUser() local 1229 bool bNeedToChange(maJobSetup.ImplGetConstData()->mnPaperWidth != aPageSize.Width() || in SetPaperSizeUser() 1230 maJobSetup.ImplGetConstData()->mnPaperHeight != aPageSize.Height()); in SetPaperSizeUser() 1239 const Paper aPaper = ImplGetPaperFormat(aPageSize.Width(), aPageSize.Height()); in SetPaperSizeUser() 1250 pSetupData->mnPaperWidth = aPageSize.Width(); in SetPaperSizeUser() 1251 pSetupData->mnPaperHeight = aPageSize.Height(); in SetPaperSizeUser() 1326 Size aPageSize = PixelToLogic( GetPaperSizePixel(), MAP_100TH_MM ); in GetPaperName() local 1327 Paper ePaper = ImplGetPaperFormat( aPageSize.Width(), aPageSize.Height() ); in GetPaperName() 1329 ePaper = ImplGetPaperFormat( aPageSize.Height(), aPageSize.Width() ); in GetPaperName()
|
/trunk/main/oox/source/xls/ |
H A D | drawingbase.cxx | 199 EmuSize aPageSize( lclHmmToEmu( rPageSizeHmm.Width ), lclHmmToEmu( rPageSizeHmm.Height ) ); in calcAnchorRectEmu() local 207 if( maPos.isValid() && (maPos.X < aPageSize.Width) && (maPos.Y < aPageSize.Height) ) in calcAnchorRectEmu() 216 if( (aPoint.X < aPageSize.Width) && (aPoint.Y < aPageSize.Height) ) in calcAnchorRectEmu() 233 … aAnchorRect.Width = ::std::min< sal_Int64 >( maSize.Width, aPageSize.Width - aAnchorRect.X ); in calcAnchorRectEmu() 234 … aAnchorRect.Height = ::std::min< sal_Int64 >( maSize.Height, aPageSize.Height - aAnchorRect.Y ); in calcAnchorRectEmu() 249 aAnchorRect.Width = aPageSize.Width - aAnchorRect.X; in calcAnchorRectEmu() 253 aAnchorRect.Height = aPageSize.Height - aAnchorRect.Y; in calcAnchorRectEmu()
|
/trunk/main/reportdesign/source/ui/report/ |
H A D | ReportWindow.cxx | 170 const Size aPageSize = LogicToPixel(Size(aPaperWidth,0)); in GetTotalWidth() local 171 nWidth = aPageSize.Width() + long(aStartWidth); in GetTotalWidth() 190 Size aPageSize = m_aViewsWindow.LogicToPixel(Size(nPaperWidth ,0)); in Resize() local 194 aPageSize.Height() = m_aHRuler.GetSizePixel().Height(); in Resize() 196 const long nTermp(m_aViewsWindow.getTotalHeight() + aPageSize.Height()); in Resize() 199 m_aHRuler.SetPosSizePixel(aStartPoint,aPageSize); in Resize() 202 m_aHRuler.SetMargin2(aPageSize.Width() - nLeftMargin - nRightMargin); in Resize() 204 aStartPoint.Y() += aPageSize.Height(); in Resize() 410 const Size aPageSize = LogicToPixel(Size(nPaperWidth,0),aMap); in impl_getRealPixelWidth() local 411 return aPageSize.Width() + REPORT_ENDMARKER_WIDTH + REPORT_STARTMARKER_WIDTH + SECTION_OFFSET; in impl_getRealPixelWidth()
|
/trunk/main/sw/source/core/view/ |
H A D | pagepreviewlayout.cxx | 688 _opPrevwPage->aPageSize = _rPage.GetPrev()->Frm().SSize(); in _CalcPreviewDataForPage() 690 _opPrevwPage->aPageSize = _rPage.GetNext()->Frm().SSize(); in _CalcPreviewDataForPage() 693 _opPrevwPage->aPageSize = _rPage.Frm().SSize(); in _CalcPreviewDataForPage() 696 if ( _opPrevwPage->aPageSize.Width() < maMaxPageSize.Width() ) in _CalcPreviewDataForPage() 698 if ( _opPrevwPage->aPageSize.Height() < maMaxPageSize.Height() ) in _CalcPreviewDataForPage() 1098 SwRect( (*aPageIter)->aPrevwWinPos, (*aPageIter)->aPageSize ); in Paint() 1120 Rectangle aPageRect( (*aPageIter)->aLogicPos, (*aPageIter)->aPageSize ); in Paint() 1245 Rectangle aPageRect( (*aPageIter)->aLogicPos, (*aPageIter)->aPageSize ); in Repaint() 1287 _aSelectedPrevwPage->aPageSize ); in _PaintSelectMarkAtPage() 1334 pOldSelectedPrevwPage->aPageSize ); in MarkNewSelectedPage() [all …]
|
/trunk/main/sd/source/core/ |
H A D | sdpage.cxx | 128 Size aPageSize(GetSize()); in SdPage() local 130 if (aPageSize.Width() > aPageSize.Height()) in SdPage() 882 Size aPageSize ( GetSize() ); in CreateDefaultPresObj() local 887 const int W1 = long(aPageSize.Width() * 0.233); in CreateDefaultPresObj() 888 const int W2 = long(aPageSize.Width() * 0.317); in CreateDefaultPresObj() 889 const int H = long(aPageSize.Height() * 0.069); in CreateDefaultPresObj() 922 Size aPageSize ( GetSize() ); in CreateDefaultPresObj() local 1312 Size aPageSize ( rPage.GetSize() ); in CalcAutoLayoutRectangles() local 1315 aSize.Width() = long( aPageSize.Width() * 0.7 ); in CalcAutoLayoutRectangles() 1333 Size aPageSize ( rPage.GetSize() ); in CalcAutoLayoutRectangles() local [all …]
|
/trunk/main/canvas/source/directx/ |
H A D | dx_9rm.cxx | 604 ::basegfx::B2IVector aPageSize(maPageSize); in DXRenderModule() 608 new DXSurface(*this,aPageSize)); in DXRenderModule() 612 aPageSize.setX(aPageSize.getX()>>1); in DXRenderModule() 613 aPageSize.setY(aPageSize.getY()>>1); in DXRenderModule() 614 if((aPageSize.getX() < MIN_TEXTURE_SIZE) || in DXRenderModule() 615 (aPageSize.getY() < MIN_TEXTURE_SIZE)) in DXRenderModule() 623 maPageSize=aPageSize; in DXRenderModule() 1292 const ::basegfx::B2IVector aPageSize(getPageSize()); in flushVertexCache() local 1293 const float nHalfPixelSizeX(0.5f/aPageSize.getX()); in flushVertexCache() 1294 const float nHalfPixelSizeY(0.5f/aPageSize.getY()); in flushVertexCache()
|
/trunk/main/sw/source/ui/uiview/ |
H A D | viewmdi.cxx | 122 Size aPageSize( aPageRect.SSize() ); in _SetZoom() local 128 aPageSize.Width() += pPostItMgr->GetSidebarWidth() + pPostItMgr->GetSidebarBorderWidth(); in _SetZoom() 136 aPageSize.Width() += Abs( long(rLeftLRSpace.GetLeft()) - long(rLRSpace.GetLeft()) ); in _SetZoom() 147 aPageSize.Width() -= ( rLRSpace.GetLeft() + rLRSpace.GetRight() + nLeftOfst * 2 ); in _SetZoom() 150 nFac = aWindowSize.Width() * 100 / aPageSize.Width(); in _SetZoom() 155 long nTmpWidth = bAutomaticViewLayout ? aPageSize.Width() : aRootSize.Width(); in _SetZoom() 157 aPageSize.Height() += nOf; in _SetZoom() 162 long nVisPercent = aWindowSize.Height() * 100 / aPageSize.Height(); in _SetZoom() 168 const long nTmpWidth = bAutomaticViewLayout ? aPageSize.Width() : aRootSize.Width(); in _SetZoom()
|
/trunk/main/canvas/source/tools/ |
H A D | surfaceproxy.cxx | 46 const ::basegfx::B2ISize aPageSize(mpPageManager->getPageSize()); in SurfaceProxy() local 47 const sal_Int32 aPageSizeX(aPageSize.getX()); in SurfaceProxy() 48 const sal_Int32 aPageSizeY(aPageSize.getY()); in SurfaceProxy() 76 aPageSize.getX() ), in SurfaceProxy() 78 aPageSize.getY() ) ); in SurfaceProxy()
|
H A D | surface.cxx | 78 ::basegfx::B2ISize aPageSize(mpPageManager->getPageSize()); in getUVCoords() 83 const double pw( aPageSize.getX() ); in getUVCoords() 84 const double ph( aPageSize.getY() ); in getUVCoords() 103 ::basegfx::B2ISize aPageSize(mpPageManager->getPageSize()); in getUVCoords() 105 const double pw( aPageSize.getX() ); in getUVCoords() 106 const double ph( aPageSize.getY() ); in getUVCoords()
|
/trunk/main/cui/source/tabpages/ |
H A D | grfpage.cxx | 204 aPageSize = ((const SvxSizeItem*)pItem)->GetSize(); in Reset() 206 sal_Int64 nTmp = aHeightMF.Normalize(aPageSize.Height()); in Reset() 208 nTmp = aWidthMF.Normalize(aPageSize.Width()); in Reset() 216 aPageSize = OutputDevice::LogicToLogic( in Reset() 489 / 100 >= aPageSize.Width() ) ) in IMPL_LINK() 496 ( aPageSize.Width() * 100 / nWidthZoom + nRight ); in IMPL_LINK() 504 ( aPageSize.Width() * 100 / nWidthZoom + nLeft ); in IMPL_LINK() 522 / 100 >= aPageSize.Height())) in IMPL_LINK() 529 ( aPageSize.Height() * 100 / nHeightZoom + nBottom); in IMPL_LINK() 537 ( aPageSize.Height() * 100 / nHeightZoom + nTop); in IMPL_LINK()
|
/trunk/main/odk/examples/DevelopersGuide/Drawing/ |
H A D | DrawingDemo.java | 231 Size aPageSize = PageHelper.getPageSize( pPages[ i ] ); in Demo_ShapeCreation() local 232 int nHalfWidth = aPageSize.Width / 2; in Demo_ShapeCreation() 233 int nHalfHeight = aPageSize.Height / 2; in Demo_ShapeCreation() 370 Size aPageSize = PageHelper.getPageSize( xDrawPage ); in Demo_Group1() local 374 int nPosX = ( aPageSize.Width * 3 ) / 4 - nWidth / 2; in Demo_Group1() 376 int nPosY2 = aPageSize.Height / 2 - ( nPosY1 + nHeight ); in Demo_Group1()
|
/trunk/main/sc/source/ui/view/ |
H A D | prevwsh.cxx | 289 Size aPageSize = ((const SvxSizeItem&) pParamSet->Get(ATTR_PAGE_SIZE)).GetSize(); in UpdateScrollBars() local 290 aPageSize.Width() = (long) (aPageSize.Width() * HMM_PER_TWIPS ); in UpdateScrollBars() 291 aPageSize.Height() = (long) (aPageSize.Height() * HMM_PER_TWIPS ); in UpdateScrollBars() 302 pHorScroll->SetRange( Range( 0, aPageSize.Width() ) ); in UpdateScrollBars() 306 nMaxPos = aPageSize.Width() - aWindowSize.Width(); in UpdateScrollBars() 333 nMaxVertPos = aPageSize.Height() - aWindowSize.Height(); in UpdateScrollBars() 348 pVerScroll->SetRange( Range( 0, aPageSize.Height() ) ); in UpdateScrollBars() 356 pVerScroll->SetRange( Range( 0, aPageSize.Height() ) ); in UpdateScrollBars()
|
/trunk/main/chart2/source/controller/chartapiwrapper/ |
H A D | LegendWrapper.cxx | 318 awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); in setPosition() local 322 aRelativePosition.Primary = double(aPosition.X)/double(aPageSize.Width); in setPosition() 323 aRelativePosition.Secondary = double(aPosition.Y)/double(aPageSize.Height); in setPosition() 341 awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); in setSize() local 342 awt::Rectangle aPageRectangle( 0,0,aPageSize.Width,aPageSize.Height); in setSize()
|
/trunk/main/sd/source/ui/slideshow/ |
H A D | slideshowviewimpl.cxx | 365 Size aPageSize( pP->GetSize() ); in getTransformation() local 367 const double page_ratio = (double)aPageSize.Width() / (double)aPageSize.Height(); in getTransformation() 372 aOutputSize.Height() = ( aOutputSize.Width() * aPageSize.Height() ) / aPageSize.Width(); in getTransformation() 376 aOutputSize.Width() = ( aOutputSize.Height() * aPageSize.Width() ) / aPageSize.Height(); in getTransformation()
|
/trunk/main/chart2/source/view/main/ |
H A D | ChartView.cxx | 2527 awt::Size aPageSize = ChartModelHelper::getPageSize( m_xChartModel ); in createShapes() local 2534 pPage->SetSize(Size(aPageSize.Width,aPageSize.Height)); in createShapes() 2546 formatPage( m_xChartModel, aPageSize, xPageShapes, m_xShapeFactory ); in createShapes() 2549 awt::Rectangle aRemainingSpace( 0, 0, aPageSize.Width, aPageSize.Height ); in createShapes() 2572 , aRemainingSpace, aPageSize, ALIGN_TOP, bAutoPositionDummy ); in createShapes() 2578 , aRemainingSpace, aPageSize, ALIGN_TOP, bAutoPositionDummy ); in createShapes() 2602 , aRemainingSpace, aPageSize, ALIGN_BOTTOM, bAutoPosition_XTitle ); in createShapes() 2611 , aRemainingSpace, aPageSize, ALIGN_LEFT, bAutoPosition_YTitle ); in createShapes() 2620 , aRemainingSpace, aPageSize, ALIGN_RIGHT, bAutoPosition_ZTitle ); in createShapes() 2667 … changePositionOfAxisTitle( apVTitle_Y.get(), ALIGN_LEFT, aDiagramPlusAxesRect, aPageSize ); in createShapes() [all …]
|