Ryan, some of my basic "un known facts " about the spec relating to
SPRM's.
A SPRM as represented by me will look like..
OpCode
length of Param (for var length Param)
Parameter(fixed or Var length)
Size in bytes
2
1 or 2(for a special SPRM )
1 or 2 or 3 or n, (n can be > 256)
Offset in bytes
0
2
2 or 3
In the Sprm bits eplanation table, I could not get where
1. ispmd is used (0-8)
2. fspec is used (9).
In the SPRM details table,
Name
sprm
Property Modified
Parameter
Parameter size
Are they checking for the full OpCode value for the field "sprm".
Why have you used, short operand = (short)(sprm & 0x1ff); to pass this to the
DoXXXOperation().
Cant we directly check the "sprm" for the respective Values like if(sprm
== 0x4600).
In the eplanation given for "sprmPlncLvl" it says The sprm is three bytes long and
consists of the sprm code and a one byte
two's complement value. Are they refering this to just the Parameter(3 byte case). Or
2 byte Opcopde + 1 byte Parameter.
If its latter, then as per spec we have to take the LSByte of the "param"
we r passing to the function & check its sign bit & so on..
If its Former then we hv to check the sign bit of "param" itself..
Am I right?????
NB: If MS could have given atleastt a better Documentation which is
Clear,Readable, Understandable and in a well arranged manner, it would
have been more easier for me!!. Now just for implementing a SPRM I have to
search its info scattered throughout the entire Document, still not sure
If I missed something.
Thanks & Regards
Praveen
Praveen Mathew
IBM Software Labs,Airport Road,
Bangalore - 560 017,India.
Ph : +91- 80 - 504 4609 (Direct)
+91 - 80 - 5262355 Extn: 3609
Email: [EMAIL PROTECTED]
Praveen Mathew/India/[EMAIL PROTECTED]
17/07/2003 21:01
Please respond to "POI Developers List"
To: "POI Developers List" <[EMAIL PROTECTED]>
cc:
Subject: Re: Praveen hows it going?
Thanks Ryan...
Thanks & Regards
Praveen
"Ryan Ackley" <[EMAIL PROTECTED]>
17/07/2003 19:56
Please respond to "POI Developers List"
To: "POI Developers List" <[EMAIL PROTECTED]>
cc:
Subject: Re: Praveen hows it going?
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" <[EMAIL PROTECTED]>
To: "POI Developers List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> 16/07/2003 19:45
> Please respond to "POI Developers List"
>
>
> To: "POI Developers List" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]