Bugzilla – Attachment 42571 Details for
Bug 33569
[EPS Export] Use product name for %%Creator header instead of Sun Microsystems, Inc.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-Use-product-name-for-EPS-Cretor-header.patch (text/plain), 2.68 KB, created by
Kurosawa Takeshi
on 2011-01-26 21:50:33 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Kurosawa Takeshi
Created:
2011-01-26 21:50:33 UTC
Size:
2.68 KB
patch
obsolete
>From 6ba8b204bdaeddc0759eec5e97cdbf8a1749fa04 Mon Sep 17 00:00:00 2001 >From: Takeshi Kurosawa <taken.spc@gmail.com> >Date: Thu, 27 Jan 2011 14:31:57 +0900 >Subject: [PATCH] Use product name for EPS Cretor header > >--- > filter/source/graphicfilter/eps/eps.cxx | 16 +++++++++++++++- > filter/source/graphicfilter/eps/makefile.mk | 2 +- > 2 files changed, 16 insertions(+), 2 deletions(-) > >diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx >index 083e9df..dd127e0 100644 >--- a/filter/source/graphicfilter/eps/eps.cxx >+++ b/filter/source/graphicfilter/eps/eps.cxx >@@ -44,6 +44,7 @@ > #include <vcl/msgbox.hxx> > #include <vcl/cvtgrf.hxx> > #include <vcl/gradient.hxx> >+#include <unotools/configmgr.hxx> > #include <svl/solar.hrc> > #include <svtools/fltcall.hxx> > #include <svtools/FilterConfigItem.hxx> >@@ -54,6 +55,8 @@ > > #include <math.h> > >+using namespace ::com::sun::star::uno; >+ > #define POSTSCRIPT_BOUNDINGSEARCH 0x1000 // we only try to get the BoundingBox > // in the first 4096 bytes > >@@ -459,7 +462,18 @@ void PSWriter::ImplWriteProlog( const Graphic* pPreview ) > ImplWriteLong( aSizePoint.Width() ); > ImplWriteLong( aSizePoint.Height() ,PS_RET ); > ImplWriteLine( "%%Pages: 0" ); >- ImplWriteLine( "%%Creator: Sun Microsystems, Inc." ); >+ ::rtl::OUStringBuffer aCreator; >+ aCreator.appendAscii( RTL_CONSTASCII_STRINGPARAM( "%%Creator: " ) ); >+ ::utl::ConfigManager& rMgr = ::utl::ConfigManager::GetConfigManager(); >+ Any aProductName = rMgr.GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME ); >+ ::rtl::OUString sProductName; >+ aProductName >>= sProductName; >+ aCreator.append( sProductName ); >+ aProductName = rMgr.GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTVERSION ); >+ aProductName >>= sProductName; >+ aCreator.appendAscii( RTL_CONSTASCII_STRINGPARAM( " " ) ); >+ aCreator.append( sProductName ); >+ ImplWriteLine( ::rtl::OUStringToOString( aCreator.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ).getStr() ); > ImplWriteLine( "%%Title: none" ); > ImplWriteLine( "%%CreationDate: none" ); > >diff --git a/filter/source/graphicfilter/eps/makefile.mk b/filter/source/graphicfilter/eps/makefile.mk >index 34c87f1..1c58e61 100644 >--- a/filter/source/graphicfilter/eps/makefile.mk >+++ b/filter/source/graphicfilter/eps/makefile.mk >@@ -60,7 +60,7 @@ RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs > .IF "$(L10N_framework)"=="" > SHL1TARGET= eps$(DLLPOSTFIX) > SHL1IMPLIB= eps >-SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(VCLLIB) $(SVTOOLLIB) $(CPPULIB) $(SALLIB) >+SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(VCLLIB) $(SVTOOLLIB) $(CPPULIB) $(SALLIB) $(UNOTOOLSLIB) > > SHL1LIBS= $(SLB)$/eps.lib > >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33569
: 42571