PresenterUIPainter.cxx (c142477c) PresenterUIPainter.cxx (870c3792)
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

--- 33 unchanged lines hidden (view full) ---

42 const css::awt::Rectangle& rRepaintBox,
43 const css::awt::Rectangle& rBoundingBox,
44 const css::uno::Reference<css::rendering::XBitmap>& rxLeftBitmap,
45 const css::uno::Reference<css::rendering::XBitmap>& rxRepeatableCenterBitmap,
46 const css::uno::Reference<css::rendering::XBitmap>& rxRightBitmap)
47{
48 if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox))
49 {
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

--- 33 unchanged lines hidden (view full) ---

42 const css::awt::Rectangle& rRepaintBox,
43 const css::awt::Rectangle& rBoundingBox,
44 const css::uno::Reference<css::rendering::XBitmap>& rxLeftBitmap,
45 const css::uno::Reference<css::rendering::XBitmap>& rxRepeatableCenterBitmap,
46 const css::uno::Reference<css::rendering::XBitmap>& rxRightBitmap)
47{
48 if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox))
49 {
50 // The bounding box lies completly outside the repaint area.
50 // The bounding box lies completely outside the repaint area.
51 // Nothing has to be repainted.
52 return;
53 }
54
55 // Get bitmap sizes.
56 geometry::IntegerSize2D aLeftBitmapSize;
57 if (rxLeftBitmap.is())
58 aLeftBitmapSize = rxLeftBitmap->getSize();

--- 88 unchanged lines hidden (view full) ---

147 const css::awt::Rectangle& rRepaintBox,
148 const css::awt::Rectangle& rBoundingBox,
149 const css::uno::Reference<css::rendering::XBitmap>& rxTopBitmap,
150 const css::uno::Reference<css::rendering::XBitmap>& rxRepeatableCenterBitmap,
151 const css::uno::Reference<css::rendering::XBitmap>& rxBottomBitmap)
152{
153 if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox))
154 {
51 // Nothing has to be repainted.
52 return;
53 }
54
55 // Get bitmap sizes.
56 geometry::IntegerSize2D aLeftBitmapSize;
57 if (rxLeftBitmap.is())
58 aLeftBitmapSize = rxLeftBitmap->getSize();

--- 88 unchanged lines hidden (view full) ---

147 const css::awt::Rectangle& rRepaintBox,
148 const css::awt::Rectangle& rBoundingBox,
149 const css::uno::Reference<css::rendering::XBitmap>& rxTopBitmap,
150 const css::uno::Reference<css::rendering::XBitmap>& rxRepeatableCenterBitmap,
151 const css::uno::Reference<css::rendering::XBitmap>& rxBottomBitmap)
152{
153 if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox))
154 {
155 // The bounding box lies completly outside the repaint area.
155 // The bounding box lies completely outside the repaint area.
156 // Nothing has to be repainted.
157 return;
158 }
159
160 // Get bitmap sizes.
161 geometry::IntegerSize2D aTopBitmapSize;
162 if (rxTopBitmap.is())
163 aTopBitmapSize = rxTopBitmap->getSize();

--- 89 unchanged lines hidden ---
156 // Nothing has to be repainted.
157 return;
158 }
159
160 // Get bitmap sizes.
161 geometry::IntegerSize2D aTopBitmapSize;
162 if (rxTopBitmap.is())
163 aTopBitmapSize = rxTopBitmap->getSize();

--- 89 unchanged lines hidden ---