summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 35448c4a623e..118f1545b186 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -624,7 +624,7 @@ void Window::UpdateMapMode()
* @returns X position of the visible area as fraction (< 1) of the whole
* working area.
*/
-double Window::GetVisibleX()
+double Window::GetVisibleX() const
{
return (static_cast<double>(maWinPos.X()) / maViewSize.Width());
}
@@ -633,7 +633,7 @@ double Window::GetVisibleX()
* @returns Y position of the visible area as fraction (< 1) of the whole
* working area.
*/
-double Window::GetVisibleY()
+double Window::GetVisibleY() const
{
return (static_cast<double>(maWinPos.Y()) / maViewSize.Height());
}
@@ -660,7 +660,7 @@ void Window::SetVisibleXY(double fX, double fY)
* @returns width of the visible area in proportion to the width of the whole
* working area.
*/
-double Window::GetVisibleWidth()
+double Window::GetVisibleWidth() const
{
Size aWinSize = PixelToLogic(GetOutputSizePixel());
if ( aWinSize.Width() > maViewSize.Width() )
@@ -672,7 +672,7 @@ double Window::GetVisibleWidth()
* @returns height of the visible area in proportion to the height of the whole
* working area.
*/
-double Window::GetVisibleHeight()
+double Window::GetVisibleHeight() const
{
Size aWinSize = PixelToLogic(GetOutputSizePixel());
if ( aWinSize.Height() > maViewSize.Height() )
@@ -697,7 +697,7 @@ Point Window::GetVisibleCenter()
* @returns width of a scroll column in proportion to the width of the whole
* working area.
*/
-double Window::GetScrlLineWidth()
+double Window::GetScrlLineWidth() const
{
return (GetVisibleWidth() * SCROLL_LINE_FACT);
}
@@ -706,7 +706,7 @@ double Window::GetScrlLineWidth()
* @returns height of a scroll column in proportion to the height of the whole
* working area.
*/
-double Window::GetScrlLineHeight()
+double Window::GetScrlLineHeight() const
{
return (GetVisibleHeight() * SCROLL_LINE_FACT);
}
@@ -715,7 +715,7 @@ double Window::GetScrlLineHeight()
* @returns width of a scroll page in proportion to the width of the whole
* working area.
*/
-double Window::GetScrlPageWidth()
+double Window::GetScrlPageWidth() const
{
return (GetVisibleWidth() * SCROLL_PAGE_FACT);
}
@@ -724,7 +724,7 @@ double Window::GetScrlPageWidth()
* @returns height of a scroll page in proportion to the height of the whole
* working area.
*/
-double Window::GetScrlPageHeight()
+double Window::GetScrlPageHeight() const
{
return (GetVisibleHeight() * SCROLL_PAGE_FACT);
}