[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kreport] src/common: Add additional page sizes
From:       Adam Pigg <null () kde ! org>
Date:       2017-10-30 23:28:38
Message-ID: E1e9JTy-0002pM-8p () code ! kde ! org
[Download RAW message or body]

Git commit 3eb3ec6ff7b44c6d0d6c8870a115adffdd320462 by Adam Pigg.
Committed on 30/10/2017 at 23:28.
Pushed by piggz into branch 'master'.

Add additional page sizes

Summary: Add page sizes as per calligra

Test Plan: Select page sizes in property editor

Reviewers: staniek

Reviewed By: staniek

Tags: #kreport

Maniphest Tasks: T6855

Differential Revision: https://phabricator.kde.org/D8559

M  +40   -5    src/common/KReportPageSize.cpp

https://commits.kde.org/kreport/3eb3ec6ff7b44c6d0d6c8870a115adffdd320462

diff --git a/src/common/KReportPageSize.cpp b/src/common/KReportPageSize.cpp
index 46509d0..db6921c 100644
--- a/src/common/KReportPageSize.cpp
+++ b/src/common/KReportPageSize.cpp
@@ -28,17 +28,52 @@ struct KReportPageSizeInfo {
 };
 
 static const KReportPageSizeInfo pageSizeInfo[] = {
-    { "A3",	QT_TRANSLATE_NOOP3("KReportPageFormat", "A3", ""), QPageSize::A3},
-    { "A4",	QT_TRANSLATE_NOOP3("KReportPageFormat", "A4", ""), QPageSize::A4},
-    { "A5",	QT_TRANSLATE_NOOP3("KReportPageFormat", "A5", ""), QPageSize::A5},
-    { "Letter",	QT_TRANSLATE_NOOP3("KReportPageFormat", "US Letter",
+    { "A3", QT_TRANSLATE_NOOP3("KReportPageFormat", "A3", ""), QPageSize::A3},
+    { "A4", QT_TRANSLATE_NOOP3("KReportPageFormat", "A4", ""), QPageSize::A4},
+    { "A5", QT_TRANSLATE_NOOP3("KReportPageFormat", "A5", ""), QPageSize::A5},
+    { "Letter", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Letter",
                                    "Usually don't translate literally, use \"US \
Letter\""),  QPageSize::Letter},
     { "Legal", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Legal",
                                   "Usually don't translate literally, use \"US \
Legal\""),  QPageSize::Legal},
-    { "Screen",	QT_TRANSLATE_NOOP3("KReportPageFormat", "Screen", ""), \
                QPageSize::A4},
     { "Custom", QT_TRANSLATE_NOOP3("KReportPageFormat", "Custom", ""), \
QPageSize::Custom}, +    { "B6", QT_TRANSLATE_NOOP3("KReportPageFormat", "B6", ""), \
QPageSize::B6}, +    { "B5", QT_TRANSLATE_NOOP3("KReportPageFormat", "B5", ""), \
QPageSize::B5}, +    { "B4", QT_TRANSLATE_NOOP3("KReportPageFormat", "B4", ""), \
QPageSize::B4}, +    { "Executive", QT_TRANSLATE_NOOP3("KReportPageFormat", \
"Executive", ""), QPageSize::Executive}, +    { "A0", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A0", ""), QPageSize::A0}, +    { "A1", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A1", ""), QPageSize::A1}, +    { "A2", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A2", ""), QPageSize::A2}, +    { "A6", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A6", ""), QPageSize::A6}, +    { "A7", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A7", ""), QPageSize::A7}, +    { "A8", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A8", ""), QPageSize::A8}, +    { "A9", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "A9", ""), QPageSize::A9}, +    { "B0", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "B0", ""), QPageSize::B0}, +    { "B1", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "B1", ""), QPageSize::B1}, +    { "B10", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "B10", ""), QPageSize::B10}, +    { "B2", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "B2", ""), QPageSize::B2}, +    { "B3", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "B3", ""), QPageSize::B3}, +    { "C5E", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "C5E", ""), QPageSize::C5E}, +    { "Comm10", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "Comm10", ""), QPageSize::Comm10E}, +    { \
"DL", QT_TRANSLATE_NOOP3("KReportPageFormat", "ISO DL", ""), QPageSize::DLE}, +    { \
"Folio", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Folio", ""), QPageSize::Folio}, \
+    { "Ledger", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Ledger", ""), \
QPageSize::Ledger}, +    { "Tabloid", QT_TRANSLATE_NOOP3("KReportPageFormat", "US \
Tabloid", ""), QPageSize::Tabloid}, +    { "EnvelopeDL", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "DL Envelope", ""), QPageSize::EnvelopeDL}, + \
{ "EnvelopeC6", QT_TRANSLATE_NOOP3("KReportPageFormat", "C6 Envelope", ""), \
QPageSize::EnvelopeC6}, +    { "EnvelopeC65", QT_TRANSLATE_NOOP3("KReportPageFormat", \
"C6/5 Envolope", ""), QPageSize::EnvelopeC65}, +    { "EnvelopeC5", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "C5 Envelope", ""), QPageSize::EnvelopeC5}, + \
{ "EnvelopeC4", QT_TRANSLATE_NOOP3("KReportPageFormat", "C4 Envelope", ""), \
QPageSize::EnvelopeC4}, +    { "EnvelopeMonarch", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "Monarch Envelope", ""), \
QPageSize::EnvelopeMonarch}, +    { "EnvelopePersonal", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "Personal Envelope", ""), \
QPageSize::EnvelopePersonal}, +    { "Envelope9", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "9 Envelope", ""), QPageSize::Envelope9}, +   \
{ "Envelope10", QT_TRANSLATE_NOOP3("KReportPageFormat", "10 Envelope", ""), \
QPageSize::Envelope10}, +    { "Envelope11", QT_TRANSLATE_NOOP3("KReportPageFormat", \
"11 Envelope", ""), QPageSize::Envelope11}, +    { "Envelope12", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "12 Envelope", ""), QPageSize::Envelope12}, + \
{ "Postcard", QT_TRANSLATE_NOOP3("KReportPageFormat", "Postcard", ""), \
QPageSize::Postcard}, +    { "DoublePostcard", \
QT_TRANSLATE_NOOP3("KReportPageFormat", "Double Postcard", ""), \
QPageSize::DoublePostcard}, +
     { "", {"", ""}, QPageSize::LastPageSize}
 
 };


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic