Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / vcl / inc / aqua / coretext / salcoretextstyle.hxx
blob0f5dda202eea5599e67f0d643a9c0a568cba78c3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _VCL_AQUA_CORETEXT_SALCORETEXTSTYLE_HXX
21 #define _VCL_AQUA_CORETEXT_SALCORETEXTSTYLE_HXX
23 #include "aqua/salgdicommon.hxx"
25 class FontSelectPattern;
26 class CoreTextPhysicalFontFace;
28 class CoreTextStyleInfo
30 public:
31 CoreTextStyleInfo();
32 ~CoreTextStyleInfo();
33 CTFontRef GetFont() const { return m_CTFont; };
34 CoreTextPhysicalFontFace* GetFontFace() const { return m_font_face; };
35 long GetFontStretchedSize() const;
36 float GetFontStretchFactor() const { return m_stretch_factor; };
37 CTParagraphStyleRef GetParagraphStyle() const { return m_CTParagraphStyle; } ;
38 CGSize GetSize() const;
39 CGColorRef GetColor() const { return m_color; } ;
40 void SetColor(SalColor color);
41 void SetColor(void);
42 void SetFont(FontSelectPattern* requested_font);
44 private:
45 bool m_fake_bold;
46 bool m_fake_italic;
47 CGAffineTransform m_matrix;
48 float m_stretch_factor;
49 float m_font_scale;
50 float m_fake_dpi_scale;
51 CTParagraphStyleRef m_CTParagraphStyle;
52 CTFontRef m_CTFont;
53 CGColorRef m_color;
54 CoreTextPhysicalFontFace* m_font_face;
57 #endif // _VCL_AQUA_CORETEXT_SALCORETEXTSTYLE_HXX
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */