From a39f690a2ac9bf8a04d3371cc837ca81bd85f22c Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Tue, 15 Jul 2014 09:50:47 +0200 Subject: [PATCH] Render slides by default. We should probably introduce an API to allow selecting notes instead, however the default mode is to open whichever view we had open last for a given document -- whereas for nowwe probably always want to render the slides. Change-Id: I26540613d1a510f23e5abfc8fee2ad743c180f34 --- sd/source/ui/unoidl/unomodel.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f86e9cbbaf89..498c0c1d007c 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2225,8 +2225,6 @@ void SdXImpressDocument::paintTile( VirtualDevice& rDevice, Region( Rectangle( Point( nTilePosX, nTilePosY ), Size( nTileWidth, nTileHeight ) ) ) ); - - // TODO: Set page kind in frameview? } void SdXImpressDocument::setPart( int nPart ) @@ -2234,6 +2232,13 @@ void SdXImpressDocument::setPart( int nPart ) DrawViewShell* pViewSh = dynamic_cast< DrawViewShell* >( mpDoc->GetDocSh()->GetViewShell() ); if (pViewSh) { + // TODO: have an API to allow selecting between PK_STANDARD (just slide) + // and PK_NOTES (which shows the combined slide above notes). There is alo + // a PK_HANDOUT -- that however just shows multiple empty pages (it's also + // only possible to select page 0 in this mode, I have no idea how you + // then actually select what is on the handout page, which defaults to + // a 4x4 grid of empty pages). + pViewSh->SetPageKind( PK_STANDARD ); pViewSh->SwitchPage( nPart ); } }