Re: IE_Exp::m_fp

From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Sun May 26 2002 - 11:14:30 EDT

  • Next message: Leonard Rosenthol: "Re: Font, layout units et al."

    On Sun, May 26, 2002 at 02:39:42PM +0200, j.m.maurer wrote:
    > Is there a reason that the file * IE_Exp:m_fp is private? I need to
    > access it for the WordPerfect exporter, since I can only write some
    > fields in the file header _after_ I wrote the while file, eg. I need to
    > seek through the file.
    >
    > Could this attribute be made protected?

    Isn't there some other way you could do this? We have this nice
    encapsulated API to wrap FILE *'s so that the output doesn't even need
    to be a FILE * (and it's buffered, so it may not be up to date); in fact
    this feature is used to write the file to memory if needed, by
    ::copyToBuffer.

    What you might want to do is to look at ie_exp_GZipAbiWord.cpp and
    emulate what it does. This won't provide proper behaviour for
    writing to memory, but it seems to be the cleanest thing to do.

    pat



    This archive was generated by hypermail 2.1.4 : Sun May 26 2002 - 11:20:04 EDT