LibreOffice Module vcl (master)
1
vcl
inc
ImplLayoutArgs.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
20
#include "
sallayout.hxx
"
21
22
namespace
vcl::text
23
{
24
class
VCL_DLLPUBLIC
ImplLayoutArgs
25
{
26
public
:
27
// string related inputs
28
LanguageTag
maLanguageTag
;
29
SalLayoutFlags
mnFlags
;
30
const
OUString&
mrStr
;
31
int
mnMinCharPos
;
32
int
mnEndCharPos
;
33
34
// performance hack
35
vcl::text::TextLayoutCache
const
*
m_pTextLayoutCache
;
36
37
// positioning related inputs
38
const
double
*
mpDXArray
;
// in floating point pixel units
39
const
sal_Bool
*
mpKashidaArray
;
40
double
mnLayoutWidth
;
// in pixel units
41
Degree10
mnOrientation
;
// in 0-3600 system
42
43
// data for bidi and glyph+script fallback
44
ImplLayoutRuns
maRuns
;
45
ImplLayoutRuns
maFallbackRuns
;
46
47
ImplLayoutArgs
(OUString
const
& rStr,
int
nMinCharPos,
int
nEndCharPos,
SalLayoutFlags
nFlags,
48
LanguageTag
aLanguageTag,
vcl::text::TextLayoutCache
const
* pLayoutCache);
49
50
void
SetLayoutWidth(
double
nWidth);
51
void
SetDXArray(
const
double
* pDXArray);
52
void
SetKashidaArray(
const
sal_Bool
* pKashidaArray);
53
void
SetOrientation
(
Degree10
nOrientation);
54
55
void
ResetPos();
56
bool
GetNextPos(
int
* nCharPos,
bool
* bRTL);
57
bool
GetNextRun(
int
* nMinRunPos,
int
* nEndRunPos,
bool
* bRTL);
58
void
AddFallbackRun(
int
nMinRunPos,
int
nEndRunPos,
bool
bRTL);
59
bool
HasDXArray
()
const
{
return
mpDXArray; }
60
61
// methods used by BiDi and glyph fallback
62
bool
HasFallbackRun()
const
;
63
bool
PrepareFallback(
const
SalLayoutGlyphsImpl
* pGlyphsImpl);
64
65
private
:
66
void
AddRun(
int
nMinCharPos,
int
nEndCharPos,
bool
bRTL);
67
};
68
}
69
70
// For nice SAL_INFO logging of ImplLayoutArgs values
71
std::ostream&
operator<<
(std::ostream& s,
vcl::text::ImplLayoutArgs
const
& rArgs);
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
operator<<
std::ostream & operator<<(std::ostream &s, vcl::text::ImplLayoutArgs const &rArgs)
Definition:
ImplLayoutArgs.cxx:244
PrinterSupport::SetOrientation
@ SetOrientation
SalLayoutFlags
SalLayoutFlags
Definition:
SalLayoutFlags.hxx:25
ImplLayoutRuns
Definition:
ImplLayoutRuns.hxx:27
LanguageTag
SalLayoutGlyphsImpl
Definition:
impglyphitem.hxx:142
vcl::text::ImplLayoutArgs
Definition:
ImplLayoutArgs.hxx:25
vcl::text::ImplLayoutArgs::mpDXArray
const double * mpDXArray
Definition:
ImplLayoutArgs.hxx:38
vcl::text::ImplLayoutArgs::maRuns
ImplLayoutRuns maRuns
Definition:
ImplLayoutArgs.hxx:44
vcl::text::ImplLayoutArgs::HasDXArray
bool HasDXArray() const
Definition:
ImplLayoutArgs.hxx:59
vcl::text::ImplLayoutArgs::m_pTextLayoutCache
vcl::text::TextLayoutCache const * m_pTextLayoutCache
Definition:
ImplLayoutArgs.hxx:35
vcl::text::ImplLayoutArgs::mnLayoutWidth
double mnLayoutWidth
Definition:
ImplLayoutArgs.hxx:40
vcl::text::ImplLayoutArgs::mrStr
const OUString & mrStr
Definition:
ImplLayoutArgs.hxx:30
vcl::text::ImplLayoutArgs::mnFlags
SalLayoutFlags mnFlags
Definition:
ImplLayoutArgs.hxx:29
vcl::text::ImplLayoutArgs::mnMinCharPos
int mnMinCharPos
Definition:
ImplLayoutArgs.hxx:31
vcl::text::ImplLayoutArgs::mpKashidaArray
const sal_Bool * mpKashidaArray
Definition:
ImplLayoutArgs.hxx:39
vcl::text::ImplLayoutArgs::maFallbackRuns
ImplLayoutRuns maFallbackRuns
Definition:
ImplLayoutArgs.hxx:45
vcl::text::ImplLayoutArgs::maLanguageTag
LanguageTag maLanguageTag
Definition:
ImplLayoutArgs.hxx:28
vcl::text::ImplLayoutArgs::mnEndCharPos
int mnEndCharPos
Definition:
ImplLayoutArgs.hxx:32
vcl::text::ImplLayoutArgs::mnOrientation
Degree10 mnOrientation
Definition:
ImplLayoutArgs.hxx:41
vcl::text::TextLayoutCache
Definition:
TextLayoutCache.hxx:48
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
vcl::text
sallayout.hxx
o3tl::strong_int
sal_Bool
unsigned char sal_Bool
Generated on Sun Jul 30 2023 04:34:58 for LibreOffice Module vcl (master) by
1.9.3