diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-26 17:00:20 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-27 11:01:17 +0200 |
commit | d6ea25d094258402a27c74a0938e014236c822b7 (patch) | |
tree | 376ac7df999f691e652d0a8ad81974eb14f245c3 /libreofficekit | |
parent | 05e4e065b04f1d0e120802f9f74d1017f16431c6 (diff) |
lokdocview: handle LOK_CALLBACK_SET_PART
Change-Id: I47fc389590d581155074fec63cca79bea3596860
(cherry picked from commit 96041179d4aa5e0eb543c3c5da8e493beb0ed133)
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 3203b4874b79..904760d1eea7 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -910,6 +910,8 @@ const char* LOKDocView_Impl::callbackTypeToString(int nType) return "LOK_CALLBACK_SEARCH_NOT_FOUND"; case LOK_CALLBACK_PAGE_COUNT_CHANGED: return "LOK_CALLBACK_PAGE_COUNT_CHANGED"; + case LOK_CALLBACK_SET_PART: + return "LOK_CALLBACK_SET_PART"; } return 0; } @@ -1009,6 +1011,11 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback) m_pDocument->pClass->getDocumentSize(m_pDocument, &m_nDocumentWidthTwips, &m_nDocumentHeightTwips); } break; + case LOK_CALLBACK_SET_PART: + { + renderDocument(0); + } + break; default: g_assert(false); break; @@ -1203,7 +1210,6 @@ SAL_DLLPUBLIC_EXPORT int lok_docview_get_part( LOKDocView* pDocView ) SAL_DLLPUBLIC_EXPORT void lok_docview_set_part( LOKDocView* pDocView, int nPart) { pDocView->m_pImpl->m_pDocument->pClass->setPart( pDocView->m_pImpl->m_pDocument, nPart ); - pDocView->m_pImpl->renderDocument(0); } SAL_DLLPUBLIC_EXPORT char* lok_docview_get_part_name( LOKDocView* pDocView, int nPart ) |