From 4b63977c98245efcedd905f37a85f988c3bb44e2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 10 Nov 2017 14:56:22 +0200 Subject: Remove duplication of Paper enum as #defines Not needed any more. We still have the fragile requirement that the order of entries in the aDinTab array in i18nutil/source/utility/paper.cxx has to match the enum order. Change-Id: I858fd56ad6bb1a3f3c2c39f7830b4dc6aea7cc1f Reviewed-on: https://gerrit.libreoffice.org/44600 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- i18nutil/source/utility/paper.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'i18nutil') diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 1d252c43d3a7..c12ac29704ef 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -61,6 +61,9 @@ struct PageDesc //http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf //https://web.archive.org/web/20040912070512/http://www.y-adagio.com/public/committees/docsii/doc_00-49/symp_ulaan/china_ppr.pdf (Kai) //http://www.sls.psi.ch/controls/help/howto/Howto_Print_a_A0_Poster_at_WSLA_012_2.pdf (Dia) + +//!! The order of these entries must correspond to enum Paper in + static const PageDesc aDinTab[] = { { MM2MM100( 841 ), MM2MM100( 1189 ), "A0", nullptr }, -- cgit