From 6d4a1716624a8a045ff4e90bd221b563be44be11 Mon Sep 17 00:00:00 2001 From: Jun NOGATA Date: Sat, 29 May 2021 18:07:12 +0900 Subject: Add PowerPoint compatible screen size for Impress I realized that Impress does not have the same screen size as PowerPoint. tdf#142286, tdf#142288 When I load a PowerPoint slide into Impress, it was a custom size, but when I add this screen size, it shows up with the screen size name. And when I load a slide with the added screen size into PowerPoint, it also shows up with the PowerPoint preset screen size name and not the custom size. The screen sizes I have added are as follows * Widescreen (Current PowerPoint default) * On-scren Show (4:3) * On-scren Show (16:9) (Google slide defualt) * On-scren Show (16:10) Change-Id: I33e2bbc36b2c92ecbb85c610c864f735bf540d03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116374 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/i18nutil/paper.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/i18nutil/paper.hxx b/include/i18nutil/paper.hxx index 7b99c0861e48..71ca22bb9486 100644 --- a/include/i18nutil/paper.hxx +++ b/include/i18nutil/paper.hxx @@ -115,11 +115,15 @@ enum Paper : unsigned PAPER_SCREEN_16_9, PAPER_SCREEN_16_10, PAPER_16K_195x270, - PAPER_16K_197x273 + PAPER_16K_197x273, + PAPER_WIDESCREEN, //PowerPoint Widescreen + PAPER_ONSCREENSHOW_4_3, //PowerPoint On-screen Show (4:3) + PAPER_ONSCREENSHOW_16_9, //PowerPoint On-screen Show (16:9) + PAPER_ONSCREENSHOW_16_10 //PowerPoint On-screen Show (16:10) }; // defined for 'equal size' test with the implementation array -#define NUM_PAPER_ENTRIES (PAPER_16K_197x273 - PAPER_A0 + 1) +#define NUM_PAPER_ENTRIES (PAPER_ONSCREENSHOW_16_10 - PAPER_A0 + 1) class I18NUTIL_DLLPUBLIC PaperInfo { -- cgit