Updated for 1.2.0.7 development
This commit is contained in:
parent
32abbb9470
commit
e3a5c7abeb
159
src/Makefile.am
159
src/Makefile.am
|
@ -1,79 +1,80 @@
|
||||||
# these are the headers for your project
|
# these are the headers for your project
|
||||||
noinst_HEADERS = *.h
|
noinst_HEADERS = *.h
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# APPLICATION SECTION
|
# APPLICATION SECTION
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# this is the program that gets installed. it's name is used for all
|
# this is the program that gets installed. it's name is used for all
|
||||||
# of the other Makefile.am variables
|
# of the other Makefile.am variables
|
||||||
bin_PROGRAMS = xmlcopyeditor
|
bin_PROGRAMS = xmlcopyeditor
|
||||||
bindir = ${prefix}/bin
|
bindir = ${prefix}/bin
|
||||||
xmlcopyeditordir = ${prefix}/share/xmlcopyeditor
|
xmlcopyeditordir = ${prefix}/share/xmlcopyeditor
|
||||||
pixmapdir = /usr/share/pixmaps
|
pixmapdir = /usr/share/pixmaps
|
||||||
applicationsdir = /usr/share/applications
|
applicationsdir = /usr/share/applications
|
||||||
|
|
||||||
# the application source, library search path, and link libraries
|
# the application source, library search path, and link libraries
|
||||||
xmlcopyeditor_SOURCES = xmlcopyeditor.cpp associatedialog.cpp casehandler.cpp \
|
xmlcopyeditor_SOURCES = xmlcopyeditor.cpp associatedialog.cpp casehandler.cpp \
|
||||||
contexthandler.cpp globalreplacedialog.cpp housestyle.cpp \
|
contexthandler.cpp globalreplacedialog.cpp housestyle.cpp \
|
||||||
housestylereader.cpp myhtmlpane.cpp nocasecompare.cpp readfile.cpp \
|
housestylereader.cpp myhtmlpane.cpp nocasecompare.cpp readfile.cpp \
|
||||||
replace.cpp styledialog.cpp wraplibxml.cpp \
|
replace.cpp styledialog.cpp wraplibxml.cpp \
|
||||||
wrapregex.cpp wraptempfilename.cpp xmlassociatedtd.cpp xmlassociatexsd.cpp \
|
wrapregex.cpp wraptempfilename.cpp xmlassociatedtd.cpp xmlassociatexsd.cpp \
|
||||||
xmlassociatexsl.cpp xmlctrl.cpp xmldoc.cpp xmlencodinghandler.cpp xmlfilterreader.cpp \
|
xmlassociatexsl.cpp xmlctrl.cpp xmldoc.cpp xmlencodinghandler.cpp xmlfilterreader.cpp \
|
||||||
xmlpromptgenerator.cpp xmlrulereader.cpp xmlschemalocator.cpp xmlutf8reader.cpp xsllocator.cpp \
|
xmlpromptgenerator.cpp xmlrulereader.cpp xmlschemalocator.cpp xmlutf8reader.cpp xsllocator.cpp \
|
||||||
wrapexpat.cpp mypropertysheet.cpp rule.cpp housestylewriter.cpp myipc.cpp aboutdialog.cpp pathresolver.cpp mynotebook.cpp \
|
wrapexpat.cpp mypropertysheet.cpp rule.cpp housestylewriter.cpp myipc.cpp aboutdialog.cpp pathresolver.cpp mynotebook.cpp \
|
||||||
insertpanel.cpp xmlwordcount.cpp getword.cpp locationpanel.cpp catalogresolver.cpp getlinuxappdir.cpp \
|
insertpanel.cpp xmlwordcount.cpp getword.cpp locationpanel.cpp catalogresolver.cpp getlinuxappdir.cpp \
|
||||||
xmlparseschemans.cpp xmlshallowvalidator.cpp wrapxerces.cpp \
|
xmlparseschemans.cpp xmlshallowvalidator.cpp wrapxerces.cpp \
|
||||||
findreplacepanel.cpp commandpanel.cpp xercescatalogresolver.cpp \
|
findreplacepanel.cpp commandpanel.cpp xercescatalogresolver.cpp \
|
||||||
binaryfile.cpp xmlencodingspy.cpp wrapaspell.cpp validationthread.cpp \
|
binaryfile.cpp xmlencodingspy.cpp wrapaspell.cpp validationthread.cpp \
|
||||||
wrapdaisy.cpp exportdialog.cpp mp3album.cpp xmlprodnote.cpp \
|
wrapdaisy.cpp exportdialog.cpp mp3album.cpp xmlprodnote.cpp \
|
||||||
rulesets png rng xpm templates copying help po \
|
xmlsuppressprodnote.cpp xmlcopyimg.cpp \
|
||||||
xmlcopyeditor.spec xmlcopyeditor.png custom.xpm \
|
rulesets png rng xpm templates copying help po \
|
||||||
xmlcopyeditor.desktop
|
xmlcopyeditor.spec xmlcopyeditor.png custom.xpm \
|
||||||
xmlcopyeditor_LDFLAGS = $(WX_LIBS) \
|
xmlcopyeditor.desktop
|
||||||
-lexpat -lxslt -lxml2 -lpcre -lxerces-c $(ASPELL_LIBS) $(ENCHANT_LIBS)
|
xmlcopyeditor_LDFLAGS = $(WX_LIBS) \
|
||||||
|
-lexpat -lxslt -lxml2 -lpcre -lxerces-c $(ASPELL_LIBS) $(ENCHANT_LIBS)
|
||||||
nobase_xmlcopyeditor_DATA = png/*.png \
|
|
||||||
rulesets/*.* \
|
nobase_xmlcopyeditor_DATA = png/*.png \
|
||||||
rng/*.rng \
|
rulesets/*.* \
|
||||||
rng/*.rnc \
|
rng/*.rng \
|
||||||
rng/exclude/*.rng \
|
rng/*.rnc \
|
||||||
rng/modules/*.rng \
|
rng/exclude/*.rng \
|
||||||
xpm/*.xpm \
|
rng/modules/*.rng \
|
||||||
templates/*.xml \
|
xpm/*.xpm \
|
||||||
templates/*.dtd \
|
templates/*.xml \
|
||||||
templates/*.xsl \
|
templates/*.dtd \
|
||||||
templates/*.rss \
|
templates/*.xsl \
|
||||||
templates/*.html \
|
templates/*.rss \
|
||||||
templates/*.xtm \
|
templates/*.html \
|
||||||
templates/*.xsd \
|
templates/*.xtm \
|
||||||
templates/*.rng \
|
templates/*.xsd \
|
||||||
templates/*.lzx \
|
templates/*.rng \
|
||||||
templates/*.xlf \
|
templates/*.lzx \
|
||||||
help/*.* help/html/*.* \
|
templates/*.xlf \
|
||||||
copying/*.txt copying/boost_shared_ptr/* \
|
help/*.* help/html/*.* \
|
||||||
copying/Expat/* copying/libxml2/* copying/libxslt/* \
|
copying/*.txt copying/boost_shared_ptr/* \
|
||||||
copying/PCRE/* copying/Scintilla/* \
|
copying/Expat/* copying/libxml2/* copying/libxslt/* \
|
||||||
copying/wxStyledTextCtrl/* \
|
copying/PCRE/* copying/Scintilla/* \
|
||||||
copying/wxStEditor/* \
|
copying/wxStyledTextCtrl/* \
|
||||||
copying/xmlcopyeditor/* \
|
copying/wxStEditor/* \
|
||||||
copying/Aspell/* \
|
copying/xmlcopyeditor/* \
|
||||||
copying/Apache/LICENSE-2.0 \
|
copying/Aspell/* \
|
||||||
copying/Apache/LICENSE-2_files/* \
|
copying/Apache/LICENSE-2.0 \
|
||||||
po/sk/messages.mo \
|
copying/Apache/LICENSE-2_files/* \
|
||||||
po/sv/messages.mo \
|
po/sk/messages.mo \
|
||||||
po/fr/messages.mo \
|
po/sv/messages.mo \
|
||||||
po/de/messages.mo \
|
po/fr/messages.mo \
|
||||||
po/ru/messages.mo \
|
po/de/messages.mo \
|
||||||
po/es/messages.mo \
|
po/ru/messages.mo \
|
||||||
po/zh_CN/messages.mo \
|
po/es/messages.mo \
|
||||||
po/zh_TW/messages.mo \
|
po/zh_CN/messages.mo \
|
||||||
po/uk_UA/messages.mo \
|
po/zh_TW/messages.mo \
|
||||||
po/uk_UA/messages.mo \
|
po/uk_UA/messages.mo \
|
||||||
po/en_us/messages.po
|
po/ca/messages.mo \
|
||||||
|
po/en_us/messages.po
|
||||||
pixmap_DATA = xmlcopyeditor.png
|
|
||||||
|
pixmap_DATA = xmlcopyeditor.png
|
||||||
applications_DATA = xmlcopyeditor.desktop
|
|
||||||
|
applications_DATA = xmlcopyeditor.desktop
|
||||||
INCLUDES = -I/usr/include/libxml2 $(ENCHANT_CFLAGS)
|
|
||||||
|
INCLUDES = -I/usr/include/libxml2 $(ENCHANT_CFLAGS)
|
||||||
|
|
||||||
|
|
1445
src/Makefile.in
1445
src/Makefile.in
File diff suppressed because it is too large
Load Diff
|
@ -30,7 +30,7 @@ BinaryFile::BinaryFile ( const char *fname ) : m_data ( 0 ), m_dataLen ( 0 )
|
||||||
pFile = fopen ( fname, "rb" );
|
pFile = fopen ( fname, "rb" );
|
||||||
if ( pFile == NULL )
|
if ( pFile == NULL )
|
||||||
{
|
{
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// obtain file size
|
// obtain file size
|
||||||
|
@ -44,7 +44,7 @@ BinaryFile::BinaryFile ( const char *fname ) : m_data ( 0 ), m_dataLen ( 0 )
|
||||||
buffer = ( char* ) malloc ( sizeof ( char ) *lSize );
|
buffer = ( char* ) malloc ( sizeof ( char ) *lSize );
|
||||||
if ( buffer == NULL )
|
if ( buffer == NULL )
|
||||||
{
|
{
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy the file into the buffer:
|
// copy the file into the buffer:
|
||||||
|
@ -52,7 +52,7 @@ BinaryFile::BinaryFile ( const char *fname ) : m_data ( 0 ), m_dataLen ( 0 )
|
||||||
if ( result != lSize )
|
if ( result != lSize )
|
||||||
{
|
{
|
||||||
if ( !feof ( pFile ) )
|
if ( !feof ( pFile ) )
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the whole file is now loaded in the memory buffer. */
|
/* the whole file is now loaded in the memory buffer. */
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
XML Copy Editor
|
XML Copy Editor
|
||||||
|
|
||||||
Copyright (c) 2005-2007 Gerald Schmidt
|
Copyright (c) 2005-2007 Gerald Schmidt
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
See the GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
|
@ -134,7 +134,7 @@ ExportDialog::ExportDialog (
|
||||||
wxID_ANY,
|
wxID_ANY,
|
||||||
_ ( "Download DAISY extension" ),
|
_ ( "Download DAISY extension" ),
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
_T ( "https://sourceforge.net/projects/xml-copy-editor/files/xmlcopyeditor-daisy/xmlcopyeditor-daisy-1.0.exe/download" )
|
_T ( "https://sourceforge.net/projects/xml-copy-editor/files/xmlcopyeditor-daisy/xmlcopyeditor-daisy-1.0.1.exe/download" )
|
||||||
#else
|
#else
|
||||||
_T ( "http://xml-copy-editor.sourceforge.net" )
|
_T ( "http://xml-copy-editor.sourceforge.net" )
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -255,7 +255,7 @@ void FindReplacePanel::setReplaceVisible ( bool b )
|
||||||
|
|
||||||
void FindReplacePanel::flagNotFound ( bool b )
|
void FindReplacePanel::flagNotFound ( bool b )
|
||||||
{
|
{
|
||||||
if ( notFoundSet && b || !notFoundSet && !b )
|
if ( ( notFoundSet && b ) || ( !notFoundSet && !b ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
notFoundSet = b;
|
notFoundSet = b;
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
Binary Index=No
|
Binary Index=No
|
||||||
Compatibility=1.1 or later
|
Compatibility=1.1 or later
|
||||||
Compiled file=xmlcopyeditor.chm
|
Compiled file=xmlcopyeditor.chm
|
||||||
Contents file=Table of Contents.hhc
|
Contents file=Table_of_Contents.hhc
|
||||||
Default Font=@Arial Unicode MS,8,0
|
Default Font=@Arial Unicode MS,8,0
|
||||||
Default topic=html\features.html
|
Default topic=html\features.html
|
||||||
Display compile progress=No
|
Display compile progress=No
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -17,6 +17,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "replace.h"
|
#include "replace.h"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#ifndef STRINGSET_H
|
#ifndef STRINGSET_H
|
||||||
#define STRINGSET_H
|
#define STRINGSET_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
|
@ -137,7 +137,6 @@ StyleDialog::StyleDialog (
|
||||||
ruleSetCombo->GetSize ( &width, &height );
|
ruleSetCombo->GetSize ( &width, &height );
|
||||||
wxSize buttonSize ( 100, height );
|
wxSize buttonSize ( 100, height );
|
||||||
|
|
||||||
|
|
||||||
filterCombo = new wxComboBox (
|
filterCombo = new wxComboBox (
|
||||||
this,
|
this,
|
||||||
ID_STYLE_COMBO_FILTER,
|
ID_STYLE_COMBO_FILTER,
|
||||||
|
@ -329,6 +328,7 @@ StyleDialog::StyleDialog (
|
||||||
if ( !ruleFile.empty() )
|
if ( !ruleFile.empty() )
|
||||||
{
|
{
|
||||||
ruleFile.Replace ( _T ( ".xml" ), _T ( "" ) );
|
ruleFile.Replace ( _T ( ".xml" ), _T ( "" ) );
|
||||||
|
ruleFile.Replace ( _T ( "_" ), _T ( " " ) );
|
||||||
ruleSetCombo->Append ( wxFileNameFromPath ( ruleFile ) );
|
ruleSetCombo->Append ( wxFileNameFromPath ( ruleFile ) );
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
|
@ -336,6 +336,7 @@ StyleDialog::StyleDialog (
|
||||||
if ( ruleFile.empty() )
|
if ( ruleFile.empty() )
|
||||||
break;
|
break;
|
||||||
ruleFile.Replace ( _T ( ".xml" ), _T ( "" ) );
|
ruleFile.Replace ( _T ( ".xml" ), _T ( "" ) );
|
||||||
|
ruleFile.Replace ( _T ( "_" ), _T ( " " ) );
|
||||||
ruleSetCombo->Append ( wxFileNameFromPath ( ruleFile ) );
|
ruleSetCombo->Append ( wxFileNameFromPath ( ruleFile ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -455,6 +456,7 @@ void StyleDialog::OnReport ( wxCommandEvent& event )
|
||||||
// reconstitute short filenames
|
// reconstitute short filenames
|
||||||
wxString ruleSet, filter;
|
wxString ruleSet, filter;
|
||||||
ruleSet = ruleSetPreset + _T ( ".xml" );
|
ruleSet = ruleSetPreset + _T ( ".xml" );
|
||||||
|
ruleSet.Replace ( _(" "), _T("_") );
|
||||||
filter = filterPreset + _T ( ".xml" );
|
filter = filterPreset + _T ( ".xml" );
|
||||||
|
|
||||||
std::string ruleSetDirectoryUtf8,
|
std::string ruleSetDirectoryUtf8,
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdio>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "wrapaspell.h"
|
#include "wrapaspell.h"
|
||||||
#ifdef USE_ENCHANT
|
#ifdef USE_ENCHANT
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include "xmlcopyimg.h"
|
#include "xmlcopyimg.h"
|
||||||
#include "binaryfile.h"
|
#include "binaryfile.h"
|
||||||
#include "replace.h"
|
#include "replace.h"
|
||||||
#include "playlistrenamer.h"
|
|
||||||
#include "mp3album.h"
|
#include "mp3album.h"
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
@ -109,6 +108,9 @@ bool WrapDaisy::run (
|
||||||
{
|
{
|
||||||
// #1: convert to canonical XHTML
|
// #1: convert to canonical XHTML
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 10, _T("Preparing canonical XHTML...") ) )
|
if ( !pd->Update ( 10, _T("Preparing canonical XHTML...") ) )
|
||||||
{
|
{
|
||||||
error = _T( "Cancelled" );
|
error = _T( "Cancelled" );
|
||||||
|
@ -136,12 +138,10 @@ bool WrapDaisy::run (
|
||||||
}
|
}
|
||||||
else // no stylesheet
|
else // no stylesheet
|
||||||
{
|
{
|
||||||
try {
|
BinaryFile bf( stdFileIn.c_str() );
|
||||||
BinaryFile bf( stdFileIn.c_str() );
|
if ( !bf.getData() )
|
||||||
|
{
|
||||||
output.append ( bf.getData(), bf.getDataLen() );
|
output.append ( bf.getData(), bf.getDataLen() );
|
||||||
}
|
|
||||||
catch ( ... )
|
|
||||||
{
|
|
||||||
error = _( "Cannot read [b]" ) + fileIn + ( _("[/b]") );
|
error = _( "Cannot read [b]" ) + fileIn + ( _("[/b]") );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,8 @@ bool WrapDaisy::run (
|
||||||
if ( suppressOptional )
|
if ( suppressOptional )
|
||||||
{
|
{
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
if ( !pd->Update ( 15, _("Suppressing optional production notes...") ) )
|
if ( !pd->Update ( 15, _("Suppressing optional production notes...") ) )
|
||||||
{
|
{
|
||||||
error = _ ( "Cancelled" );
|
error = _ ( "Cancelled" );
|
||||||
|
@ -171,6 +173,8 @@ bool WrapDaisy::run (
|
||||||
{
|
{
|
||||||
// #1.5: apply quiet setting if req'd
|
// #1.5: apply quiet setting if req'd
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
if ( !pd->Update ( 20, _("De-emphasizing production notes...") ) )
|
if ( !pd->Update ( 20, _("De-emphasizing production notes...") ) )
|
||||||
{
|
{
|
||||||
error = _ ( "Cancelled" );
|
error = _ ( "Cancelled" );
|
||||||
|
@ -238,6 +242,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// copy images
|
// copy images
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 25, _("Copying images and audio files...") ) )
|
if ( !pd->Update ( 25, _("Copying images and audio files...") ) )
|
||||||
{
|
{
|
||||||
error = _ ( "Cancelled" );
|
error = _ ( "Cancelled" );
|
||||||
|
@ -270,6 +277,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// #2: convert to DTBook
|
// #2: convert to DTBook
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 40, _T("Preparing DTBook...") ) )
|
if ( !pd->Update ( 40, _T("Preparing DTBook...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -320,6 +330,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// #2.5: create EPUB version
|
// #2.5: create EPUB version
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 50, _T("Preparing ePub...") ) )
|
if ( !pd->Update ( 50, _T("Preparing ePub...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -371,6 +384,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// #2.9: convert to RTF
|
// #2.9: convert to RTF
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 60, _T("Preparing RTF...") ) )
|
if ( !pd->Update ( 60, _T("Preparing RTF...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -425,7 +441,10 @@ bool WrapDaisy::run (
|
||||||
// #2.9.5: convert to binary Word
|
// #2.9.5: convert to binary Word
|
||||||
// (Win only; otherwise create copy with *.doc extension)
|
// (Win only; otherwise create copy with *.doc extension)
|
||||||
|
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 60, _T("Preparing Word document...") ) )
|
if ( !pd->Update ( 60, _T("Preparing Word document...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -468,6 +487,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// #3: convert to full DAISY book
|
// #3: convert to full DAISY book
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 70, _T("Preparing DAISY books...") ) )
|
if ( !pd->Update ( 70, _T("Preparing DAISY books...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -521,6 +543,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
// #4: create MP3 album
|
// #4: create MP3 album
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 80, _T("Preparing MP3 album...") ) )
|
if ( !pd->Update ( 80, _T("Preparing MP3 album...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -595,6 +620,9 @@ bool WrapDaisy::run (
|
||||||
|
|
||||||
|
|
||||||
pd->ProcessPendingEvents();
|
pd->ProcessPendingEvents();
|
||||||
|
while (wxTheApp->Pending())
|
||||||
|
wxTheApp->Dispatch();
|
||||||
|
|
||||||
if ( !pd->Update ( 90, _T("Updating playlists...") ) )
|
if ( !pd->Update ( 90, _T("Updating playlists...") ) )
|
||||||
{
|
{
|
||||||
error = _T ( "Cancelled" );
|
error = _T ( "Cancelled" );
|
||||||
|
@ -621,11 +649,8 @@ bool WrapDaisy::run (
|
||||||
auto_ptr<Mp3Album> ma ( new Mp3Album() );
|
auto_ptr<Mp3Album> ma ( new Mp3Album() );
|
||||||
|
|
||||||
BinaryFile *binaryfile;
|
BinaryFile *binaryfile;
|
||||||
try
|
binaryfile = new BinaryFile ( file.c_str() );
|
||||||
{
|
if ( !binaryfile->getData() )
|
||||||
binaryfile = new BinaryFile ( file.c_str() );
|
|
||||||
}
|
|
||||||
catch ( ... )
|
|
||||||
{
|
{
|
||||||
error.Printf ( _ ( "Cannot open %s" ), file.c_str() );
|
error.Printf ( _ ( "Cannot open %s" ), file.c_str() );
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#ifndef XML_ASSOCIATE_XSD_H
|
#ifndef XML_ASSOCIATE_XSD_H
|
||||||
#define XML_ASSOCIATE_XSD_H
|
#define XML_ASSOCIATE_XSD_H
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <expat.h>
|
#include <expat.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#ifndef XML_ASSOCIATE_XSL_H
|
#ifndef XML_ASSOCIATE_XSL_H
|
||||||
#define XML_ASSOCIATE_XSL_H
|
#define XML_ASSOCIATE_XSL_H
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <expat.h>
|
#include <expat.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -1242,7 +1242,7 @@ void MyFrame::OnAbout ( wxCommandEvent& WXUNUSED ( event ) )
|
||||||
info.AddTranslator ( _ ( "Siarhei Kuchuk (Russian) <Cuchuk dot Sergey at gmail dot com>" ) );
|
info.AddTranslator ( _ ( "Siarhei Kuchuk (Russian) <Cuchuk dot Sergey at gmail dot com>" ) );
|
||||||
info.AddTranslator ( _ ( "Marcos Pérez González (Spanish) <marcos_pg at yahoo dot com>" ) );
|
info.AddTranslator ( _ ( "Marcos Pérez González (Spanish) <marcos_pg at yahoo dot com>" ) );
|
||||||
info.AddTranslator ( _ ( "Rob Elemans (Dutch) <relemans at gmail dot com>" ) );
|
info.AddTranslator ( _ ( "Rob Elemans (Dutch) <relemans at gmail dot com>" ) );
|
||||||
info.AddTranslator ( _ ( "Robert Falco Miramontes <rfalco at acett dot org>" ) );
|
info.AddTranslator ( _ ( "Robert Falc\xf3 Miramontes <rfalco at acett dot org>" ) );
|
||||||
info.SetLicense ( ABOUT_LICENSE );
|
info.SetLicense ( ABOUT_LICENSE );
|
||||||
info.SetDescription ( description );
|
info.SetDescription ( description );
|
||||||
wxAboutBox ( info );
|
wxAboutBox ( info );
|
||||||
|
@ -2727,6 +2727,7 @@ void MyFrame::OnNew ( wxCommandEvent& WXUNUSED ( event ) )
|
||||||
templateFile = wxFindNextFile();
|
templateFile = wxFindNextFile();
|
||||||
if ( templateFile.empty() )
|
if ( templateFile.empty() )
|
||||||
break;
|
break;
|
||||||
|
templateFile.Replace ( _T("_"), _T(" ") );
|
||||||
fn.Assign ( templateFile );
|
fn.Assign ( templateFile );
|
||||||
name = fn.GetName();
|
name = fn.GetName();
|
||||||
extension = fn.GetExt();
|
extension = fn.GetExt();
|
||||||
|
@ -2765,6 +2766,7 @@ void MyFrame::OnNew ( wxCommandEvent& WXUNUSED ( event ) )
|
||||||
|
|
||||||
typeSelection.Replace ( _T ( " (*" ), wxEmptyString );
|
typeSelection.Replace ( _T ( " (*" ), wxEmptyString );
|
||||||
typeSelection.Replace ( _T ( ")" ), wxEmptyString );
|
typeSelection.Replace ( _T ( ")" ), wxEmptyString );
|
||||||
|
typeSelection.Replace ( _T ( " " ), _T ( "_" ) );
|
||||||
templateFile = templateDir + typeSelection;
|
templateFile = templateDir + typeSelection;
|
||||||
std::string templateFileLocal, buffer;
|
std::string templateFileLocal, buffer;
|
||||||
templateFileLocal = templateFile.mb_str ( wxConvLocal );
|
templateFileLocal = templateFile.mb_str ( wxConvLocal );
|
||||||
|
@ -2926,25 +2928,8 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile )
|
||||||
//wxMemoryMappedFile *memorymap = NULL;
|
//wxMemoryMappedFile *memorymap = NULL;
|
||||||
BinaryFile *binaryfile = NULL;
|
BinaryFile *binaryfile = NULL;
|
||||||
|
|
||||||
try
|
binaryfile = new BinaryFile ( ( const char * ) fileName.mb_str ( wxConvLocal ) );
|
||||||
{
|
if ( !binaryfile->getData() )
|
||||||
binaryfile = new BinaryFile ( ( const char * ) fileName.mb_str ( wxConvLocal ) );
|
|
||||||
/*
|
|
||||||
memorymap = new wxMemoryMappedFile(
|
|
||||||
fileName,
|
|
||||||
true, // readOnly
|
|
||||||
true // fread
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
catch (wxMemoryMappedFileEmptyException&)
|
|
||||||
{
|
|
||||||
fileEmpty = true;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
catch ( ... )
|
|
||||||
{
|
{
|
||||||
wxString message;
|
wxString message;
|
||||||
message.Printf ( _ ( "Cannot open %s" ), fileName.c_str() );
|
message.Printf ( _ ( "Cannot open %s" ), fileName.c_str() );
|
||||||
|
@ -2952,6 +2937,20 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile )
|
||||||
statusProgress ( wxEmptyString );
|
statusProgress ( wxEmptyString );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
memorymap = new wxMemoryMappedFile(
|
||||||
|
fileName,
|
||||||
|
true, // readOnly
|
||||||
|
true // fread
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
catch (wxMemoryMappedFileEmptyException&)
|
||||||
|
{
|
||||||
|
fileEmpty = true;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
bool isUtf8 = false;
|
bool isUtf8 = false;
|
||||||
|
|
||||||
|
@ -5369,9 +5368,11 @@ void MyFrame::updateFileMenu ( bool deleteExisting )
|
||||||
wxMenuItem *saveAsItem =
|
wxMenuItem *saveAsItem =
|
||||||
new wxMenuItem ( NULL, wxID_SAVEAS, _ ( "S&ave As...\tF12" ), _ ( "Save As..." ) );
|
new wxMenuItem ( NULL, wxID_SAVEAS, _ ( "S&ave As...\tF12" ), _ ( "Save As..." ) );
|
||||||
saveAsItem->SetBitmap ( wxNullBitmap );
|
saveAsItem->SetBitmap ( wxNullBitmap );
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxMenuItem *exportItem =
|
wxMenuItem *exportItem =
|
||||||
new wxMenuItem ( NULL, ID_EXPORT, _ ( "&DAISY Export..." ), _ ( "DAISY Export..." ) );
|
new wxMenuItem ( NULL, ID_EXPORT, _ ( "&DAISY Export..." ), _ ( "DAISY Export..." ) );
|
||||||
exportItem->SetBitmap ( wxNullBitmap );
|
exportItem->SetBitmap ( wxNullBitmap );
|
||||||
|
#endif
|
||||||
wxMenuItem *reloadItem =
|
wxMenuItem *reloadItem =
|
||||||
new wxMenuItem ( NULL, ID_RELOAD, _ ( "&Reload" ), _ ( "Reload" ) );
|
new wxMenuItem ( NULL, ID_RELOAD, _ ( "&Reload" ), _ ( "Reload" ) );
|
||||||
reloadItem->SetBitmap ( wxNullBitmap );
|
reloadItem->SetBitmap ( wxNullBitmap );
|
||||||
|
@ -5415,9 +5416,9 @@ void MyFrame::updateFileMenu ( bool deleteExisting )
|
||||||
fileMenu->Append ( printSetupItem );
|
fileMenu->Append ( printSetupItem );
|
||||||
fileMenu->Append ( printPreviewItem );
|
fileMenu->Append ( printPreviewItem );
|
||||||
fileMenu->Append ( printItem );
|
fileMenu->Append ( printItem );
|
||||||
|
#ifdef __WXMSW__
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
fileMenu->Append ( exportItem );
|
fileMenu->Append ( exportItem );
|
||||||
#ifdef __WXMSW__
|
|
||||||
fileMenu->Append ( importMSWordItem );
|
fileMenu->Append ( importMSWordItem );
|
||||||
fileMenu->Append ( exportMSWordItem );
|
fileMenu->Append ( exportMSWordItem );
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=XML Copy Editor
|
Name=XML Copy Editor
|
||||||
GenericName=XML Editor
|
GenericName=XML Editor
|
||||||
Comment=Edit XML documents
|
Comment=Edit XML documents
|
||||||
Exec=xmlcopyeditor %U
|
Exec=xmlcopyeditor %U
|
||||||
Icon=xmlcopyeditor.png
|
Icon=xmlcopyeditor.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=text/xml;
|
MimeType=text/xml;
|
||||||
Categories=Application;Development;TextEditor;
|
Categories=Application;Development;TextEditor;
|
||||||
|
|
|
@ -1,40 +1,40 @@
|
||||||
%define name xmlcopyeditor
|
%define name xmlcopyeditor
|
||||||
%define version 1.1.0.6
|
%define version 1.1.0.6
|
||||||
%define release 1
|
%define release 1
|
||||||
%define author Gerald Schmidt <gnschmidt@users.sourceforge.net>
|
%define author Gerald Schmidt <gnschmidt@users.sourceforge.net>
|
||||||
%define prefix /usr/local
|
%define prefix /usr/local
|
||||||
|
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Prefix: %{prefix}
|
Prefix: %{prefix}
|
||||||
Packager: %{author}
|
Packager: %{author}
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
URL: http://xml-copy-editor.sourceforge.net
|
URL: http://xml-copy-editor.sourceforge.net
|
||||||
Vendor: XML Copy Editor Project
|
Vendor: XML Copy Editor Project
|
||||||
Summary: XML editor
|
Summary: XML editor
|
||||||
|
|
||||||
%description
|
%description
|
||||||
XML Copy Editor is a fast, free, validating XML editor.
|
XML Copy Editor is a fast, free, validating XML editor.
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --with-wx-config="wx-config --unicode" --datadir="%{prefix}/share"
|
./configure --with-wx-config="wx-config --unicode" --datadir="%{prefix}/share"
|
||||||
make
|
make
|
||||||
strip src/xmlcopyeditor
|
strip src/xmlcopyeditor
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{prefix}/bin/xmlcopyeditor
|
%{prefix}/bin/xmlcopyeditor
|
||||||
%{prefix}/share/xmlcopyeditor/*
|
%{prefix}/share/xmlcopyeditor/*
|
||||||
/usr/share/applications/xmlcopyeditor.desktop
|
/usr/share/applications/xmlcopyeditor.desktop
|
||||||
/usr/share/pixmaps/xmlcopyeditor.png
|
/usr/share/pixmaps/xmlcopyeditor.png
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#define ABOUT_COPYRIGHT _("Copyright © 2005-2009 Gerald Schmidt <gnschmidt@users.sourceforge.net>")
|
#define ABOUT_COPYRIGHT _("Copyright © 2005-2009 Gerald Schmidt <gnschmidt@users.sourceforge.net>")
|
||||||
#define ABOUT_DESCRIPTION _("\nXML Copy Editor is free software released under the GNU\nGeneral Public License.\n\nMany thanks are due to Tim van Niekerk, Matt Smigielski,\nDavid Scholl, Jan Merka, Marcus Bingenheimer, Roberto\nRosselli Del Turco, Ken Zalewski, C.J. Meidlinger,\nThomas Zajic, Viliam Búr, David Håsäther, François\nBadier, Thomas Wenzel, Roger Sperberg, SHiNE CsyFeK,\nHSU PICHAN, YANG SHUFUN, CHENG PAULIAN,\nCHUANG KUO-PING, Justin Dearing, Serhij Dubyk,\nAntonio Angelo, Jose Luis Rivero, Siarhei Kuchuk,\nIan Abbott, Kev James, Marcos Pérez González, Anh\nTrinh, Rob Elemans and Robert Falco Miramontes.")
|
#define ABOUT_DESCRIPTION _("\nXML Copy Editor is free software released under the GNU\nGeneral Public License.\n\nMany thanks are due to Tim van Niekerk, Matt Smigielski,\nDavid Scholl, Jan Merka, Marcus Bingenheimer, Roberto\nRosselli Del Turco, Ken Zalewski, C.J. Meidlinger,\nThomas Zajic, Viliam Búr, David Håsäther, François\nBadier, Thomas Wenzel, Roger Sperberg, SHiNE CsyFeK,\nHSU PICHAN, YANG SHUFUN, CHENG PAULIAN,\nCHUANG KUO-PING, Justin Dearing, Serhij Dubyk,\nAntonio Angelo, Jose Luis Rivero, Siarhei Kuchuk,\nIan Abbott, Kev James, Marcos Pérez González, Anh\nTrinh, Rob Elemans and Robert Falc\xf3 Miramontes.")
|
||||||
#define ABOUT_LICENSE _T(\
|
#define ABOUT_LICENSE _T(\
|
||||||
"This program is free software; you can redistribute it\n"\
|
"This program is free software; you can redistribute it\n"\
|
||||||
"and/or modify it under the terms of the GNU General Public\n"\
|
"and/or modify it under the terms of the GNU General Public\n"\
|
||||||
|
|
|
@ -135,6 +135,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
|
||||||
{
|
{
|
||||||
wxString cmd;
|
wxString cmd;
|
||||||
cmd += IMAGEMAGICK_CONVERT_PATH;
|
cmd += IMAGEMAGICK_CONVERT_PATH;
|
||||||
|
cmd += _T(" -resize 720x1440>");
|
||||||
cmd += _T(" \"");
|
cmd += _T(" \"");
|
||||||
cmd += wideFile;
|
cmd += wideFile;
|
||||||
cmd += _T("\" \"");
|
cmd += _T("\" \"");
|
||||||
|
@ -156,7 +157,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
|
||||||
} // img + src
|
} // img + src
|
||||||
else if ( !strcmp ( el, "a" ) &&
|
else if ( !strcmp ( el, "a" ) &&
|
||||||
!strcmp (*attr, "href") &&
|
!strcmp (*attr, "href") &&
|
||||||
strstr ( value.c_str(), ".mp3" ) || strstr ( value.c_str(), ".pdf" ) )
|
( strstr ( value.c_str(), ".mp3" ) || strstr ( value.c_str(), ".pdf" ) ) )
|
||||||
{
|
{
|
||||||
wideFile = wxString ( value.c_str(), wxConvUTF8, value.size() );
|
wideFile = wxString ( value.c_str(), wxConvUTF8, value.size() );
|
||||||
wxFileName fn ( wideFile );
|
wxFileName fn ( wideFile );
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#ifndef XML_PRODNOTE_H
|
#ifndef XML_PRODNOTE_H
|
||||||
#define XML_PRODNOTE_H
|
#define XML_PRODNOTE_H
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <expat.h>
|
#include <expat.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -31,7 +31,9 @@
|
||||||
#include "catalogresolver.h"
|
#include "catalogresolver.h"
|
||||||
|
|
||||||
// Xerces-C req'd for Schema parsing
|
// Xerces-C req'd for Schema parsing
|
||||||
|
#ifdef __WXMSW__
|
||||||
#define XERCES_TMPLSINC
|
#define XERCES_TMPLSINC
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <xercesc/util/NameIdPool.hpp>
|
#include <xercesc/util/NameIdPool.hpp>
|
||||||
#include <xercesc/util/PlatformUtils.hpp>
|
#include <xercesc/util/PlatformUtils.hpp>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef XML_SUPPRESS_PRODNOTE_H
|
#ifndef XML_SUPPRESS_PRODNOTE_H
|
||||||
#define XML_SUPPRESS_PRODNOTE_H
|
#define XML_SUPPRESS_PRODNOTE_H
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <expat.h>
|
#include <expat.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
/* XPM */
|
/* XPM */
|
||||||
|
#ifdef __WXMSW__
|
||||||
static char * appicon_xpm[] = {
|
static char * appicon_xpm[] = {
|
||||||
|
#else
|
||||||
|
static const char * appicon_xpm[] = {
|
||||||
|
#endif
|
||||||
|
|
||||||
"16 16 238 2",
|
"16 16 238 2",
|
||||||
" c #742719",
|
" c #742719",
|
||||||
". c #9A3320",
|
". c #9A3320",
|
||||||
|
|
|
@ -46,7 +46,11 @@ void XMLCALL XslLocator::processingInstructionHandler (
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char *value, *iterator;
|
char *value, *iterator;
|
||||||
|
#ifdef __WXMSW__
|
||||||
value = strstr ( ( const char * ) data, "href=" );
|
value = strstr ( ( const char * ) data, "href=" );
|
||||||
|
#else
|
||||||
|
value = ( char *) strstr ( data, "href=" );
|
||||||
|
#endif
|
||||||
if ( !value || strlen ( value ) < 7 )
|
if ( !value || strlen ( value ) < 7 )
|
||||||
return;
|
return;
|
||||||
value += 6;
|
value += 6;
|
||||||
|
|
Loading…
Reference in New Issue