summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJianyuan Li <lijiany@apache.org>2012-09-10 07:19:17 +0000
committerXisco Fauli <anistenis@gmail.com>2013-03-31 16:22:34 +0200
commit1b6049cde6cc7e59c3621fdcfdec368315496017 (patch)
treefefdfef7d5c91b5fdf1e75f02dfa1086ef4b62e1 /sd
parent55011ce4784c0a116753ac725f88bd4327010a2e (diff)
#119491# fix Handout view mode issue
Reported by: Du Jing Patch by: Jianyuan Li Review by: sunying
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/ppt/pptin.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 5764f3e7071e..308979d18e1f 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -558,6 +558,10 @@ sal_Bool ImplSdPPTImport::Import()
sal_Bool bStarDrawFiller = (*GetPageList( eAktPageKind ) )[ nAktPageNum ]->bStarDrawFiller;
PageKind ePgKind = ( bNotesMaster ) ? PK_NOTES : PK_STANDARD;
+ sal_Bool bHandout = (*GetPageList( eAktPageKind ) )[ nAktPageNum ]->bHandoutMaster;
+ if ( bHandout )
+ ePgKind = PK_HANDOUT;
+
pPage->SetPageKind( ePgKind );
pSdrModel->InsertMasterPage( (SdrPage*)pPage );
if ( bNotesMaster && bStarDrawFiller )
@@ -698,7 +702,7 @@ sal_Bool ImplSdPPTImport::Import()
}
SdPage* pMPage;
sal_uInt16 i;
- for ( i = 1; i < mpDoc->GetMasterPageCount() && ( (pMPage = (SdPage*)mpDoc->GetMasterPage( i )) != 0 ); i++ )
+ for ( i = 0; i < mpDoc->GetMasterPageCount() && ( (pMPage = (SdPage*)mpDoc->GetMasterPage( i )) != 0 ); i++ )
{
SetPageNum( i, PPT_MASTERPAGE );
/////////////////////////////////////////////
@@ -2277,7 +2281,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
if ( aPresentationText.Len() )
pPage->SetObjText( (SdrTextObj*)pText, pOutl, ePresKind, aPresentationText );
- if ( pPage->GetPageKind() != PK_NOTES )
+ if ( pPage->GetPageKind() != PK_NOTES && pPage->GetPageKind() != PK_HANDOUT)
{
SfxStyleSheet* pSheet2( pPage->GetStyleSheetForPresObj( ePresKind ) );
if ( pSheet2 )