https://bugs.freedesktop.org/show_bug.cgi?id=47576

--- Comment #8 from tbehr...@suse.com 2012-06-14 05:23:10 PDT ---
(In reply to comment #5)
> Presumably this would be a reasonably easy easy-hack with a bit more detail;
> let me try to find someone to help out with that.
>
So the place to hack is filter/source/svg/svgexport.cxx, and the CalcFieldHdl
function there - a few text field values are already handled there, but

 text::textfield::Type::URL

is missing - stick that in, handle the SvxURLField item, and somehow convey
that to svgwriter.cxx.

Alternatively, (conceptually) copy a nasty hack that slideshow is using (see
slideshow/source/engine/shapes/drawshape.cxx:~1060):

In SVGActionWriter::ImplWriteActions:

                if (pCurrAct->GetType() == META_COMMENT_ACTION) {
                    MetaCommentAction * pAct =
                        static_cast<MetaCommentAction *>(pCurrAct);
                    // skip comment if not a special XTEXT comment
                    if (pAct->GetComment().equalsIgnoreAsciiCaseL(
                            RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN") ) &&
                        // e.g. date field doesn't have data!
                        // currently assuming that only url field, this is
                        // somehow fragile! xxx todo if possible
                        pAct->GetData() != 0 &&
                        pAct->GetDataSize() > 0)
                    {
...
                                rtl::OUString aURL(
                                    reinterpret_cast<sal_Unicode const*>(
                                        pAct->GetData()),
                                    pAct->GetDataSize() / sizeof(sal_Unicode) )

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to