Kaydet (Commit) d3003be7 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add the impress zoom level to the state information

Change-Id: I8c064788159b3cdd83f9ef0f4609e615db789cc3
Reviewed-on: https://gerrit.libreoffice.org/35147Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 3c9b1306
...@@ -201,6 +201,7 @@ public: ...@@ -201,6 +201,7 @@ public:
void Scroll(long nX, long nY); void Scroll(long nX, long nY);
void ScrollLines(long nX, long nY); void ScrollLines(long nX, long nY);
virtual void SetZoom(long nZoom); virtual void SetZoom(long nZoom);
long GetZoom() const;
virtual void SetZoomRect(const Rectangle& rZoomRect); virtual void SetZoomRect(const Rectangle& rZoomRect);
void InitWindows(const Point& rViewOrigin, const Size& rViewSize, void InitWindows(const Point& rViewOrigin, const Size& rViewSize,
const Point& rWinPos, bool bUpdate = false); const Point& rWinPos, bool bUpdate = false);
......
...@@ -90,6 +90,7 @@ StringMap ImpressWindowUIObject::get_state() ...@@ -90,6 +90,7 @@ StringMap ImpressWindowUIObject::get_state()
aMap["SelectedText"] = getViewShell(mxWindow)->GetSelectionText(false); aMap["SelectedText"] = getViewShell(mxWindow)->GetSelectionText(false);
aMap["CurrentSlide"] = OUString::number(getViewShell(mxWindow)->GetCurPageId()); aMap["CurrentSlide"] = OUString::number(getViewShell(mxWindow)->GetCurPageId());
aMap["Zoom"] = OUString::number(getViewShell(mxWindow)->GetZoom());
return aMap; return aMap;
} }
......
...@@ -359,6 +359,16 @@ void ViewShell::SetZoom(long nZoom) ...@@ -359,6 +359,16 @@ void ViewShell::SetZoom(long nZoom)
UpdateScrollBars(); UpdateScrollBars();
} }
long ViewShell::GetZoom() const
{
if (mpContentWindow)
{
mpContentWindow->GetZoom();
}
return 0;
}
/** /**
* Set zoom rectangle for active window. Sets all split windows to the same zoom * Set zoom rectangle for active window. Sets all split windows to the same zoom
* factor. * factor.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment