summaryrefslogtreecommitdiff
path: root/vcl/unx/headless
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-31 12:27:10 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-31 12:27:10 +0000
commit66eaf1da57106fe842607ea3b2308dc574a285f6 (patch)
tree69e6aead5563ad5048ceeb5b911e49d2f8226325 /vcl/unx/headless
parentabb0c53efc1465087e1573702450c06d41815874 (diff)
INTEGRATION: CWS pdffix02 (1.2.102); FILE MERGED
2008/01/24 16:24:19 hdu 1.2.102.3: "#i85554# minor cleanups for PDF export - avoid hardcoded use of 16bit sal_Unicode, especially in interfaces - improve const correctness for subsetting/embedding font candidates 2008/01/24 12:35:30 hdu 1.2.102.2: #i85554# code cleanup to prepare for UCS4 support in PDF export 2008/01/17 16:28:47 hdu 1.2.102.1: #i83121# adjust to recent sallayout.hxx changes
Diffstat (limited to 'vcl/unx/headless')
-rw-r--r--vcl/unx/headless/svptext.cxx23
1 files changed, 10 insertions, 13 deletions
diff --git a/vcl/unx/headless/svptext.cxx b/vcl/unx/headless/svptext.cxx
index 1e1a4cd56675..5800da559231 100644
--- a/vcl/unx/headless/svptext.cxx
+++ b/vcl/unx/headless/svptext.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svptext.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2007-07-24 10:28:49 $
+ * last change: $Author: kz $ $Date: 2008-03-31 13:27:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -355,7 +355,7 @@ bool SvpSalGraphics::AddTempDevFont( ImplDevFontList*,
BOOL SvpSalGraphics::CreateFontSubset(
const rtl::OUString& rToFile,
- ImplFontData* pFont,
+ const ImplFontData* pFont,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
sal_Int32* pWidths,
@@ -374,10 +374,7 @@ BOOL SvpSalGraphics::CreateFontSubset(
// ---------------------------------------------------------------------------
-const std::map< sal_Unicode, sal_Int32 >* SvpSalGraphics::GetFontEncodingVector(
- ImplFontData* pFont,
- const std::map< sal_Unicode, rtl::OString >** pNonEncoded
- )
+const Ucs2SIntMap* SvpSalGraphics::GetFontEncodingVector( const ImplFontData* pFont, const Ucs2OStrMap** pNonEncoded )
{
// in this context the pFont->GetFontId() is a valid PSP
// font since they are the only ones left after the PDF
@@ -391,8 +388,8 @@ const std::map< sal_Unicode, sal_Int32 >* SvpSalGraphics::GetFontEncodingVector(
// ---------------------------------------------------------------------------
const void* SvpSalGraphics::GetEmbedFontData(
- ImplFontData* pFont,
- const sal_Unicode* pUnicodes,
+ const ImplFontData* pFont,
+ const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen
@@ -414,10 +411,10 @@ void SvpSalGraphics::FreeEmbedFontData( const void* pData, long nLen )
PspGraphics::DoFreeEmbedFontData( pData, nLen );
}
-void SvpSalGraphics::GetGlyphWidths( ImplFontData* pFont,
+void SvpSalGraphics::GetGlyphWidths( const ImplFontData* pFont,
bool bVertical,
- std::vector< sal_Int32 >& rWidths,
- std::map< sal_Unicode, sal_uInt32 >& rUnicodeEnc )
+ Int32Vector& rWidths,
+ Ucs2UIntMap& rUnicodeEnc )
{
// in this context the pFont->GetFontId() is a valid PSP
// font since they are the only ones left after the PDF
@@ -483,7 +480,7 @@ void SvpSalGraphics::DrawServerFontLayout( const ServerFontLayout& rSalLayout )
{
// iterate over all glyphs in the layout
Point aPos;
- sal_Int32 nGlyphIndex;
+ sal_GlyphId nGlyphIndex;
SvpGlyphPeer& rGlyphPeer = SvpGlyphCache::GetInstance().GetPeer();
for( int nStart = 0; rSalLayout.GetNextGlyphs( 1, &nGlyphIndex, aPos, nStart ); )
{