On 2012-06-25 15:32, Michael Meeks wrote:
On Sat, 2012-06-23 at 20:45 +0200, Philipp Riemer wrote:
(2) In addition, I was wondering if it would be possible to shorten
parameters (e.g. "com::sun::star::uno::Reference <
com::sun::star::embed::XStorage >& xDestStg") by using aliases or
other ways to point to that namespaces. But I am not skilled enough in
C++ to do that (see e.g. patch 0003 for examples).
The great hope is LibreOffice 4 - which will discard the com::sun::star
prefix and/or do something sensible instead here, making our APIs much
easier to read.
There was also hope for a transitional set of namespace aliases, but I
forget why that was shot down, in the meantime we have that ugly,
tangled madness (sadly) :-)
Perhaps we could adopt a transitional scheme, where we move our types
and definitions to a new namespace, but leave aliases in the current
namespace?
i.e. in pseudo-code:
namespace shiny
{
class Reference ..... yada yada.....
}
namespace com.sun.star.uno
{
typedef ::shiny::Reference Reference;
}
Does that sound reasonable (have no real idea, given my lack of C++
experience).
Disclaimer: http://www.peralex.com/disclaimer.html
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice