diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-28 17:13:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-28 17:37:18 +0200 |
commit | 1dc60bc9e99304c58007bfd5a964ff3f78480106 (patch) | |
tree | 8ddc1154e6fb6ca71ae36e24612ab1173240981b /sfx2 | |
parent | 2ecf0ced9d2e55881033786fe95d45ceaeb73d37 (diff) |
SvxSearchItem: add m_nStartPoint{X,Y}
The idea is that if you have your cursor at the begining of a Writer
document, and you scroll down a lot, then search, then it's annoying
that search jumps back to the start of the document for the first hit.
Add an optional way to provide what is the starting point of such a
search, so we can have "when nothing is selected, then search from the
top left corner of the visible area".
No UI yet to enable this, but available via the UNO API.
Change-Id: Ibcf3a5f2eeba1372b1dfe8474081e6591a6e0134
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/sdi/sfxitems.sdi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/sdi/sfxitems.sdi b/sfx2/sdi/sfxitems.sdi index 1d7649e1d98d..f293e5c90a6f 100644 --- a/sfx2/sdi/sfxitems.sdi +++ b/sfx2/sdi/sfxitems.sdi @@ -89,6 +89,8 @@ INT32 InsertedChars MID_SEARCH_INSERTEDCHARS; INT32 TransliterateFlags MID_SEARCH_TRANSLITERATEFLAGS; INT16 Command MID_SEARCH_COMMAND; + INT32 SearchStartPointX MID_SEARCH_STARTPOINTX; + INT32 SearchStartPointY MID_SEARCH_STARTPOINTY; }; item SvxSearch SvxSearchItem; |