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

lokdocview: handle LOK_CALLBACK_SET_PART

Change-Id: I47fc389590d581155074fec63cca79bea3596860
üst 67a37be9
......@@ -913,6 +913,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;
}
......@@ -1015,6 +1017,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;
......@@ -1226,7 +1233,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 )
......
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