Hi Fang,

as a rule of thumb, do not add complexity to base models if it is not
needed. As explained already, you can calculate the offset from
the polygon later, so no need to enhance any sal interfaces for a single
filter. The complexity should stay in the filter. Enhancing the
sal layer is for general functionality only.
Changing anything outside of the flash filter itself should only be done
if it makes general sense to have that functionality or if functionality
is missing that is needed to perform a task.

Regards,
Christian

Fang Yaqiong wrote:
> Hi Christian,
> I find the offset of the B2DPolyPolygon is caculated in the 
> SalLayout::GetOutline() (vcl\source\gdi\sallayout.cxx)
>     Point aPos contains the offset. 
> So I think I should pass a parameter from vcl to filter, the parameter should 
> contains both the B2DPolyPolygon and its offset. 
> Then I define a struct:
> struct B2DPolyPolygonOffset {
>       B2DPolyPolygon aGlyphOutline;
>       Point aPos;
>  };
> typedef std::vector<B2DPolyPolygonOffset> B2DPolyPolygonOffsetVector;
>
> I add a parameter B2DPolyPolygonOffsetVector in SalLayout::GetOutline() and 
> OutputDevice::GetTextOutlines() (vcl\source\gdi\outdev3.cxx)
> B2DPolyPolygonOffsetVector contains the B2DPolyPolygon and its offset.
> Writer::Impl_writeText (filter\source\flash\swfwriter1.cxx) calls the 
> GetTextOutlines() and then I can get the B2DPolyPolygonOffsetVector with the 
> B2DPolyPolygon and offset in filter.
>
> How do you think about it? 
> Looking forward to you reply sincerely:)
>
> Best Regards,
> Fang
>
>
>
>
> Fang Yaqiong [EMAIL PROTECTED]
> 2007-06-15
> Regards&Thanks! 
> Tel:010-5157-0010 Ext.6202 
> Beijing Redflag CH2000 Software Co., Ltd. 
>
>   


-- 
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 
Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to