From: Angus Leeming Date: Wed, 1 May 2002 13:04:35 +0000 (+0000) Subject: Some comments to make Herbert happy. X-Git-Tag: 1.6.10~19302 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b70c084b2d659a8dba84f7003df891585a178d39;p=features.git Some comments to make Herbert happy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4105 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/controllers/ControlGraphics.C b/src/frontends/controllers/ControlGraphics.C index 1bec50fde5..9bcdaea110 100644 --- a/src/frontends/controllers/ControlGraphics.C +++ b/src/frontends/controllers/ControlGraphics.C @@ -187,18 +187,24 @@ namespace frnt { namespace { -char const * const rorigin_latex_strs[] = { - "center", "leftTop", "leftBottom", "leftBaseline", - "centerTop", "centerBottom", "centerBaseline", - "rightTop", "rightBottom", "rightBaseline" }; - +// These are the strings that are stored in the LyX file and which +// correspond to the LaTeX identifiers shown in the comments at the +// end of each line. +char const * const rorigin_lyx_strs[] = { + "center", // c + "leftTop", "leftBottom", "leftBaseline", // lt lb lB + "centerTop", "centerBottom", "centerBaseline", // ct cb cB + "rightTop", "rightBottom", "rightBaseline" }; // rt rb rB + +// These are the strings, corresponding to the above, that the GUI should +// use. Note that they can/should be translated. char const * const rorigin_gui_strs[] = { N_("center"), N_("left top"), N_("left bottom"), N_("left baseline"), N_("center top"), N_("center bottom"), N_("center baseline"), N_("right top"), N_("right bottom"), N_("right baseline") }; -size_t rorigin_size = sizeof(rorigin_latex_strs) / sizeof(char *); +size_t rorigin_size = sizeof(rorigin_lyx_strs) / sizeof(char *); } // namespace anon @@ -211,7 +217,7 @@ vector getRotationOriginData() data.resize(rorigin_size); for (lyx::size_type i = 0; i < rorigin_size; ++i) { data[i] = std::make_pair(_(rorigin_gui_strs[i]), - rorigin_latex_strs[i]); + rorigin_lyx_strs[i]); } return data;