Kaydet (Commit) b25dd857 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Miklos Vajna

android: In Impress, switch to the 'Normal' (slides) view.

Other modes are not fit for the tiled rendering, and crash the viewer.

Change-Id: I6fb17663203d9eb298bba2b9bd143fdd28ffb470
üst 36e701b1
......@@ -84,6 +84,10 @@ public:
(void) ePartMode;
}
/**
* Setup various document properties that are needed for the document to
* be renderable via tiled rendering.
*/
virtual void initializeForTiledRendering()
{
}
......
......@@ -240,6 +240,9 @@ public:
virtual OUString getPartName( int nPart ) SAL_OVERRIDE;
virtual void setPartMode( LibreOfficeKitPartMode ePartMode ) SAL_OVERRIDE;
/// @see ITiledRenderable::initializeForTiledRendering().
virtual void initializeForTiledRendering() SAL_OVERRIDE;
// XComponent
/** This dispose implementation releases the resources held by the
......
......@@ -2347,6 +2347,11 @@ Size SdXImpressDocument::getDocumentSize()
return Size(convertMm100ToTwip(aSize.getWidth()), convertMm100ToTwip(aSize.getHeight()));
}
void SdXImpressDocument::initializeForTiledRendering()
{
// tiled rendering works only when we are in the 'Normal' view, switch to that
mpDocShell->GetViewShell()->GetViewFrame()->GetDispatcher()->Execute(SID_VIEWSHELL0, SfxCallMode::SYNCHRON | SfxCallMode::RECORD);
}
uno::Reference< i18n::XForbiddenCharacters > SdXImpressDocument::getForbiddenCharsTable()
{
......
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