native0ext:#161688# rebranding extensions - transplanted from 28f77bc32e70@native0
1
mysqlc/mysqlc
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ooo/mysqlc
|
@@ -6,7 +6,7 @@
|
|||||||
<version value="#VERSION#" />
|
<version value="#VERSION#" />
|
||||||
<platform value="UPDATED_SUPPORTED_PLATFORM" />
|
<platform value="UPDATED_SUPPORTED_PLATFORM" />
|
||||||
<registration>
|
<registration>
|
||||||
<simple-license accept-by="admin" default-license-id="lic-en-US" >
|
<simple-license accept-by="admin" default-license-id="lic-en-US" suppress-if-required="true" >
|
||||||
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
||||||
</simple-license>
|
</simple-license>
|
||||||
</registration>
|
</registration>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<OpenOffice.org-minimal-version value="3.1" d:name="OpenOffice.org 3.1"/>
|
<OpenOffice.org-minimal-version value="3.1" d:name="OpenOffice.org 3.1"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<publisher>
|
<publisher>
|
||||||
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Sun Microsystems</name>
|
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Oracle</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
<icon>
|
<icon>
|
||||||
<default xlink:href="images/sun_extension.png" />
|
<default xlink:href="images/sun_extension.png" />
|
||||||
|
@@ -1 +1 @@
|
|||||||
Connects OpenOffice.org directly with MySQL Servers
|
The MySQL Connector for Oracle Open Office (formerly StarOffice) and OpenOffice.org installs a native MySQL database driver. It is faster, seamless integrated, easier to administrate and there is no need to install and setup a JDBC or ODBC driver separately. It was never easier to use MySQL databases in OpenOffice.org Base.
|
||||||
|
@@ -56,10 +56,10 @@ EXTENSION_VERSION_BASE=$(MYSQLC_VERSION_MAJOR).$(MYSQLC_VERSION_MINOR).$(MYSQLC_
|
|||||||
#---- extension title package name
|
#---- extension title package name
|
||||||
.IF "$(MYSQLC_STATUS)" == "final"
|
.IF "$(MYSQLC_STATUS)" == "final"
|
||||||
EXTENSION_TITLE:=$(MYSQLC_TITLE)
|
EXTENSION_TITLE:=$(MYSQLC_TITLE)
|
||||||
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)-$(EXTENSION_VERSION_BASE)-$(RTL_OS:l)-$(RTL_ARCH:l)
|
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
|
||||||
.ELSE
|
.ELSE
|
||||||
EXTENSION_TITLE:=$(MYSQLC_TITLE) ($(MYSQLC_STATUS))
|
EXTENSION_TITLE:=$(MYSQLC_TITLE) ($(MYSQLC_STATUS))
|
||||||
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)-$(EXTENSION_VERSION_BASE)-$(MYSQLC_STATUS:s/ /-/:l)-$(RTL_OS:l)-$(RTL_ARCH:l)
|
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
@@ -30,7 +30,7 @@ MYSQLC_VERSION_MINOR=0
|
|||||||
MYSQLC_VERSION_MICRO=1
|
MYSQLC_VERSION_MICRO=1
|
||||||
|
|
||||||
# the title, as displayed in the Extension Manager
|
# the title, as displayed in the Extension Manager
|
||||||
MYSQLC_TITLE=MySQL Connector for OpenOffice.org
|
MYSQLC_TITLE=MySQL Connector
|
||||||
|
|
||||||
# the status of the extension
|
# the status of the extension
|
||||||
# if this is different from "final", it will be appended to the title displayed in the Extension Manager
|
# if this is different from "final", it will be appended to the title displayed in the Extension Manager
|
||||||
|
BIN
reportbuilder/images/em42.png
Normal file → Executable file
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
reportbuilder/images/em42_hc.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.0 KiB |
@@ -1 +1 @@
|
|||||||
Create with the Sun Report Builder stylish, smart-looking database reports. The flexible report editor can define group and page headers as well as group and page footers and even calculation fields are available to accomplish complex database reports.
|
Create with the Oracle Report Builder stylish, smart-looking database reports. The flexible report editor can define group and page headers as well as group and page footers and even calculation fields are available to accomplish complex database reports.
|
||||||
|
@@ -3,11 +3,11 @@
|
|||||||
xmlns:d="http://openoffice.org/extensions/description/2006"
|
xmlns:d="http://openoffice.org/extensions/description/2006"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en-US">Sun Report Builder</name>
|
<name lang="en-US">Oracle Report Builder</name>
|
||||||
<!-- <name lang="en-US">Sun(TM) Report Builder</name> -->
|
<!-- <name lang="en-US">Sun(TM) Report Builder</name> -->
|
||||||
</display-name>
|
</display-name>
|
||||||
<registration>
|
<registration>
|
||||||
<simple-license accept-by="admin" default-license-id="lic-en-US" >
|
<simple-license accept-by="admin" default-license-id="lic-en-US" suppress-if-required="true" >
|
||||||
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
||||||
</simple-license>
|
</simple-license>
|
||||||
</registration>
|
</registration>
|
||||||
@@ -17,11 +17,14 @@
|
|||||||
<OpenOffice.org-minimal-version value="3.2" d:name="OpenOffice.org 3.2"/>
|
<OpenOffice.org-minimal-version value="3.2" d:name="OpenOffice.org 3.2"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<publisher>
|
<publisher>
|
||||||
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Sun Microsystems, Inc.</name>
|
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Oracle, Inc.</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
<icon>
|
<icon>
|
||||||
<default xlink:href="images/em42.png" />
|
<default xlink:href="images/em42.png" />
|
||||||
<high-contrast xlink:href="images/em42_hc.png" />
|
<high-contrast xlink:href="images/em42_hc.png" />
|
||||||
</icon>
|
</icon>
|
||||||
|
<extension-description>
|
||||||
|
<src xlink:href="help/component.txt" lang="en" />
|
||||||
|
</extension-description>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
PRJ=..
|
PRJ=..
|
||||||
PRJNAME=reportbuilder
|
PRJNAME=reportbuilder
|
||||||
TARGET=rpt
|
TARGET=rpt
|
||||||
EXTENSION_VERSION_BASE=1.2.0
|
EXTENSION_VERSION_BASE=1.2.1
|
||||||
|
|
||||||
.IF "$(CWS_WORK_STAMP)" == ""
|
.IF "$(CWS_WORK_STAMP)" == ""
|
||||||
EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
|
EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
|
||||||
@@ -41,8 +41,8 @@ EXTENSION_VERSION_BASE=1.2.0
|
|||||||
.IF "$(L10N_framework)"==""
|
.IF "$(L10N_framework)"==""
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# calready set in util$/makefile.pmk
|
# calready set in util$/makefile.pmk
|
||||||
# EXTENSIONNAME:=sun-report-builder
|
# EXTENSIONNAME:=oracle-report-builder
|
||||||
EXTENSION_ZIPNAME:=sun-report-builder
|
EXTENSION_ZIPNAME:=oracle-report-builder
|
||||||
|
|
||||||
# create Extension -----------------------------
|
# create Extension -----------------------------
|
||||||
|
|
||||||
|
@@ -3,5 +3,3 @@
|
|||||||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
||||||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Java"
|
<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Java"
|
||||||
manifest:full-path="sun-report-builder.jar"/>
|
manifest:full-path="sun-report-builder.jar"/>
|
||||||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.package-bundle-description"
|
|
||||||
manifest:full-path="help/component.txt"/>
|
|
||||||
|
@@ -4,5 +4,5 @@ mkdir: %_DEST%\bin%_EXT%\pdfimport
|
|||||||
..\%__SRC%\bin\pdf2xml.* %_DEST%\bin%_EXT%\pdf2xml.*
|
..\%__SRC%\bin\pdf2xml.* %_DEST%\bin%_EXT%\pdf2xml.*
|
||||||
..\%__SRC%\bin\pdfunzip.* %_DEST%\bin%_EXT%\pdfunzip.*
|
..\%__SRC%\bin\pdfunzip.* %_DEST%\bin%_EXT%\pdfunzip.*
|
||||||
..\%__SRC%\bin\pdfimport.oxt %_DEST%\bin%_EXT%\pdfimport\pdfimport.oxt
|
..\%__SRC%\bin\pdfimport.oxt %_DEST%\bin%_EXT%\pdfimport\pdfimport.oxt
|
||||||
..\%__SRC%\bin\sun-presentation-minimizer.oxt %_DEST%\bin%_EXT%\minimizer\sun-presentation-minimizer.oxt
|
..\%__SRC%\bin\presentation-minimizer.oxt %_DEST%\bin%_EXT%\minimizer\presentation-minimizer.oxt
|
||||||
..\%__SRC%\bin\presenter-screen.oxt %_DEST%\bin%_EXT%\presenter\presenter-screen.oxt
|
..\%__SRC%\bin\presenter-screen.oxt %_DEST%\bin%_EXT%\presenter\presenter-screen.oxt
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
</simple-license>
|
</simple-license>
|
||||||
</registration>
|
</registration>
|
||||||
|
|
||||||
<version value="1.0"/>
|
<version value="1.0.2"/>
|
||||||
|
|
||||||
<platform value="UPDATED_SUPPORTED_PLATFORM"/>
|
<platform value="UPDATED_SUPPORTED_PLATFORM"/>
|
||||||
|
|
||||||
@@ -29,4 +29,9 @@
|
|||||||
<name lang="en-US">Presentation Minimizer</name>
|
<name lang="en-US">Presentation Minimizer</name>
|
||||||
</display-name>
|
</display-name>
|
||||||
|
|
||||||
|
<icon>
|
||||||
|
<default xlink:href="images/em42.png" />
|
||||||
|
<high-contrast xlink:href="images/em42_hc.png" />
|
||||||
|
</icon>
|
||||||
|
|
||||||
</description>
|
</description>
|
||||||
|
@@ -1,3 +1 @@
|
|||||||
The Presentation Minimizer is used to reduce the file size of the current
|
The Presentation Minimizer is used to reduce the file size of the current presentation. Images will be compressed, and data that is no longer needed will be removed.
|
||||||
presentation. Images will be compressed, and data that is no longer needed
|
|
||||||
will be removed.
|
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
PRJ=..$/..
|
PRJ=..$/..
|
||||||
PRJNAME=sdext
|
PRJNAME=sdext
|
||||||
TARGET=SunPresentationMinimizer
|
TARGET=PresentationMinimizer
|
||||||
GEN_HID=FALSE
|
GEN_HID=FALSE
|
||||||
ENABLE_EXCEPTIONS=TRUE
|
ENABLE_EXCEPTIONS=TRUE
|
||||||
|
|
||||||
@@ -38,8 +38,8 @@ ENABLE_EXCEPTIONS=TRUE
|
|||||||
.INCLUDE : $(PRJ)$/util$/makefile.pmk
|
.INCLUDE : $(PRJ)$/util$/makefile.pmk
|
||||||
|
|
||||||
# set in minimizer.pmk
|
# set in minimizer.pmk
|
||||||
#EXTENSIONNAME:=SunPresentationMinimizer
|
#EXTENSIONNAME:=PresentationMinimizer
|
||||||
EXTENSION_ZIPNAME:=sun-presentation-minimizer
|
EXTENSION_ZIPNAME:=presentation-minimizer
|
||||||
|
|
||||||
.IF "$(ENABLE_MINIMIZER)" != "YES"
|
.IF "$(ENABLE_MINIMIZER)" != "YES"
|
||||||
@all:
|
@all:
|
||||||
@@ -106,6 +106,10 @@ COMPONENT_BITMAPS= \
|
|||||||
$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \
|
$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80.png \
|
||||||
$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png
|
$(EXTENSIONDIR)$/bitmaps$/minimizepresi_80_h.png
|
||||||
|
|
||||||
|
COMPONENT_IMAGES=\
|
||||||
|
$(EXTENSIONDIR)$/bitmaps$/em42.png \
|
||||||
|
$(EXTENSIONDIR)$/bitmaps$/em42_hc.png
|
||||||
|
|
||||||
# rather freestyle or common to all?
|
# rather freestyle or common to all?
|
||||||
COMPONENT_HELP= \
|
COMPONENT_HELP= \
|
||||||
$(EXTENSIONDIR)$/help$/help_de.odt \
|
$(EXTENSIONDIR)$/help$/help_de.odt \
|
||||||
@@ -113,7 +117,7 @@ COMPONENT_HELP= \
|
|||||||
$(EXTENSIONDIR)$/help$/component.txt
|
$(EXTENSIONDIR)$/help$/component.txt
|
||||||
|
|
||||||
# make sure to add your custom files here
|
# make sure to add your custom files here
|
||||||
EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_HELP)
|
EXTENSION_PACKDEPS=$(COMPONENT_BITMAPS) $(COMPONENT_IMAGES) $(COMPONENT_HELP)
|
||||||
|
|
||||||
# --- Targets ----------------------------------
|
# --- Targets ----------------------------------
|
||||||
|
|
||||||
@@ -129,6 +133,10 @@ $(COMPONENT_BITMAPS) : $(SOLARSRC)$/$(RSCDEFIMG)$/minimizer$/$$(@:f)
|
|||||||
@@-$(MKDIRHIER) $(@:d)
|
@@-$(MKDIRHIER) $(@:d)
|
||||||
$(COPY) $< $@
|
$(COPY) $< $@
|
||||||
|
|
||||||
|
$(COMPONENT_IMAGES) : images$/$$(@:f)
|
||||||
|
@@-$(MKDIRHIER) $(@:d)
|
||||||
|
$(COPY) $< $@
|
||||||
|
|
||||||
$(COMPONENT_HELP) : help$/$$(@:f)
|
$(COMPONENT_HELP) : help$/$$(@:f)
|
||||||
@@-$(MKDIRHIER) $(@:d)
|
@@-$(MKDIRHIER) $(@:d)
|
||||||
$(COPY) $< $@
|
$(COPY) $< $@
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<registration>
|
<registration>
|
||||||
<simple-license accept-by="admin" default-license-id="lic-en-US">
|
<simple-license accept-by="admin" default-license-id="lic-en-US" suppress-if-required="true" >
|
||||||
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
<license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/>
|
||||||
</simple-license>
|
</simple-license>
|
||||||
</registration>
|
</registration>
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
<platform value="UPDATED_SUPPORTED_PLATFORM" />
|
<platform value="UPDATED_SUPPORTED_PLATFORM" />
|
||||||
|
|
||||||
<publisher>
|
<publisher>
|
||||||
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Sun Microsystems</name>
|
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Oracle</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
|
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en-US">PDF Import Extension</name>
|
<name lang="en-US">PDF Import</name>
|
||||||
</display-name>
|
</display-name>
|
||||||
|
|
||||||
<icon>
|
<icon>
|
||||||
|
@@ -1,3 +1 @@
|
|||||||
PDF documents are imported in Draw and Impress to preserve the layout and to
|
PDF documents are imported in Draw and Impress to preserve the layout and to allow basic editing. It is the perfect solution for changing dates, numbers or small portions of text.
|
||||||
allow basic editing. It is the perfect solution for changing dates, numbers
|
|
||||||
or small portions of text.
|
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -197,6 +197,60 @@ public:
|
|||||||
void parseLine( const ::rtl::OString& rLine );
|
void parseLine( const ::rtl::OString& rLine );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
|
/** Unescapes line-ending characters in input string. These
|
||||||
|
characters are encoded as pairs of characters: '\\' 'n', resp.
|
||||||
|
'\\' 'r'. This function converts them back to '\n', resp. '\r'.
|
||||||
|
*/
|
||||||
|
rtl::OString lcl_unescapeLineFeeds(const rtl::OString& i_rStr)
|
||||||
|
{
|
||||||
|
const size_t nOrigLen(sal::static_int_cast<size_t>(i_rStr.getLength()));
|
||||||
|
const sal_Char* const pOrig(i_rStr.getStr());
|
||||||
|
sal_Char* const pBuffer(new sal_Char[nOrigLen + 1]);
|
||||||
|
|
||||||
|
const sal_Char* pRead(pOrig);
|
||||||
|
sal_Char* pWrite(pBuffer);
|
||||||
|
const sal_Char* pCur(pOrig);
|
||||||
|
while ((pCur = strchr(pCur, '\\')) != 0)
|
||||||
|
{
|
||||||
|
const sal_Char cNext(pCur[1]);
|
||||||
|
if (cNext == 'n' || cNext == 'r' || cNext == '\\')
|
||||||
|
{
|
||||||
|
const size_t nLen(pCur - pRead);
|
||||||
|
strncpy(pWrite, pRead, nLen);
|
||||||
|
pWrite += nLen;
|
||||||
|
*pWrite = cNext == 'n' ? '\n' : (cNext == 'r' ? '\r' : '\\');
|
||||||
|
++pWrite;
|
||||||
|
pCur = pRead = pCur + 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Just continue on the next character. The current
|
||||||
|
// block will be copied the next time it goes through the
|
||||||
|
// 'if' branch.
|
||||||
|
++pCur;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// maybe there are some data to copy yet
|
||||||
|
if (sal::static_int_cast<size_t>(pRead - pOrig) < nOrigLen)
|
||||||
|
{
|
||||||
|
const size_t nLen(nOrigLen - (pRead - pOrig));
|
||||||
|
strncpy(pWrite, pRead, nLen);
|
||||||
|
pWrite += nLen;
|
||||||
|
}
|
||||||
|
*pWrite = '\0';
|
||||||
|
|
||||||
|
rtl::OString aResult(pBuffer);
|
||||||
|
delete[] pBuffer;
|
||||||
|
return aResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
::rtl::OString Parser::readNextToken()
|
::rtl::OString Parser::readNextToken()
|
||||||
{
|
{
|
||||||
OSL_PRECOND(m_nCharIndex!=-1,"insufficient input");
|
OSL_PRECOND(m_nCharIndex!=-1,"insufficient input");
|
||||||
@@ -322,7 +376,7 @@ void Parser::readChar()
|
|||||||
readDouble(aUnoMatrix.m10);
|
readDouble(aUnoMatrix.m10);
|
||||||
readDouble(aUnoMatrix.m11);
|
readDouble(aUnoMatrix.m11);
|
||||||
|
|
||||||
rtl::OString aChars = m_aLine.copy( m_nCharIndex );
|
rtl::OString aChars = lcl_unescapeLineFeeds( m_aLine.copy( m_nCharIndex ) );
|
||||||
|
|
||||||
// chars gobble up rest of line
|
// chars gobble up rest of line
|
||||||
m_nCharIndex = -1;
|
m_nCharIndex = -1;
|
||||||
@@ -476,7 +530,7 @@ void Parser::readFont()
|
|||||||
readInt32(nFileLen);
|
readInt32(nFileLen);
|
||||||
|
|
||||||
nSize = nSize < 0.0 ? -nSize : nSize;
|
nSize = nSize < 0.0 ? -nSize : nSize;
|
||||||
aFontName = m_aLine.copy( m_nCharIndex );
|
aFontName = lcl_unescapeLineFeeds( m_aLine.copy( m_nCharIndex ) );
|
||||||
|
|
||||||
// name gobbles up rest of line
|
// name gobbles up rest of line
|
||||||
m_nCharIndex = -1;
|
m_nCharIndex = -1;
|
||||||
@@ -668,8 +722,9 @@ void Parser::readLink()
|
|||||||
readDouble(aBounds.Y2);
|
readDouble(aBounds.Y2);
|
||||||
|
|
||||||
m_pSink->hyperLink( aBounds,
|
m_pSink->hyperLink( aBounds,
|
||||||
rtl::OStringToOUString( m_aLine.copy(m_nCharIndex),
|
rtl::OStringToOUString( lcl_unescapeLineFeeds(
|
||||||
RTL_TEXTENCODING_UTF8 ));
|
m_aLine.copy(m_nCharIndex) ),
|
||||||
|
RTL_TEXTENCODING_UTF8 ) );
|
||||||
// name gobbles up rest of line
|
// name gobbles up rest of line
|
||||||
m_nCharIndex = -1;
|
m_nCharIndex = -1;
|
||||||
}
|
}
|
||||||
|
@@ -37,6 +37,8 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <boost/shared_array.hpp>
|
||||||
|
|
||||||
#if defined __SUNPRO_CC
|
#if defined __SUNPRO_CC
|
||||||
#pragma disable_warn
|
#pragma disable_warn
|
||||||
#elif defined _MSC_VER
|
#elif defined _MSC_VER
|
||||||
@@ -78,10 +80,44 @@ inline double normalize( double val )
|
|||||||
return fabs(val) < 0.0000001 ? 0.0 : val;
|
return fabs(val) < 0.0000001 ? 0.0 : val;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* escapeLineFeed( const char* pStr )
|
namespace
|
||||||
{
|
{
|
||||||
// TODO(Q3): Escape linefeeds
|
|
||||||
return pStr;
|
/** Escapes line-ending characters (\n and \r) in input string.
|
||||||
|
*/
|
||||||
|
boost::shared_array<char> lcl_escapeLineFeeds(const char* const i_pStr)
|
||||||
|
{
|
||||||
|
size_t nLength(strlen(i_pStr));
|
||||||
|
char* pBuffer = new char[2*nLength+1];
|
||||||
|
|
||||||
|
const char* pRead = i_pStr;
|
||||||
|
char* pWrite = pBuffer;
|
||||||
|
while( nLength-- )
|
||||||
|
{
|
||||||
|
if( *pRead == '\r' )
|
||||||
|
{
|
||||||
|
*pWrite++ = '\\';
|
||||||
|
*pWrite++ = 'r';
|
||||||
|
}
|
||||||
|
else if( *pRead == '\n' )
|
||||||
|
{
|
||||||
|
*pWrite++ = '\\';
|
||||||
|
*pWrite++ = 'n';
|
||||||
|
}
|
||||||
|
else if( *pRead == '\\' )
|
||||||
|
{
|
||||||
|
*pWrite++ = '\\';
|
||||||
|
*pWrite++ = '\\';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
*pWrite++ = *pRead;
|
||||||
|
pRead++;
|
||||||
|
}
|
||||||
|
*pWrite++ = 0;
|
||||||
|
|
||||||
|
return boost::shared_array<char>(pBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// for the temp char buffer the header gets snprintfed in
|
/// for the temp char buffer the header gets snprintfed in
|
||||||
@@ -464,12 +500,14 @@ void PDFOutDev::processLink(Link* link, Catalog*)
|
|||||||
{
|
{
|
||||||
const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();
|
const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();
|
||||||
|
|
||||||
|
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(pURI) );
|
||||||
|
|
||||||
printf( "drawLink %f %f %f %f %s\n",
|
printf( "drawLink %f %f %f %f %s\n",
|
||||||
normalize(x1),
|
normalize(x1),
|
||||||
normalize(y1),
|
normalize(y1),
|
||||||
normalize(x2),
|
normalize(x2),
|
||||||
normalize(y2),
|
normalize(y2),
|
||||||
escapeLineFeed(pURI) );
|
pEsc.get() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -634,6 +672,8 @@ void PDFOutDev::updateFont(GfxState *state)
|
|||||||
printf( " %lld", fontID );
|
printf( " %lld", fontID );
|
||||||
|
|
||||||
aFont = it->second;
|
aFont = it->second;
|
||||||
|
|
||||||
|
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(aFont.familyName.getCString()) );
|
||||||
printf( " %d %d %d %d %f %d %s",
|
printf( " %d %d %d %d %f %d %s",
|
||||||
aFont.isEmbedded,
|
aFont.isEmbedded,
|
||||||
aFont.isBold,
|
aFont.isBold,
|
||||||
@@ -641,7 +681,7 @@ void PDFOutDev::updateFont(GfxState *state)
|
|||||||
aFont.isUnderline,
|
aFont.isUnderline,
|
||||||
normalize(state->getTransformedFontSize()),
|
normalize(state->getTransformedFontSize()),
|
||||||
nEmbedSize,
|
nEmbedSize,
|
||||||
escapeLineFeed(aFont.familyName.getCString()) );
|
pEsc.get() );
|
||||||
}
|
}
|
||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
|
|
||||||
@@ -765,7 +805,8 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
|
|||||||
for( int i=0; i<uLen; ++i )
|
for( int i=0; i<uLen; ++i )
|
||||||
{
|
{
|
||||||
buf[ m_pUtf8Map->mapUnicode(u[i], buf, sizeof(buf)-1) ] = 0;
|
buf[ m_pUtf8Map->mapUnicode(u[i], buf, sizeof(buf)-1) ] = 0;
|
||||||
printf( "%s", escapeLineFeed(buf) );
|
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(buf) );
|
||||||
|
printf( "%s", pEsc.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
|
@@ -1,3 +1 @@
|
|||||||
The @WIKIEXTENSIONPRODUCTNAME@ enables you to create Wiki articles on MediaWiki servers
|
The @WIKIEXTENSIONPRODUCTNAME@ enables you to create Wiki articles on MediaWiki servers without having to know the syntax of the MediaWiki markup language. Publish your new and existing documents transparently with the Writer to a wiki page.
|
||||||
without having to know the syntax of the MediaWiki markup language. Publish
|
|
||||||
your new and existing documents transparently with the Writer to a wiki page.
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<version value="1.1"/>
|
<version value="1.1.1"/>
|
||||||
<identifier value="@WIKIEXTENSIONID@"/>
|
<identifier value="@WIKIEXTENSIONID@"/>
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en-US">@WIKIEXTENSIONPRODUCTNAME@</name>
|
<name lang="en-US">@WIKIEXTENSIONPRODUCTNAME@</name>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
<OpenOffice.org-minimal-version value="3.0" d:name="OpenOffice.org 3.0 or StarOffice 9"/>
|
<OpenOffice.org-minimal-version value="3.0" d:name="OpenOffice.org 3.0 or StarOffice 9"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<publisher>
|
<publisher>
|
||||||
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Sun Microsystems</name>
|
<name xlink:href="http://www.sun.com/software/star/staroffice/extensions.jsp?cid=925095" lang="en">Oracle</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
</description>
|
</description>
|
||||||
|