Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0c75202a
Kaydet (Commit)
0c75202a
authored
Kas 23, 2015
tarafından
Caolán
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
only one headless text renderer now
Change-Id: I045d7a58f3eae20c733fe93faa3a64687e7c85e3
üst
07217654
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
59 deletions
+25
-59
svpcairotextrender.cxx
vcl/headless/svpcairotextrender.cxx
+1
-1
svpcairotextrender.hxx
vcl/headless/svpcairotextrender.hxx
+0
-34
svpgdi.cxx
vcl/headless/svpgdi.cxx
+4
-4
svptext.cxx
vcl/headless/svptext.cxx
+18
-18
svpgdi.hxx
vcl/inc/headless/svpgdi.hxx
+2
-2
No files found.
vcl/headless/svpcairotextrender.cxx
Dosyayı görüntüle @
0c75202a
...
...
@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "svpcairotextrender.hxx"
#include "
headless/
svpcairotextrender.hxx"
#include "headless/svpgdi.hxx"
SvpCairoTextRender
::
SvpCairoTextRender
(
SvpSalGraphics
&
rParent
)
...
...
vcl/headless/svpcairotextrender.hxx
deleted
100644 → 0
Dosyayı görüntüle @
07217654
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_VCL_UNX_GTK3_GDI_GTK3CAIROTEXTRENDER_HXX
#define INCLUDED_VCL_UNX_GTK3_GDI_GTK3CAIROTEXTRENDER_HXX
#include "cairotextrender.hxx"
class
SvpSalGraphics
;
class
SvpCairoTextRender
:
public
CairoTextRender
{
protected
:
SvpSalGraphics
&
mrParent
;
public
:
explicit
SvpCairoTextRender
(
SvpSalGraphics
&
rParent
);
virtual
GlyphCache
&
getPlatformGlyphCache
()
override
;
virtual
cairo_t
*
getCairoContext
()
override
;
virtual
void
getSurfaceOffset
(
double
&
nDX
,
double
&
nDY
)
override
;
virtual
void
clipRegion
(
cairo_t
*
cr
)
override
;
virtual
void
drawSurface
(
cairo_t
*
cr
)
override
;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/headless/svpgdi.cxx
Dosyayı görüntüle @
0c75202a
...
...
@@ -20,7 +20,7 @@
#include "headless/svpgdi.hxx"
#include "headless/svpbmp.hxx"
#ifndef IOS
#include "svpcairotextrender.hxx"
#include "
headless/
svpcairotextrender.hxx"
#endif
#include "saldatabasic.hxx"
...
...
@@ -221,9 +221,9 @@ SvpSalGraphics::SvpSalGraphics() :
m_bUseFillColor
(
false
),
m_aFillColor
(
COL_WHITE
),
m_aDrawMode
(
basebmp
::
DrawMode
::
Paint
),
m_bClipSetup
(
false
)
m_bClipSetup
(
false
),
m_aTextRenderImpl
(
*
this
)
{
m_xTextRenderImpl
.
reset
(
new
SvpCairoTextRender
(
*
this
));
}
SvpSalGraphics
::~
SvpSalGraphics
()
...
...
@@ -234,7 +234,7 @@ void SvpSalGraphics::setDevice( basebmp::BitmapDeviceSharedPtr& rDevice )
{
m_aOrigDevice
=
rDevice
;
ResetClipRegion
();
m_
xTextRenderImpl
->
setDevice
(
rDevice
);
m_
aTextRenderImpl
.
setDevice
(
rDevice
);
}
void
SvpSalGraphics
::
GetResolution
(
sal_Int32
&
rDPIX
,
sal_Int32
&
rDPIY
)
...
...
vcl/headless/svptext.cxx
Dosyayı görüntüle @
0c75202a
...
...
@@ -24,38 +24,38 @@
sal_uInt16
SvpSalGraphics
::
SetFont
(
FontSelectPattern
*
pIFSD
,
int
nFallbackLevel
)
{
return
m_
xTextRenderImpl
->
SetFont
(
pIFSD
,
nFallbackLevel
);
return
m_
aTextRenderImpl
.
SetFont
(
pIFSD
,
nFallbackLevel
);
}
void
SvpSalGraphics
::
GetFontMetric
(
ImplFontMetricData
*
pMetric
,
int
nFallbackLevel
)
{
m_
xTextRenderImpl
->
GetFontMetric
(
pMetric
,
nFallbackLevel
);
m_
aTextRenderImpl
.
GetFontMetric
(
pMetric
,
nFallbackLevel
);
}
const
FontCharMapPtr
SvpSalGraphics
::
GetFontCharMap
()
const
{
return
m_
xTextRenderImpl
->
GetFontCharMap
();
return
m_
aTextRenderImpl
.
GetFontCharMap
();
}
bool
SvpSalGraphics
::
GetFontCapabilities
(
vcl
::
FontCapabilities
&
rFontCapabilities
)
const
{
return
m_
xTextRenderImpl
->
GetFontCapabilities
(
rFontCapabilities
);
return
m_
aTextRenderImpl
.
GetFontCapabilities
(
rFontCapabilities
);
}
void
SvpSalGraphics
::
GetDevFontList
(
PhysicalFontCollection
*
pFontCollection
)
{
m_
xTextRenderImpl
->
GetDevFontList
(
pFontCollection
);
m_
aTextRenderImpl
.
GetDevFontList
(
pFontCollection
);
}
void
SvpSalGraphics
::
ClearDevFontCache
()
{
m_
xTextRenderImpl
->
ClearDevFontCache
();
m_
aTextRenderImpl
.
ClearDevFontCache
();
}
bool
SvpSalGraphics
::
AddTempDevFont
(
PhysicalFontCollection
*
pFontCollection
,
const
OUString
&
rFileURL
,
const
OUString
&
rFontName
)
{
return
m_
xTextRenderImpl
->
AddTempDevFont
(
pFontCollection
,
rFileURL
,
rFontName
);
return
m_
aTextRenderImpl
.
AddTempDevFont
(
pFontCollection
,
rFileURL
,
rFontName
);
}
bool
SvpSalGraphics
::
CreateFontSubset
(
...
...
@@ -67,12 +67,12 @@ bool SvpSalGraphics::CreateFontSubset(
int
nGlyphCount
,
FontSubsetInfo
&
rInfo
)
{
return
m_
xTextRenderImpl
->
CreateFontSubset
(
rToFile
,
pFont
,
pGlyphIds
,
pEncoding
,
pWidths
,
nGlyphCount
,
rInfo
);
return
m_
aTextRenderImpl
.
CreateFontSubset
(
rToFile
,
pFont
,
pGlyphIds
,
pEncoding
,
pWidths
,
nGlyphCount
,
rInfo
);
}
const
Ucs2SIntMap
*
SvpSalGraphics
::
GetFontEncodingVector
(
const
PhysicalFontFace
*
pFont
,
const
Ucs2OStrMap
**
pNonEncoded
,
std
::
set
<
sal_Unicode
>
const
**
ppPriority
)
{
return
m_
xTextRenderImpl
->
GetFontEncodingVector
(
pFont
,
pNonEncoded
,
ppPriority
);
return
m_
aTextRenderImpl
.
GetFontEncodingVector
(
pFont
,
pNonEncoded
,
ppPriority
);
}
const
void
*
SvpSalGraphics
::
GetEmbedFontData
(
...
...
@@ -83,12 +83,12 @@ const void* SvpSalGraphics::GetEmbedFontData(
FontSubsetInfo
&
rInfo
,
long
*
pDataLen
)
{
return
m_
xTextRenderImpl
->
GetEmbedFontData
(
pFont
,
pUnicodes
,
pWidths
,
nLen
,
rInfo
,
pDataLen
);
return
m_
aTextRenderImpl
.
GetEmbedFontData
(
pFont
,
pUnicodes
,
pWidths
,
nLen
,
rInfo
,
pDataLen
);
}
void
SvpSalGraphics
::
FreeEmbedFontData
(
const
void
*
pData
,
long
nLen
)
{
m_
xTextRenderImpl
->
FreeEmbedFontData
(
pData
,
nLen
);
m_
aTextRenderImpl
.
FreeEmbedFontData
(
pData
,
nLen
);
}
void
SvpSalGraphics
::
GetGlyphWidths
(
const
PhysicalFontFace
*
pFont
,
...
...
@@ -96,39 +96,39 @@ void SvpSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFont,
Int32Vector
&
rWidths
,
Ucs2UIntMap
&
rUnicodeEnc
)
{
m_
xTextRenderImpl
->
GetGlyphWidths
(
pFont
,
bVertical
,
rWidths
,
rUnicodeEnc
);
m_
aTextRenderImpl
.
GetGlyphWidths
(
pFont
,
bVertical
,
rWidths
,
rUnicodeEnc
);
}
bool
SvpSalGraphics
::
GetGlyphBoundRect
(
sal_GlyphId
aGlyphId
,
Rectangle
&
rRect
)
{
return
m_
xTextRenderImpl
->
GetGlyphBoundRect
(
aGlyphId
,
rRect
);
return
m_
aTextRenderImpl
.
GetGlyphBoundRect
(
aGlyphId
,
rRect
);
}
bool
SvpSalGraphics
::
GetGlyphOutline
(
sal_GlyphId
aGlyphId
,
basegfx
::
B2DPolyPolygon
&
rPolyPoly
)
{
return
m_
xTextRenderImpl
->
GetGlyphOutline
(
aGlyphId
,
rPolyPoly
);
return
m_
aTextRenderImpl
.
GetGlyphOutline
(
aGlyphId
,
rPolyPoly
);
}
SalLayout
*
SvpSalGraphics
::
GetTextLayout
(
ImplLayoutArgs
&
rArgs
,
int
nFallbackLevel
)
{
return
m_
xTextRenderImpl
->
GetTextLayout
(
rArgs
,
nFallbackLevel
);
return
m_
aTextRenderImpl
.
GetTextLayout
(
rArgs
,
nFallbackLevel
);
}
void
SvpSalGraphics
::
DrawServerFontLayout
(
const
ServerFontLayout
&
rSalLayout
)
{
m_
xTextRenderImpl
->
DrawServerFontLayout
(
rSalLayout
);
m_
aTextRenderImpl
.
DrawServerFontLayout
(
rSalLayout
);
}
void
SvpSalGraphics
::
SetTextColor
(
SalColor
nSalColor
)
{
m_
xTextRenderImpl
->
SetTextColor
(
nSalColor
);
m_
aTextRenderImpl
.
SetTextColor
(
nSalColor
);
}
#if ENABLE_CAIRO_CANVAS
SystemFontData
SvpSalGraphics
::
GetSysFontData
(
int
nFallbacklevel
)
const
{
return
m_
xTextRenderImpl
->
GetSysFontData
(
nFallbacklevel
);
return
m_
aTextRenderImpl
.
GetSysFontData
(
nFallbacklevel
);
}
#endif // ENABLE_CAIRO_CANVAS
...
...
vcl/inc/headless/svpgdi.hxx
Dosyayı görüntüle @
0c75202a
...
...
@@ -28,7 +28,7 @@
#include "salgdi.hxx"
#include "sallayout.hxx"
#include "textrender.hxx"
#include "
svpcairo
textrender.hxx"
#ifdef IOS
#define SvpSalGraphics AquaSalGraphics
...
...
@@ -79,7 +79,7 @@ private:
protected
:
vcl
::
Region
m_aClipRegion
;
std
::
unique_ptr
<
TextRenderImpl
>
m_x
TextRenderImpl
;
SvpCairoTextRender
m_a
TextRenderImpl
;
protected
:
virtual
bool
blendBitmap
(
const
SalTwoRect
&
,
const
SalBitmap
&
rBitmap
)
override
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment