OpenXML Filter: PPTX: selective parts translation and reordering

Issue #1174 resolved
Denis Konovalyenko created an issue

There was some related work done for notes and comments reordering in the scope of issue #835. 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:

  • diagramData type. 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

  • chart type, 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

  • slideLayout type, e.g. ppt/slideLayouts/slideLayout1.xml
    Related parts:

    • diagramData type. e.g. ppt/diagrams/data2.xml
    • chart type, 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

  1. slide type, e.g. ppt/slides/slide1.xml
    Related parts:
  • ppt/slides/_rels/slide1.xml.rels - can contain external hyperlinks (parameter bExtractExternalHyperlinks has to be set to true), bReorderRelationships.b=false - if it is set to true, all relationship parts will be eligible for reordering
  • diagramData type. e.g. ppt/diagrams/data1.xml
  • chart type, e.g. ppt/charts/chart1.xml
  • notesSlide type, e.g. ppt/notesSlides/notesSlide1.xml
    bPreferenceTranslatePowerpointNotes.b=true - (available)
    bReorderPowerpointNotesAndComments.b=false - (available)
    bPreferenceReorderPowerpointNotes.b=false - substitutes the bReorderPowerpointNotesAndComments parameter, if it is set to true, all notes will be eligible for reordering
  • comments type, e.g. ppt/comments/comment1.xml
    bPreferenceTranslateComments.b=true - (available)
    bPreferenceReorderPowerpointComments.b=false - substitutes the bReorderPowerpointNotesAndComments parameter, if it is set to true, 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.

Comments (13)

  1. Log in to comment