xref: /aoo42x/main/vcl/inc/os2/sallayout.h (revision 24f6443d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SV_SALLAYOUT_H
25 #define _SV_SALLAYOUT_H
26 
27 #if 0
28 #include <sv.h>
29 #include <sallayout.hxx>
30 
31 class ImplOs2FontEntry;
32 
33 class Os2SalLayout : public GenericSalLayout
34 {
35 public:
36                     Os2SalLayout( HPS);
37     virtual bool    LayoutText( ImplLayoutArgs& );
38     virtual void    AdjustLayout( ImplLayoutArgs& );
39     virtual void    DrawText( SalGraphics& ) const;
40 
41 protected:
42 	HPS					mhPS;
43 	FONTMETRICS			FontMetrics;
44     int                 mnBaseAdv;
45 
46 private:
47     int             mnGlyphCount;
48     int             mnCharCount;
49     sal_Unicode*    mpOutGlyphs;
50     int*            mpGlyphAdvances;    // if possible this is shared with mpGlyphAdvances[]
51     int*            mpGlyphOrigAdvs;
52     int*            mpCharWidths;       // map rel char pos to char width
53     int*            mpChars2Glyphs;     // map rel char pos to abs glyph pos
54     int*            mpGlyphs2Chars;     // map abs glyph pos to abs char pos
55     bool*           mpGlyphRTLFlags;    // BiDi status for glyphs: true=>RTL
56     mutable long    mnWidth;
57     bool            mbDisableGlyphs;
58 
59     int             mnNotdefWidth;
60     BYTE            mnCharSet;
61 
62 };
63 #endif
64 
65 #endif // _SV_SALLAYOUT_H
66