Files
odfstudio/sd/inc/pageformatpanel.hrc
Justin Luth ca804630b3 tdf#135572 sd/sw: use correct measurement for page margin listbox
The program creates a 2cm margin
when chosing 'Normal 0.75in' from the page sidebar.

Well 2cm is 0.79in, so fix the wording to reflect reality.

In addition, for Draw, each margin is half of what the value showed.
Be consistent with Writer, and show the value
for only one margin.

make UITest_sw_sidebar \
    UITEST_TEST_NAME=tdf133189.tdf133189.test_tdf133189

Change-Id: Ice89d95464cd29e0bcad5af7a74f5db154fe9689
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207051
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-06-21 02:33:25 +02:00

54 lines
1.9 KiB
Plaintext

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <unotools/resmgr.hxx>
#include <utility>
#define NC_(Context, String) TranslateId(Context, u8##String)
namespace sd
{
// To translators: this is a listbox labelled by "Margins:", inch units
const std::pair<TranslateId, int> RID_PAGEFORMATPANEL_MARGINS_INCH[] =
{
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "None"), 0 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Narrow"), 0 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Moderate"), 0 },
// Normal (0.39")
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Normal (%1)"), 39 },
// Normal (0.5")
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Normal (%1)"), 50 },
// Normal (0.63")
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Normal (%1)"), 63 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_INCH", "Wide"), 0 }
};
// To translators: this is a listbox labelled by "Margins:", cm units
const std::pair<TranslateId, int> RID_PAGEFORMATPANEL_MARGINS_CM[] =
{
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "None"), 0 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Narrow"), 0 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Moderate"), 0 },
// Normal (1 cm)
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Normal (%1)"), 100 },
// Normal (1.27 cm)
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Normal (%1)"), 127 },
// Normal (1.59 cm)
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Normal (%1)"), 159 },
{ NC_("RID_PAGEFORMATPANEL_MARGINS_CM", "Wide"), 0 }
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */