Skip to content

Commit

Permalink
[RA 389459] write header/footer on each page
Browse files Browse the repository at this point in the history
Signed-off-by: sguan <sguan@actuate.com>
  • Loading branch information
sguan-actuate authored and greatyan committed Sep 21, 2015
1 parent 8ff7e71 commit 5157144
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ public class PPTXRender extends PageDeviceRender
*
* the default value is TRUE.
*/
public static final String OPTION_EDIT_MODE = "org.eclipse.birt.report.emitter.PPTX.editMode";
public static final String OPTION_EDIT_MODE = "org.eclipse.birt.report.emitter.PPTX.editMode"; //$NON-NLS-1$

/** The default output PPT file name. */
public static final String REPORT_FILE = "Report.pptx"; //$NON-NLS-1$
Expand Down Expand Up @@ -202,9 +202,15 @@ public void visitContainer( IContainerArea container )
{
if ( container instanceof PageArea )
{
if( editMode )
{
newPage( container );
new SlideWriter( this ).writeSlide( (PageArea) container );
this.pageGraphic.dispose( );
}
else{
visitPage( (PageArea) container );
}
}
else if ( container instanceof TableArea )
{
Expand Down Expand Up @@ -433,4 +439,9 @@ public boolean isTextWrap()
{
return isTextWrap;
}

public boolean isEditMode( )
{
return editMode;
}
}
Expand Up @@ -116,7 +116,10 @@ private void outputSlideMasters() throws IOException
writer.attribute( TAG_RELATIONSHIP_ID, slideMaster.getPart( )
.getRelationshipId( ) );
writer.closeTag( TAG_SLIDE_MASTER_ID );
new SlideWriter( render ).writeSlideMaster( slideMaster );
if ( render.isEditMode( ) )
{
new SlideWriter( render ).writeSlideMaster( slideMaster );
}
slideMaster.close( );
}
writer.closeTag( TAG_SLIDE_MASTER_ID_LIST );
Expand Down

0 comments on commit 5157144

Please sign in to comment.