Kaydet (Commit) 3224c2ad authored tarafından Miklos Vajna's avatar Miklos Vajna

SwView::UpdatePageNums: add LOK callback about page count change

Change-Id: If9ab69c9f3ec3f9f518738792ff020ef4cfd6390
(cherry picked from commit fb2e4da0)
üst 57840bb2
......@@ -143,7 +143,15 @@ typedef enum
/**
* No match was found for the search input
*/
LOK_CALLBACK_SEARCH_NOT_FOUND
LOK_CALLBACK_SEARCH_NOT_FOUND,
/**
* Number of pages changed in the document.
*
* Clients should assume that data returned by an earlier
* lok::Document::getDocumentSize() call is no longer valid.
*/
LOK_CALLBACK_PAGE_COUNT_CHANGED
}
LibreOfficeKitCallbackType;
......
......@@ -147,6 +147,7 @@
#include <vcl/settings.hxx>
#include <boost/scoped_ptr.hpp>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
const char sStatusDelim[] = " : ";
const char sStatusComma[] = " , ";
......@@ -1280,6 +1281,7 @@ void SwView::Execute(SfxRequest &rReq)
/// invalidate page numbering field
void SwView::UpdatePageNums(sal_uInt16 nPhyNum, sal_uInt16 nVirtNum, const OUString& rPgStr)
{
GetWrtShell().libreOfficeKitCallback(LOK_CALLBACK_PAGE_COUNT_CHANGED, 0);
OUString sTemp(GetPageStr( nPhyNum, nVirtNum, rPgStr ));
const SfxStringItem aTmp( FN_STAT_PAGE, sTemp );
// Used to distinguish which tooltip to show
......
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