diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-21 01:48:44 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:33 +0200 |
commit | d2dc8ded7008908e9290cff3db4d14682e7cbe71 (patch) | |
tree | e56c4cc660306ba389d63f9ed664bd7a12afb451 | |
parent | 0a52f261c6969992bb0b7ed3d8618884e1f62272 (diff) |
uitest: add more properties to writer state
Change-Id: Iadf223b38d84c1a6fb9892642f39e63dd16c72c8
-rw-r--r-- | sw/source/uibase/uitest/uiobject.cxx | 17 |
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; } |