poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Ackley" <sack...@cfl.rr.com>
Subject Re: Praveen hows it going?
Date Thu, 17 Jul 2003 14:26:24 GMT
Praveen,

I changed StyleDescription so that the istd is now a part of _papx as well
as being stored in _istd for quick access.

Ryan

----- Original Message ----- 
From: "Praveen Mathew" <prmathew@in.ibm.com>
To: "POI Developers List" <poi-dev@jakarta.apache.org>
Sent: Wednesday, July 16, 2003 12:42 PM
Subject: Re: Praveen hows it going?


> Ryan, please clarify this.  I am finding this difficult to understand
>
> According to Spec.... typedef union _UPX
>     {
>     struct
>             {
>             uchar grpprl[cbMaxGrpprlStyleChpx];
>             } chpx;
>     struct
>             {
>             ushort istd;
>             uchar grpprl[cbMaxGrpprlStylePapx];
>             } papx;
>     uchar rgb[1];
>     } UPX;
>
> the papx stored in STSH has istd & & grpprl. In our current
StyleDescription class, the _papx which is being returned from getPAPX() is
only made of grrprl.
> In the uncompressProperty(byte[] grpprl, Object parent, StyleSheet
styleSheet,
> boolean doIstd) function of StyleSheet class,
> we are doing
((ParagraphProperties)newProperty).setIstd(LittleEndian.getShort(grpprl,
> 0));. Can we get the istd from this grpprl at ofset 0 by reading the
> short???
>
>
>
> Thanks & Regards
> Praveen
>
>
>
>
>
>
> "Ryan Ackley" <sackley@cfl.rr.com>
> 16/07/2003 19:45
> Please respond to "POI Developers List"
>
>
>         To:     "POI Developers List" <poi-dev@jakarta.apache.org>
>         cc:
>         Subject:        Re: Praveen hows it going?
>
>
>
> > Ryan this is what I plan to make. Please review it &  tell me if I
> should
> > proceed with this approach.
> >
> > Create a seperate class called SprmOperationsVm, which has the following
> > static  methods needed for the various Sprm operations.
> >
> > 1. unCompressProperty()
> > 2.  unCompressPAPOperation()
> > 3.  unCompressCHPOperation()
> > 4.   unCompressTAPOperation()
> > 5. unCompressSEPOperation()
> >
> > 6. compressProperty()
> > 7.  compressPAPOperation()
> > 8.  compressCHPOperation()
> > 9.   compressTAPOperation()
> > 10. compressSEPOperation().
>
> I would like you to focus on only this for now. I will explain how I want
> it
> tested when you finish.
>
> > Add the functions like createChp(), createPap() in StyleSheet class
> which
> you have already commented out.
>
> don't worry about this
>
> > Enhance the ParagraphProperties, CharacterProperties,TableProperties &
> > SectionProperties classes to add all the filelds.
>
> I will be working on this
>
> > Add getPAP(),getCHP() & setPAP(), setCHP() functions in Styledescription
> > class which u have commented out.
>
> Don't worry about this either.
>
> Ryan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-dev-help@jakarta.apache.org
>
>
>
>


Mime
View raw message