Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi,
Grf for Graphic (SwGrfShell, SwGrfNode, SwGrfExtPage, SwWebGrfShell...)
May I also propose to replace Sw by LOw :-)
Philippe

Le 7 mai 2015 10:46:51 CEST, Jan Holesovsky <kendy@collabora.com> a écrit :
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

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.

Context


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.