Bug 70285 - cleanup generated C++ code ...
Summary: cleanup generated C++ code ...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) Master
Hardware: Other All
: medium normal
Assignee: Noel Grandin
Whiteboard: target:4.2.0
Keywords: difficultyBeginner, easyHack, skillCpp, topicCleanup
Depends on:
Reported: 2013-10-08 14:43 UTC by Michael Meeks
Modified: 2016-02-18 16:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2013-10-08 14:43:02 UTC
The existing 


generates lots of ugly / old-world: com::sun::star:: namespace blurb.

These should all be replaced with css:: prefixes which should make the generated code much easier to read.

Checkout eg.


to see the before / after - and re-run 'make' in the top-level to re-generate.

Thanks !
Comment 1 Stephan Bergmann 2013-10-08 16:51:06 UTC
* Use "::css", not just "css" in the generated code, to avoid name clashes.

* Ensure sal/types.h (where css is defined) is included in generated files using css.
Comment 2 Commit Notification 2013-10-20 14:21:00 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":


fdo#70285 cleanup generated C++ code

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Comment 3 Michael Meeks 2013-10-21 16:02:26 UTC
Thanks Noel - looks prettier :-)

Of course - it's really best to leave the easiest EasyHacks for people who are just getting into the project - they are difficult to create and serve a much more useful purpose than the issues they are fixes for as easy hacks :-)

ie. if an expert developer spent a week they could fix some big proportion of our easy-hacks, but ... the real trouble is then creating / finding & annotating new ones (along with restraining ourselves from doing them ;-)

Anyhow - good to see it cleaned up :-)
Comment 4 Robinson Tryon (qubit) 2015-12-16 00:08:57 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillCpp TopicCleanup)
Comment 5 Robinson Tryon (qubit) 2016-02-18 16:37:09 UTC
Remove LibreOffice Dev List from CC on EasyHacks
(curtailing excessive email to list)