]> git.lyx.org Git - features.git/commitdiff
Some comments to make Herbert happy.
authorAngus Leeming <leeming@lyx.org>
Wed, 1 May 2002 13:04:35 +0000 (13:04 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 1 May 2002 13:04:35 +0000 (13:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4105 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ControlGraphics.C

index 1bec50fde5861d0dbc3b0397c7c7d7744a2fa869..9bcdaea110c102c2cc5594d7fca559a0cb19594f 100644 (file)
@@ -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<RotationOriginPair> 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;