summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-21 01:48:44 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:33 +0200
commitd2dc8ded7008908e9290cff3db4d14682e7cbe71 (patch)
treee56c4cc660306ba389d63f9ed664bd7a12afb451 /sw/source
parent0a52f261c6969992bb0b7ed3d8618884e1f62272 (diff)
uitest: add more properties to writer state
Change-Id: Iadf223b38d84c1a6fb9892642f39e63dd16c72c8
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/uitest/uiobject.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx
index c6df6e1fe663..0102c984c4b9 100644
--- a/sw/source/uibase/uitest/uiobject.cxx
+++ b/sw/source/uibase/uitest/uiobject.cxx
@@ -35,11 +35,24 @@ StringMap SwEditWinUIObject::get_state()
sal_uInt16 nPageNum = 0;
sal_uInt16 nVirtPageNum = 0;
- getWrtShell(mxEditWin).GetPageNum(nPageNum, nVirtPageNum);
+ SwWrtShell& rWrtShell = getWrtShell(mxEditWin);
+ rWrtShell.GetPageNum(nPageNum, nVirtPageNum);
aMap["CurrentPage"] = OUString::number(nPageNum);
- getWrtShell(mxEditWin).GetPageNum(nPageNum, nVirtPageNum, false);
+ rWrtShell.GetPageNum(nPageNum, nVirtPageNum, false);
aMap["TopVisiblePage"] = OUString::number(nPageNum);
+ sal_uInt16 nPages = rWrtShell.GetPageCnt();
+ aMap["Pages"] = OUString::number(nPages);
+
+ aMap["StartWord"] = OUString::number(rWrtShell.IsStartWord());
+ aMap["EndWord"] = OUString::number(rWrtShell.IsEndWord());
+ aMap["StartSentence"] = OUString::number(rWrtShell.IsStartSentence());
+ aMap["EndSentence"] = OUString::number(rWrtShell.IsEndSentence());
+ aMap["StartPara"] = OUString::number(rWrtShell.IsSttPara());
+ aMap["EndPara"] = OUString::number(rWrtShell.IsEndPara());
+ aMap["StartDoc"] = OUString::number(rWrtShell.IsStartOfDoc());
+ aMap["EndDoc"] = OUString::number(rWrtShell.IsEndOfDoc());
+
return aMap;
}