Getting a reference to an imported graphic in an anchored frame of a paragraph.

2009-02-05 Thread Berman, Marta

Hi. 

I need some help. I've never written an FrameScript in my life, nor looked at 
the help until an hour ago, so have mercy if this is a simple question.

I need to apply the PgfLIndent of any paragraph that contains an AFrame to the 
imported graphic inside the frame.  I understand from the MIF file that the 
Para holds a pointer to the Aframe, but not the reverse. It seems that the 
Aframe has the information I have to change in a structure referred to in the 
MIF as ImportObject. 

If I understand correctly, the program flow would be to Loop ForEach(Pgf) 
In(ActiveDoc), save the PgfLIndent of the Pgf, get the AFrame (if any) in the 
paragraph, get the ImportObject of the AFrame and set the left indent.

My problem is that I can't identify the connections I see in the MIF file in 
the FrameScript Command and Object Reference. I don't see where the Pgf points 
to a contained frame. Given the AFrame, it looks like FirstGraphicInFrame will 
return the imported graphic. However, the  FirstGraphicInFrame returns 
"Object". What type object is it, and what property corresponds to the left 
insert?

Of course, it could be that I'm on the wrong track, and that the MIF doesn't 
represent the same object model that the API does. Perhaps I can loop through 
the graphics from FirstGraphicInDoc on down and get the attributes of the 
containing paragraph, but I don't see anything in the reference that hints at 
that.

Please throw life saver or flotation device of any type.

I'm pasting some relevant sections of the MIF, in case my description was 
muddled.

In this example, the anchor is in a paragraph tagged Indent, defined in the MIF:
...
   ...

Therefore, I'd want to change the left placement of the graphic to 29. 
From:

To:


The paragraph that contains the imported GIF looks like this:

  
  
  
   
   
   
  > # end of ParaLine
 > # end of Para

The AFrame referred to in the Para element looks like this. The data I want to 
change is in the ShapeRect and/or BRect if the ImportObject:

  
  
  
  
  
  
  
  > # end of DashedPattern
  
  
  
  
  
  
  
  
  
  
  
  
   
   
   
   
   graphicsFLightFInder.gif'>
   
   
   
   
   
   
   
  > # end of ImportObject
 > # end of Frame

Grateful for any tips.
Thanks.

Marta


Getting a reference to an imported graphic in an anchored frame of a paragraph.

2009-02-05 Thread Berman, Marta
 
Hi. 

I need some help. I've never written an FrameScript in my life, nor looked at 
the help until an hour ago, so have mercy if this is a simple question.

I need to apply the PgfLIndent of any paragraph that contains an AFrame to the 
imported graphic inside the frame.  I understand from the MIF file that the 
Para holds a pointer to the Aframe, but not the reverse. It seems that the 
Aframe has the information I have to change in a structure referred to in the 
MIF as ImportObject. 

If I understand correctly, the program flow would be to Loop ForEach(Pgf) 
In(ActiveDoc), save the PgfLIndent of the Pgf, get the AFrame (if any) in the 
paragraph, get the ImportObject of the AFrame and set the left indent.

My problem is that I can't identify the connections I see in the MIF file in 
the FrameScript Command and Object Reference. I don't see where the Pgf points 
to a contained frame. Given the AFrame, it looks like FirstGraphicInFrame will 
return the imported graphic. However, the  FirstGraphicInFrame returns 
"Object". What type object is it, and what property corresponds to the left 
insert?

Of course, it could be that I'm on the wrong track, and that the MIF doesn't 
represent the same object model that the API does. Perhaps I can loop through 
the graphics from FirstGraphicInDoc on down and get the attributes of the 
containing paragraph, but I don't see anything in the reference that hints at 
that.

Please throw life saver or flotation device of any type.

I'm pasting some relevant sections of the MIF, in case my description was 
muddled.

In this example, the anchor is in a paragraph tagged Indent, defined in the MIF:
...
   ...

Therefore, I'd want to change the left placement of the graphic to 29. 
From:

To:


The paragraph that contains the imported GIF looks like this:

  
  
  
   
   
   
  > # end of ParaLine
 > # end of Para

The AFrame referred to in the Para element looks like this. The data I want to 
change is in the ShapeRect and/or BRect if the ImportObject:

  
  
  
  
  
  
  
  > # end of DashedPattern
  
  
  
  
  
  
  
  
  
  
  
  
   
   
   
   
   graphicsFLightFInder.gif'>
   
   
   
   
   
   
   
  > # end of ImportObject
 > # end of Frame
 
Grateful for any tips.
Thanks.

Marta
___


You are currently subscribed to Framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to 
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.