info/CWS rtlcontrols : new: SdrObject::SetContextWritingMode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

info/CWS rtlcontrols : new: SdrObject::SetContextWritingMode

frank.schoenheit


          Type: info
         Title: new: SdrObject::SetContextWritingMode
     Posted by: [hidden email]
      Affected: sc, sw
         TaskId: i30631
<http://www.openoffice.org/issues/show_bug.cgi?id=30631>
Effective from: CWS rtlcontrols
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/rtlcontrols>
    CWS status: nominated


*Summary*
--------
+ virtual void SetContextWritingMode(
    const sal_Int16 _nContextWritingMode );


*Description*
-------------
The SdrObject got a new method SetContextWritingMode, taking a value
from the css.text.WritingMode2 constants group, and defining the
writing mode of the object's context. The definition of "context"
depends on the application the object lives in, and properties of the
object itself (such as its anchor type). For instance, in spreadsheets
an object's context is always the complete sheet, in text documents,
the context is defined by where the object is anchored to.

The ContextWritingMode of an SdrObject is only evaluated for instances
which itself support different writing modes (which currently is the
case for form controls only). Here, it needs to be a *concrete* value
from the css.text.WritingMode2 group (in particular,
WritingMode2.CONTEXT itself is invalid), telling the "effective"
writing mode of the object's context.

It's up to the application which uses SdrObjects to update the
ContextWritingMode whenever necessary. All changes for this have been
done in CWS rtlcontrols, in both Calc and Writer.


Send feedback to [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]