Some comments to make Herbert happy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4105 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-05-01 13:04:35 +00:00
parent 8dcf6d7871
commit b70c084b2d

View 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;