Hi,
I mentioned at the ESC that I'd like to do some larger renaming in sw/,
and got an action item to send the list first; so here it is.
I did not mean to change namespace (eg. do not want to change SwFrm to
sw::Frame) as that would make it harder to grep (and could potentially
cause larger problems), but mostly meant to insert vowels into the
names
to make the reading easier [and writing too, actually - try to type
Cntnt :-)].
I mention only the class names in the examples, but I'd like to do it
wholesale - so even in the variable or function names:
Frm -> Frame (to handle things like SwFrm, SwCellFrm, SwRowFrm,
SwColumnFrm, ..., SwFrmFmt, FrmMap, SwFlyFrm, etc.)
Fmt -> Format (to handle those SwFrmFmt, SvxSwAutoFmtFlags,
SwTxtCharFmt, SwFmtFillOrder, SwFmtFrmSize, SwFmtCntnt, ...)
Cntnt -> Content (to handle SwCntntNode, SwCntntFrm, SwCntntNode, etc.)
Txt -> Text (to handle SwTxtNode, SwTxtFrm, SwTxtAttr, SwTxtFld,
SwNoTxtNode, etc.)
Fld -> Field (to handle SwFldTypes, SwDocUpdtFld, SwTxtFld, SwFmtFld,
etc.)
Ftn -> Footnote (to handle SwFtnContFrm, SwFtnFrm, SwFtnPortion,
SwFtnContFrm, etc.)
Updt -> Update (SwDocUpdtFld, TableFmlUpdtFlags, SwDocUpdtFld,
Fml -> Formula (SwTableFmlUpdate, TableFmlUpdtFlags)
Hnt -> Hint (mostly in variable names)
That's it for now - comments appreciated!
I deliberately leave out eg. Cnt (usually Count, but could be Content
by
mistake), or PaM (as PointAndMark would be too long - but I think it
would deserve some better name too).
Thank you,
Kendy
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.