Kaydet (Commit) 4872e395 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

#101701# Added rotation methods for vertical text

üst 63d1a850
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoedhlp.hxx,v $ * $RCSfile: unoedhlp.hxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: thb $ $Date: 2002-08-02 11:31:19 $ * last change: $Author: thb $ $Date: 2002-09-13 14:10:32 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -73,6 +73,9 @@ ...@@ -73,6 +73,9 @@
#ifndef _SFXHINT_HXX #ifndef _SFXHINT_HXX
#include <svtools/hint.hxx> #include <svtools/hint.hxx>
#endif #endif
#ifndef _SV_GEN_HXX
#include <vcl/gen.hxx>
#endif
struct EENotify; struct EENotify;
class EditEngine; class EditEngine;
...@@ -142,6 +145,86 @@ public: ...@@ -142,6 +145,86 @@ public:
*/ */
static sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, const EditEngine& rEE, USHORT nPara, USHORT nIndex ); static sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, const EditEngine& rEE, USHORT nPara, USHORT nIndex );
/** Convert point from edit engine to user coordinate space
As the edit engine internally keeps vertical text unrotated,
all internal edit engine methods return their stuff unrotated,
too. This method rotates and shifts given point appropriately,
if vertical writing is on.
@param rPoint
Point to transform
@param rEESize
Paper size of the edit engine
@param bIsVertical
Whether output text is vertical or not
@return the possibly transformed point
*/
static Point EEToUserSpace( const Point& rPoint, const Size& rEESize, bool bIsVertical );
/** Convert point from user to edit engine coordinate space
As the edit engine internally keeps vertical text unrotated,
all internal edit engine methods return their stuff unrotated,
too. This method rotates and shifts given point appropriately,
if vertical writing is on.
@param rPoint
Point to transform
@param rEESize
Paper size of the edit engine
@param bIsVertical
Whether output text is vertical or not
@return the possibly transformed point
*/
static Point UserSpaceToEE( const Point& rPoint, const Size& rEESize, bool bIsVertical );
/** Convert rect from edit engine to user coordinate space
As the edit engine internally keeps vertical text unrotated,
all internal edit engine methods return their stuff unrotated,
too. This method rotates and shifts given rect appropriately,
if vertical writing is on.
@param rRect
Rectangle to transform
@param rEESize
Paper size of the edit engine
@param bIsVertical
Whether output text is vertical or not
@return the possibly transformed rect
*/
static Rectangle EEToUserSpace( const Rectangle& rRect, const Size& rEESize, bool bIsVertical );
/** Convert rect from user to edit engine coordinate space
As the edit engine internally keeps vertical text unrotated,
all internal edit engine methods return their stuff unrotated,
too. This method rotates and shifts given rect appropriately,
if vertical writing is on.
@param rRect
Rectangle to transform
@param rEESize
Paper size of the edit engine
@param bIsVertical
Whether output text is vertical or not
@return the possibly transformed rect
*/
static Rectangle UserSpaceToEE( const Rectangle& rRect, const Size& rEESize, bool bIsVertical );
}; };
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment