Re: Commit: some cut+paste future fixes

From: Dom Lachowicz (domlachowicz@yahoo.com)
Date: Thu Jul 17 2003 - 08:28:23 EDT

  • Next message: Jordi Mas: "Re: Commit: Enchant dictionary status function"

    > However I just want to point out that there is some
    > really special case
    > code for copy and pasting lists and tables in the
    > RTF export/importer.
    > The difference here is that that what happens after
    > the paste depends on
    > the context that the text is being pasted into.
    >
    > In the case of lists, the RTF importer attempts to
    > merge the pasted list
    > into the current list structure. This required a lot
    > of specialized
    > code.
    >
    > Without this the a pasted list would not merge with
    > the current but
    > would be a seperate entity surrounded by the
    > previous list.
    >
    > Getting all this to work right for every importer
    > will require a fair
    > bit of abstracting and reusing code in the RTF
    > importer.

    Oh, I'm aware of this. This currently fits the "90%"
    need. I plan on stealing more of the RTF importer's
    code and abracting a few more things away as we need
    it. For right now, you should be able to append/paste
    sections, tables, paragraphs, spans, images, and text.
    Which seems like a nice start to me. None of the
    importers - except maybe .doc - are nearly as
    sophisticated as the RTF one currently.

    Dom

    __________________________________
    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!
    http://sbc.yahoo.com



    This archive was generated by hypermail 2.1.4 : Thu Jul 17 2003 - 08:41:55 EDT