OpenXML Filter: PPTX: selective parts translation and reordering
There was some related work done for notes and comments reordering in the scope of issue #835 (closed). And this is for other known parts left. In particular, the following translation and ordering options are going to be covered (placed in the extraction order):
General document section
1. core-properties type, e.g. docProps/core.xml
bPreferenceTranslateDocProperties.b=true (available)
bPreferenceReorderDocProperties.b=false - if it is set to true, the properties will be placed in this order
bPreferenceTranslatePowerpointMasters.b=true (available)
2. slideMaster type, e.g. ppt/slideMasters/slideMaster1.xml - slide masters will be placed in this order unconditionally if the bPreferenceTranslatePowerpointMasters is set to true
Related parts:
-
diagramDatatype. e.g.ppt/diagrams/data1.xml
bPreferenceTranslateDiagramData.b=true - if it is set to true, all diagram data parts will be eligible for translation
bPreferenceReorderDiagramData.b=false - if it is set to true, all diagram data parts will be eligible for reordering
-
charttype, e.g.ppt/charts/chart1.xml
bPreferenceTranslateCharts.b=true - if it is set to true, all chart parts will be eligible for translation
bPreferenceReorderCharts.b=false - if it is set to true, all chart parts will be eligible for reordering
-
slideLayouttype, e.g.ppt/slideLayouts/slideLayout1.xml
Related parts:-
diagramDatatype. e.g.ppt/diagrams/data2.xml -
charttype, e.g.ppt/charts/chart2.xml
...
-
3. notesMaster type, e.g. ppt/notesMasters/notesMaster1.xml - notes masters will be placed in this order unconditionally if the bPreferenceTranslatePowerpointMasters is set to true
...
4. handoutMaster type, e.g. ppt/handoutMasters/handoutMaster1.xml - out of scope (issue #1175), it should be made available for translation under the bPreferenceTranslatePowerpointMasters option and placed in this order
...
Slides section
-
slidetype, e.g.ppt/slides/slide1.xml
Related parts:
-
ppt/slides/_rels/slide1.xml.rels- can contain external hyperlinks (parameterbExtractExternalHyperlinkshas to be set totrue),bReorderRelationships.b=false- if it is set totrue, all relationship parts will be eligible for reordering -
diagramDatatype. e.g.ppt/diagrams/data1.xml -
charttype, e.g.ppt/charts/chart1.xml -
notesSlidetype, e.g.ppt/notesSlides/notesSlide1.xml
bPreferenceTranslatePowerpointNotes.b=true- (available)
bReorderPowerpointNotesAndComments.b=false- (available)
bPreferenceReorderPowerpointNotes.b=false- substitutes thebReorderPowerpointNotesAndCommentsparameter, if it is set totrue, all notes will be eligible for reordering -
commentstype, e.g.ppt/comments/comment1.xml
bPreferenceTranslateComments.b=true- (available)
bPreferenceReorderPowerpointComments.b=false- substitutes thebReorderPowerpointNotesAndCommentsparameter, if it is set totrue, all comments will be eligible for reordering
...
Other parts section
...
The bPreferenceTranslateExcelDiagramData.b=false parameter should be substituted by the bPreferenceTranslateDiagramData.b=false one.
Also, the parameters, which are going to be substituted, will be marked as deprecated.
A sample document is attached.