https://bz.apache.org/ooo/show_bug.cgi?id=48566

--- Comment #9 from dam...@apache.org ---
The HTML image writing code in OutHTML_Image() of
main/sw/source/filter/html/htmlfly.cxx fetches the current link properties like
URL, name and target from a pURLItem of type SwFmtURL, defined in
main/sw/inc/fmturl.hxx with these fields:

    String    sTargetFrameName; // in diesen Frame soll die URL
    String    sURL;             //Einfache URL
    String    sName;            // Name des Anchors
    ImageMap *pMap;             //ClientSide Images

    sal_Bool      bIsServerMap;     //mit der URL eine ServerSideImageMap


The HTML text writing code in OutHTML_SwFmtINetFmt() of
main/sw/source/filter/html/htmlatr.cxx fetches the current link properties like
URL, name and target from an instance of SwFmtINetFmt, defined in
main/sw/inc/fmtinfmt.hxx with these fields:

        String msURL;                                   // die URL
        String msTargetFrame;                   // in diesen Frame soll die URL
        String msINetFmtName;
        String msVisitedFmtName;
        String msHyperlinkName;                            // Name des Links
        SvxMacroTableDtor* mpMacroTbl;
        SwTxtINetFmt* mpTxtAttr;                        // mein TextAttribut
        sal_uInt16 mnINetFmtId;
        sal_uInt16 mnVisitedFmtId;


Both of those would need to be extended to store title as well.

When the HTML is read, links are parsed in SwHTMLParser::NewAnchor(). It
supports many options, but there's no title.

Fixing those would only get us to title pass-through support: being able to
save the titles we loaded without losing them. If we want to expose the title
through UNO, we might need new APIs, if we want to allow editing through the
UI, we'd need the link editing form changed to include the title.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are on the CC list for the issue.

Reply via email to