On Sat, 2011-04-09 at 02:22 +0200, Timo wrote:
Is there a way to test the pythonfile within office ?
So ... I notice you did in fact attach your implementation: which is
great. I was a tad worried about:
rect = uno.createUnoStruct('com.sun.star.awt.Rectangle')
stype, buttons = self.getFlags(flag)
box = self.Toolkit.createMessageBox(self.Parent, rect,
stype, buttons, title, message)
which looks like it might create a zero sized message box quite
easily ;-) prolly need some details in the rect; -but- I couldn't get to
actually having this python script rub.
So - then I went to prod at the mailmerge gui:
sw/source/ui/dbui/mmoutputpage.hxx
sw/source/ui/dbui/mailmergechildwindow.cxx
which (apparently) includes a wonderful m_aStatusFL (a fixed line of
text - cf. the .src file) that has a constant status string that is
never updated, containing:
Text[ en-US ] = "The connection to the outgoing mail server has
been established";
Whether any connection has been established or not ;-)
So - I guess one trick is perhaps to read both sides of this, so we get
a good view of the limitations of both. cf. particularly
sw/source/ui/dbui/mailmergehelper.cxx
Another thing to do is prolly to get a much simpler python test macro
installed and running (somehow) to prototype the error dialog inside,
without it being coupled to the existing mail-merge mess.
HTH,
Michael.
--
michael.meeks@novell.com <><, Pseudo Engineer, itinerant idiot
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.