diff options
author | Attila Szűcs <attila.szucs@collabora.com> | 2024-12-09 17:31:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2025-02-14 18:01:42 +0100 |
commit | f3162dd1e3afbed73ed094d5745ba747fcf089cd (patch) | |
tree | 2d213b1b195762c315e28a962b473e48474c0340 /scripting/examples/java/Newsgroup | |
parent | 391e1d1a39ff9d3fd407253ef79354261fd6e7c3 (diff) |
Implemented extract and transform for slides.
It can manipulate slides and some of its text content.
usable commands for transform:
{"JumpToSlide": 4}, //jump to slide 4 (counted from 0) "last" can be used
{"JumpToSlideByName": "Slide 4"},jump to slide named "Slide 4"
{"InsertMasterSlide": 10}, //insert the 10. masterSlide after the
actual slide, and jump to this new Slide
{"InsertMasterSlideByName": "name"}, //same as InsertMasterSlide,
but with parameter of masterSlide name.
{"DeleteSlide": 2}, // delete the 2. slide. It may or may not
change the actual slide
can be used without parameter:
{"DeleteSlide": ""}, // it delete the actual slide.
{"MoveSlide.2": 5}, // move the 2. slide to the 5. position, if it is
the actual slide, then jump to the new position of this slide.
If it is not the actual slide then it may jump, so the actual Slide
eill remain the same.
{"MoveSlide": 5}, // move the actual slide to the 5. position
{"DuplicateSlide": 5}, //duplicate the 5. slide , it jumps to the
duplicated slide
{"DuplicateSlide": ""}, // duplicate the actual slide
{"ChangeLayout": 18}, // change the actual page layout
to the 18. layout. (would be good to have a better ID)
{"ChangeLayoutByName": "AUTOLAYOUT_TITLE_2CONTENT"}, //same as
ChangeLayout, nbut indxed by the layout name.
{"RenameSlide": "NewNameForSlide"}, //rename the actual slide
{"SetText.0": "first"}, //set the text of 0. sdrobject on the
actual page to "first"
{"MarkObject": "1"}, //mark the 1. sdrobject on the actual slide
{"UnMarkObject": "1"}, //Unmark the 1. sdrobject on the act slide
{"UnoCommand": ".uno:DefaultBullet"}, //run an uno command.
This uno command toggle the default bullet type on thext marked.
There are many more uno commands.
Limited uno commands allowed to be used here, because some would
be dangerous.
For allowed uno commands, check lokunocmdlist.hxx.
Note: Uno commands not worked on a windows system
For layout names these can be used:
"AUTOLAYOUT_TITLE_CONTENT"
"AUTOLAYOUT_TITLE_CONTENT_OVER_CONTENT"
"AUTOLAYOUT_TITLE_CONTENT_2CONTENT"
"AUTOLAYOUT_TITLE_4CONTENT"
"AUTOLAYOUT_ONLY_TEXT"
"AUTOLAYOUT_TITLE_ONLY"
"AUTOLAYOUT_TITLE_6CONTENT"
"AUTOLAYOUT_TITLE"
"AUTOLAYOUT_TITLE_2CONTENT_CONTENT"
"AUTOLAYOUT_TITLE_2CONTENT_OVER_CONTENT"
"AUTOLAYOUT_TITLE_2CONTENT"
"AUTOLAYOUT_VTITLE_VCONTENT"
"AUTOLAYOUT_VTITLE_VCONTENT_OVER_VCONTENT"
"AUTOLAYOUT_TITLE_VCONTENT"
"AUTOLAYOUT_TITLE_2VTEXT"
Extract will:
Extract all masterSlides name
Extract the following for all Slides:
Name, MatsreSlideName, LayoutId, LayoutName, ObjectCount, Objects.
For all objects it will extract:
TextCount, Texts
For all texts it will extract:
ParaCount, Paragraphs
where Paragraphs is an array of strings.
Change-Id: Icab5afe44acc30f8b75974240d8b39fd040ede2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181671
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'scripting/examples/java/Newsgroup')
0 files changed, 0 insertions, 0 deletions