diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-15 09:50:47 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-17 14:28:32 +0200 |
commit | a39f690a2ac9bf8a04d3371cc837ca81bd85f22c (patch) | |
tree | fe12a4da2803e113d25b2c70a35d21f9e3d86f31 /sd | |
parent | 0618c5b854af8d1cb3dc19f7babbdfb45e8f4504 (diff) |
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
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 9 |
1 files 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 ); } } |