Kaydet (Commit) 143f0b89 authored tarafından Peter Jentsch's avatar Peter Jentsch Kaydeden (comit) Caolán McNamara

removed obsolete xml validation service and xml source view.

Change-Id: I637531c09b391ef458ae6395518129d981662ff2
Reviewed-on: https://gerrit.libreoffice.org/1166Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c8209ae6
...@@ -37,7 +37,6 @@ $(eval $(call gb_SrsTarget_add_files,filter/xsltdlg,\ ...@@ -37,7 +37,6 @@ $(eval $(call gb_SrsTarget_add_files,filter/xsltdlg,\
filter/source/xsltdialog/xmlfiltertabdialog.src \ filter/source/xsltdialog/xmlfiltertabdialog.src \
filter/source/xsltdialog/xmlfiltertabpagebasic.src \ filter/source/xsltdialog/xmlfiltertabpagebasic.src \
filter/source/xsltdialog/xmlfiltertabpagexslt.src \ filter/source/xsltdialog/xmlfiltertabpagexslt.src \
filter/source/xsltdialog/xmlfileview.src \
filter/source/xsltdialog/xmlfilterdialogstrings.src \ filter/source/xsltdialog/xmlfilterdialogstrings.src \
)) ))
......
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(eval $(call gb_Jar_Jar,XSLTValidate))
$(eval $(call gb_Jar_use_jars,XSLTValidate,\
ridl \
unoil \
jurt \
juh \
))
#$(eval $(call gb_Jar_use_externals,XSLTValidate,\
xml-apis \
xalan \
))
$(eval $(call gb_Jar_set_componentfile,XSLTValidate,filter/source/xsltvalidate/XSLTValidate,OOO))
$(eval $(call gb_Jar_set_manifest,XSLTValidate,$(SRCDIR)/filter/source/xsltvalidate/Manifest))
$(eval $(call gb_Jar_set_packageroot,XSLTValidate,XSLTValidate.class))
$(eval $(call gb_Jar_add_sourcefiles,XSLTValidate,\
filter/source/xsltvalidate/XSLTValidate \
))
# vim: set noet sw=4 ts=4:
...@@ -47,7 +47,6 @@ $(eval $(call gb_Library_use_libraries,xsltdlg,\ ...@@ -47,7 +47,6 @@ $(eval $(call gb_Library_use_libraries,xsltdlg,\
$(eval $(call gb_Library_add_exception_objects,xsltdlg,\ $(eval $(call gb_Library_add_exception_objects,xsltdlg,\
filter/source/xsltdialog/typedetectionexport \ filter/source/xsltdialog/typedetectionexport \
filter/source/xsltdialog/typedetectionimport \ filter/source/xsltdialog/typedetectionimport \
filter/source/xsltdialog/xmlfileview \
filter/source/xsltdialog/xmlfilterdialogcomponent \ filter/source/xsltdialog/xmlfilterdialogcomponent \
filter/source/xsltdialog/xmlfilterjar \ filter/source/xsltdialog/xmlfilterjar \
filter/source/xsltdialog/xmlfiltersettingsdialog \ filter/source/xsltdialog/xmlfiltersettingsdialog \
......
...@@ -76,7 +76,6 @@ endif ...@@ -76,7 +76,6 @@ endif
ifneq ($(SOLAR_JAVA),) ifneq ($(SOLAR_JAVA),)
$(eval $(call gb_Module_add_targets,filter,\ $(eval $(call gb_Module_add_targets,filter,\
Jar_XSLTValidate \
)) ))
endif endif
......
...@@ -30,8 +30,6 @@ hidspecial HID_XML_FILTER_INTERFACE_NAME { HelpId = HID_XML_FILTE ...@@ -30,8 +30,6 @@ hidspecial HID_XML_FILTER_INTERFACE_NAME { HelpId = HID_XML_FILTE
hidspecial HID_XML_FILTER_EXTENSION { HelpId = HID_XML_FILTER_EXTENSION; }; hidspecial HID_XML_FILTER_EXTENSION { HelpId = HID_XML_FILTER_EXTENSION; };
hidspecial HID_XML_FILTER_DESCRIPTION { HelpId = HID_XML_FILTER_DESCRIPTION; }; hidspecial HID_XML_FILTER_DESCRIPTION { HelpId = HID_XML_FILTER_DESCRIPTION; };
hidspecial HID_XML_FILTER_DOCTYPE { HelpId = HID_XML_FILTER_DOCTYPE; }; hidspecial HID_XML_FILTER_DOCTYPE { HelpId = HID_XML_FILTER_DOCTYPE; };
hidspecial HID_XML_FILTER_DTD { HelpId = HID_XML_FILTER_DTD; };
hidspecial HID_XML_FILTER_DTD_BROWSE { HelpId = HID_XML_FILTER_DTD_BROWSE; };
hidspecial HID_XML_FILTER_EXPORT_XSLT { HelpId = HID_XML_FILTER_EXPORT_XSLT; }; hidspecial HID_XML_FILTER_EXPORT_XSLT { HelpId = HID_XML_FILTER_EXPORT_XSLT; };
hidspecial HID_XML_FILTER_EXPORT_XSLT_BROWSE { HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE; }; hidspecial HID_XML_FILTER_EXPORT_XSLT_BROWSE { HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE; };
hidspecial HID_XML_FILTER_IMPORT_XSLT { HelpId = HID_XML_FILTER_IMPORT_XSLT; }; hidspecial HID_XML_FILTER_IMPORT_XSLT { HelpId = HID_XML_FILTER_IMPORT_XSLT; };
......
...@@ -196,7 +196,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML ...@@ -196,7 +196,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML
sValue += sDelim; sValue += sDelim;
sValue += createRelativeURL( pFilter->maFilterName, pFilter->maExportXSLT ); sValue += createRelativeURL( pFilter->maFilterName, pFilter->maExportXSLT );
sValue += sDelim; sValue += sDelim;
sValue += createRelativeURL( pFilter->maFilterName, pFilter->maDTD ); // entry DTD obsolete and removed, but delimiter kept
sValue += sDelim; sValue += sDelim;
sValue += pFilter->maComment; sValue += pFilter->maComment;
sValue += sComma; sValue += sComma;
......
...@@ -175,7 +175,6 @@ filter_info_impl* TypeDetectionImporter::createFilterForNode( Node * pNode ) ...@@ -175,7 +175,6 @@ filter_info_impl* TypeDetectionImporter::createFilterForNode( Node * pNode )
pFilter->maExportService = getSubdata( 3, aDelim, aFilterUserData ); pFilter->maExportService = getSubdata( 3, aDelim, aFilterUserData );
pFilter->maImportXSLT = getSubdata( 4, aDelim, aFilterUserData ); pFilter->maImportXSLT = getSubdata( 4, aDelim, aFilterUserData );
pFilter->maExportXSLT = getSubdata( 5, aDelim, aFilterUserData ); pFilter->maExportXSLT = getSubdata( 5, aDelim, aFilterUserData );
pFilter->maDTD = getSubdata( 6, aDelim, aFilterUserData );
pFilter->maComment = getSubdata( 7, aDelim, aFilterUserData ); pFilter->maComment = getSubdata( 7, aDelim, aFilterUserData );
......
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <com/sun/star/xml/sax/XErrorHandler.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <com/sun/star/xml/XImportFilter.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <comphelper/oslfile2streamwrap.hxx>
#include <rtl/tencinfo.h>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
#include <vcl/textview.hxx>
#include <vcl/scrbar.hxx>
#include <tools/stream.hxx>
#include <tools/time.hxx>
#include <osl/file.hxx>
#include <vcl/msgbox.hxx>
#include <svtools/colorcfg.hxx>
#include <svtools/htmltokn.h>
#include <vcl/txtattr.hxx>
#include "xmlfilterdialogstrings.hrc"
#include "xmlfiltersettingsdialog.hxx"
#include "xmlfileview.hxx"
#include "xmlfileview.hrc"
#include "xmlfilterhelpids.hrc"
#include <deque>
using namespace osl;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::uno;
using namespace com::sun::star::io;
using namespace com::sun::star::xml;
using namespace com::sun::star::xml::sax;
using ::rtl::OUString;
struct SwTextPortion
{
sal_uInt16 nLine;
sal_uInt16 nStart, nEnd;
svtools::ColorConfigEntry eType;
};
typedef std::deque<SwTextPortion> SwTextPortions;
void TextViewOutWin::DataChanged( const DataChangedEvent& rDCEvt )
{
Window::DataChanged( rDCEvt );
switch( rDCEvt.GetType() )
{
case DATACHANGED_SETTINGS:
// den Settings abgefragt werden.
if( rDCEvt.GetFlags() & SETTINGS_STYLE )
{
const Color &rCol = GetSettings().GetStyleSettings().GetWindowColor();
SetBackground( rCol );
Font aFont( pTextView->GetTextEngine()->GetFont() );
aFont.SetFillColor( rCol );
pTextView->GetTextEngine()->SetFont( aFont );
}
break;
}
}
void TextViewOutWin::MouseMove( const MouseEvent &rEvt )
{
if ( pTextView )
pTextView->MouseMove( rEvt );
}
void TextViewOutWin::MouseButtonUp( const MouseEvent &rEvt )
{
if ( pTextView )
pTextView->MouseButtonUp( rEvt );
}
void TextViewOutWin::MouseButtonDown( const MouseEvent &rEvt )
{
GrabFocus();
if ( pTextView )
pTextView->MouseButtonDown( rEvt );
}
void TextViewOutWin::Command( const CommandEvent& rCEvt )
{
switch(rCEvt.GetCommand())
{
case COMMAND_CONTEXTMENU:
case COMMAND_WHEEL:
case COMMAND_STARTAUTOSCROLL:
case COMMAND_AUTOSCROLL:
break;
default:
if ( pTextView )
pTextView->Command( rCEvt );
else
Window::Command(rCEvt);
}
}
void TextViewOutWin::KeyInput( const KeyEvent& rKEvt )
{
if(!TextEngine::DoesKeyChangeText( rKEvt ))
pTextView->KeyInput( rKEvt );
}
void TextViewOutWin::Paint( const Rectangle& rRect )
{
pTextView->Paint( rRect );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _XMLFILEVIEWDIALOG_HRC_
#define _XMLFILEVIEWDIALOG_HRC_
#include "xmlfiltercommon.hrc"
#define PB_VALIDATE 2
#endif
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _XMLFILEVIEW_HXX
#define _XMLFILEVIEW_HXX
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <svl/lstner.hxx>
#include <vcl/timer.hxx>
#include <vcl/xtextedt.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/ctrl.hxx>
#include <vcl/button.hxx>
#include <vcl/lstbox.hxx>
class TextView;
class DataChangedEvent;
class TextViewOutWin : public Window
{
TextView* pTextView;
protected:
virtual void Paint( const Rectangle& );
virtual void KeyInput( const KeyEvent& rKeyEvt );
virtual void MouseMove( const MouseEvent& rMEvt );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void MouseButtonUp( const MouseEvent& rMEvt );
virtual void Command( const CommandEvent& rCEvt );
virtual void DataChanged( const DataChangedEvent& );
public:
TextViewOutWin(Window* pParent, WinBits nBits) :
Window(pParent, nBits), pTextView(0){}
void SetTextView( TextView* pView ) {pTextView = pView;}
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "xmlfileview.hrc"
#include "xmlfilterhelpids.hrc"
#define DIALOG_WIDTH 500
#define DIALOG_HEIGHT 400
WorkWindow DLG_XML_SOURCE_FILE_DIALOG
{
Size = MAP_APPFONT( DIALOG_WIDTH, DIALOG_HEIGHT );
HelpId = HID_XML_SOURCE_FILE_DIALOG;
OutputSize = TRUE ;
SVLook = TRUE ;
Sizeable = TRUE ;
Minable = TRUE ;
Maxable = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Text [ en-US ] = "XML Filter output" ;
PushButton PB_VALIDATE
{
Pos = MAP_APPFONT ( 6 , 6 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
TabStop = TRUE ;
HelpId = HID_XML_SOURCE_FILE_VALIDATE;
Text [ en-US ] = "~Validate";
};
};
...@@ -54,7 +54,6 @@ public: ...@@ -54,7 +54,6 @@ public:
rtl::OUString maInterfaceName; rtl::OUString maInterfaceName;
rtl::OUString maComment; rtl::OUString maComment;
rtl::OUString maExtension; rtl::OUString maExtension;
rtl::OUString maDTD;
rtl::OUString maExportXSLT; rtl::OUString maExportXSLT;
rtl::OUString maImportXSLT; rtl::OUString maImportXSLT;
rtl::OUString maImportTemplate; rtl::OUString maImportTemplate;
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#define STR_ERROR_FILTER_NAME_EXISTS (RID_XSLT_DIALOG_START + 15) #define STR_ERROR_FILTER_NAME_EXISTS (RID_XSLT_DIALOG_START + 15)
#define STR_ERROR_TYPE_NAME_EXISTS (RID_XSLT_DIALOG_START + 16) #define STR_ERROR_TYPE_NAME_EXISTS (RID_XSLT_DIALOG_START + 16)
#define STR_ERROR_DTD_NOT_FOUND (RID_XSLT_DIALOG_START + 17)
#define STR_ERROR_EXPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 18) #define STR_ERROR_EXPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 18)
#define STR_ERROR_IMPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 19) #define STR_ERROR_IMPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 19)
#define STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND (RID_XSLT_DIALOG_START + 20) #define STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND (RID_XSLT_DIALOG_START + 20)
......
...@@ -104,11 +104,6 @@ String STR_ERROR_TYPE_NAME_EXISTS ...@@ -104,11 +104,6 @@ String STR_ERROR_TYPE_NAME_EXISTS
Text [ en-US ] = "The name for the user interface '%s1' is already used by the XML filter '%s2'. Please enter a different name."; Text [ en-US ] = "The name for the user interface '%s1' is already used by the XML filter '%s2'. Please enter a different name.";
}; };
String STR_ERROR_DTD_NOT_FOUND
{
Text [ en-US ] = "The DTD could not be found. Please enter a valid path.";
};
String STR_ERROR_EXPORT_XSLT_NOT_FOUND String STR_ERROR_EXPORT_XSLT_NOT_FOUND
{ {
Text [ en-US ] = "The XSLT for export cannot be found. Please enter a valid path."; Text [ en-US ] = "The XSLT for export cannot be found. Please enter a valid path.";
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#define _XMLFILTERHELPIDS_HRC_ #define _XMLFILTERHELPIDS_HRC_
#define HID_XML_SOURCE_FILE_DIALOG "FILTER_HID_XML_SOURCE_FILE_DIALOG" #define HID_XML_SOURCE_FILE_DIALOG "FILTER_HID_XML_SOURCE_FILE_DIALOG"
#define HID_XML_SOURCE_FILE_VALIDATE "FILTER_HID_XML_SOURCE_FILE_VALIDATE"
#define HID_XML_FILTER_TABDIALOG "FILTER_HID_XML_FILTER_TABDIALOG" #define HID_XML_FILTER_TABDIALOG "FILTER_HID_XML_FILTER_TABDIALOG"
#define HID_XML_FILTER_TABPAGE_BASIC "FILTER_HID_XML_FILTER_TABPAGE_BASIC" #define HID_XML_FILTER_TABPAGE_BASIC "FILTER_HID_XML_FILTER_TABPAGE_BASIC"
...@@ -30,8 +29,6 @@ ...@@ -30,8 +29,6 @@
#define HID_XML_FILTER_EXTENSION "FILTER_HID_XML_FILTER_EXTENSION" #define HID_XML_FILTER_EXTENSION "FILTER_HID_XML_FILTER_EXTENSION"
#define HID_XML_FILTER_DESCRIPTION "FILTER_HID_XML_FILTER_DESCRIPTION" #define HID_XML_FILTER_DESCRIPTION "FILTER_HID_XML_FILTER_DESCRIPTION"
#define HID_XML_FILTER_DOCTYPE "FILTER_HID_XML_FILTER_DOCTYPE" #define HID_XML_FILTER_DOCTYPE "FILTER_HID_XML_FILTER_DOCTYPE"
#define HID_XML_FILTER_DTD "FILTER_HID_XML_FILTER_DTD"
#define HID_XML_FILTER_DTD_BROWSE "FILTER_HID_XML_FILTER_DTD_BROWSE"
#define HID_XML_FILTER_NEEDS_XSLT2 "FILTER_HID_XML_FILTER_NEEDS_XSLT2" #define HID_XML_FILTER_NEEDS_XSLT2 "FILTER_HID_XML_FILTER_NEEDS_XSLT2"
#define HID_XML_FILTER_EXPORT_XSLT "FILTER_HID_XML_FILTER_EXPORT_XSLT" #define HID_XML_FILTER_EXPORT_XSLT "FILTER_HID_XML_FILTER_EXPORT_XSLT"
#define HID_XML_FILTER_EXPORT_XSLT_BROWSE "FILTER_HID_XML_FILTER_EXPORT_XSLT_BROWSE" #define HID_XML_FILTER_EXPORT_XSLT_BROWSE "FILTER_HID_XML_FILTER_EXPORT_XSLT_BROWSE"
......
...@@ -65,7 +65,6 @@ XMLFilterJarHelper::XMLFilterJarHelper( Reference< XMultiServiceFactory >& xMSF ...@@ -65,7 +65,6 @@ XMLFilterJarHelper::XMLFilterJarHelper( Reference< XMultiServiceFactory >& xMSF
: mxMSF( xMSF ), : mxMSF( xMSF ),
sVndSunStarPackage( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.Package:" ) ), sVndSunStarPackage( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.Package:" ) ),
sXSLTPath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/xslt/" ) ), sXSLTPath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/xslt/" ) ),
sDTDPath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/dtd/" ) ),
sTemplatePath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/template/") ), sTemplatePath( RTL_CONSTASCII_USTRINGPARAM( "$(user)/template/") ),
sSpecialConfigManager( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.config.SpecialConfigManager" ) ), sSpecialConfigManager( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.config.SpecialConfigManager" ) ),
sPump( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.io.Pump" ) ), sPump( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.io.Pump" ) ),
...@@ -78,7 +77,6 @@ XMLFilterJarHelper::XMLFilterJarHelper( Reference< XMultiServiceFactory >& xMSF ...@@ -78,7 +77,6 @@ XMLFilterJarHelper::XMLFilterJarHelper( Reference< XMultiServiceFactory >& xMSF
{ {
sProgPath = xCfgMgr->substituteVariables( sProgPath ); sProgPath = xCfgMgr->substituteVariables( sProgPath );
sXSLTPath = xCfgMgr->substituteVariables( sXSLTPath ); sXSLTPath = xCfgMgr->substituteVariables( sXSLTPath );
sDTDPath = xCfgMgr->substituteVariables( sDTDPath );
sTemplatePath = xCfgMgr->substituteVariables( sTemplatePath ); sTemplatePath = xCfgMgr->substituteVariables( sTemplatePath );
} }
} }
...@@ -192,9 +190,6 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt ...@@ -192,9 +190,6 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt
if( xFilterRoot.is() ) if( xFilterRoot.is() )
{ {
if( !pFilter->maDTD.isEmpty() )
addFile( xFilterRoot, xFactory, pFilter->maDTD );
if( !pFilter->maExportXSLT.isEmpty() ) if( !pFilter->maExportXSLT.isEmpty() )
addFile( xFilterRoot, xFactory, pFilter->maExportXSLT ); addFile( xFilterRoot, xFactory, pFilter->maExportXSLT );
try try
...@@ -326,10 +321,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect ...@@ -326,10 +321,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect
bool XMLFilterJarHelper::copyFiles( Reference< XHierarchicalNameAccess > xIfc, filter_info_impl* pFilter ) bool XMLFilterJarHelper::copyFiles( Reference< XHierarchicalNameAccess > xIfc, filter_info_impl* pFilter )
{ {
bool bOk = copyFile( xIfc, pFilter->maDTD, sDTDPath ); bool bOk = copyFile( xIfc, pFilter->maExportXSLT, sXSLTPath );
if( bOk )
bOk = copyFile( xIfc, pFilter->maExportXSLT, sXSLTPath );
if( bOk ) if( bOk )
bOk = copyFile( xIfc, pFilter->maImportXSLT, sXSLTPath ); bOk = copyFile( xIfc, pFilter->maImportXSLT, sXSLTPath );
......
...@@ -47,7 +47,6 @@ private: ...@@ -47,7 +47,6 @@ private:
::rtl::OUString sVndSunStarPackage; ::rtl::OUString sVndSunStarPackage;
::rtl::OUString sXSLTPath; ::rtl::OUString sXSLTPath;
::rtl::OUString sDTDPath;
::rtl::OUString sTemplatePath; ::rtl::OUString sTemplatePath;
::rtl::OUString sSpecialConfigManager; ::rtl::OUString sSpecialConfigManager;
::rtl::OUString sPump; ::rtl::OUString sPump;
......
...@@ -1144,8 +1144,6 @@ void XMLFilterSettingsDialog::initFilterList() ...@@ -1144,8 +1144,6 @@ void XMLFilterSettingsDialog::initFilterList()
pTempFilter->maExportService = aUserData[3]; pTempFilter->maExportService = aUserData[3];
pTempFilter->maImportXSLT = aUserData[4]; pTempFilter->maImportXSLT = aUserData[4];
pTempFilter->maExportXSLT = aUserData[5]; pTempFilter->maExportXSLT = aUserData[5];
if( aUserData.getLength() >= 7 )
pTempFilter->maDTD = aUserData[6];
if( aUserData.getLength() >= 8 ) if( aUserData.getLength() >= 8 )
pTempFilter->maComment = aUserData[7]; pTempFilter->maComment = aUserData[7];
...@@ -1578,7 +1576,6 @@ filter_info_impl::filter_info_impl( const filter_info_impl& rInfo ) : ...@@ -1578,7 +1576,6 @@ filter_info_impl::filter_info_impl( const filter_info_impl& rInfo ) :
maInterfaceName( rInfo.maInterfaceName ), maInterfaceName( rInfo.maInterfaceName ),
maComment( rInfo.maComment ), maComment( rInfo.maComment ),
maExtension( rInfo.maExtension ), maExtension( rInfo.maExtension ),
maDTD( rInfo.maDTD ),
maExportXSLT( rInfo.maExportXSLT ), maExportXSLT( rInfo.maExportXSLT ),
maImportXSLT( rInfo.maImportXSLT ), maImportXSLT( rInfo.maImportXSLT ),
maImportTemplate( rInfo.maImportTemplate ), maImportTemplate( rInfo.maImportTemplate ),
...@@ -1605,7 +1602,6 @@ int filter_info_impl::operator==( const filter_info_impl& r ) const ...@@ -1605,7 +1602,6 @@ int filter_info_impl::operator==( const filter_info_impl& r ) const
maComment != r.maComment || maComment != r.maComment ||
maExtension != r.maExtension || maExtension != r.maExtension ||
maDocType != r.maDocType || maDocType != r.maDocType ||
maDTD != r.maDTD ||
maExportXSLT != r.maExportXSLT || maExportXSLT != r.maExportXSLT ||
maImportXSLT != r.maImportXSLT || maImportXSLT != r.maImportXSLT ||
maExportService != r.maExportService || maExportService != r.maExportService ||
...@@ -1632,7 +1628,6 @@ Sequence< OUString > filter_info_impl::getFilterUserData() const ...@@ -1632,7 +1628,6 @@ Sequence< OUString > filter_info_impl::getFilterUserData() const
aUserData[3] = maExportService; aUserData[3] = maExportService;
aUserData[4] = maImportXSLT; aUserData[4] = maImportXSLT;
aUserData[5] = maExportXSLT; aUserData[5] = maExportXSLT;
aUserData[6] = maDTD;
aUserData[7] = maComment; aUserData[7] = maComment;
return aUserData; return aUserData;
......
...@@ -213,22 +213,6 @@ bool XMLFilterTabDialog::onOk() ...@@ -213,22 +213,6 @@ bool XMLFilterTabDialog::onOk()
} }
} }
// 3. see if the dtd is valid
if( 0 == nErrorId )
{
if( (mpNewInfo->maDTD != mpOldInfo->maDTD) && isFileURL( mpNewInfo->maDTD ) )
{
osl::File aFile( mpNewInfo->maDTD );
osl::File::RC aRC = aFile.open( osl_File_OpenFlag_Read );
if( aRC != osl::File::E_None )
{
nErrorId = STR_ERROR_DTD_NOT_FOUND;
nErrorPage = RID_XML_FILTER_TABPAGE_XSLT;
pFocusWindow = &(mpXSLTPage->maEDDTDSchema);
}
}
}
if( 0 == nErrorId ) if( 0 == nErrorId )
{ {
// 4. see if the export xslt is valid // 4. see if the export xslt is valid
...@@ -261,7 +245,7 @@ bool XMLFilterTabDialog::onOk() ...@@ -261,7 +245,7 @@ bool XMLFilterTabDialog::onOk()
} }
} }
// see if we have at least an import or an export dtd // see if we have at least an import or an export xslt
if((mpNewInfo->maImportXSLT.isEmpty()) && (mpNewInfo->maExportXSLT.isEmpty()) ) if((mpNewInfo->maImportXSLT.isEmpty()) && (mpNewInfo->maExportXSLT.isEmpty()) )
{ {
nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND; nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "xmlfilterhelpids.hrc" #include "xmlfilterhelpids.hrc"
#define TAB_PAGE_WIDTH 260 #define TAB_PAGE_WIDTH 260
#define TAB_PAGE_HEIGHT 185 #define TAB_PAGE_HEIGHT 120
#define SPACING 3 #define SPACING 3
......
...@@ -43,10 +43,6 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr, co ...@@ -43,10 +43,6 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr, co
maFTDocType( this, ResId( FT_XML_DOCTYPE, rResMgr ) ), maFTDocType( this, ResId( FT_XML_DOCTYPE, rResMgr ) ),
maEDDocType( this, ResId( ED_XML_DOCTYPE, rResMgr ) ), maEDDocType( this, ResId( ED_XML_DOCTYPE, rResMgr ) ),
maFTDTDSchema( this, ResId( FT_XML_DTD_SCHEMA, rResMgr ) ),
maEDDTDSchema( this, ResId( ED_XML_DTD_SCHEMA, rResMgr ), INET_PROT_FILE ),
maPBDTDSchemaBrowse( this, ResId( ED_XML_DTD_SCHEMA_BROWSE, rResMgr ) ),
maFTExportXSLT( this, ResId( FT_XML_EXPORT_XSLT, rResMgr ) ), maFTExportXSLT( this, ResId( FT_XML_EXPORT_XSLT, rResMgr ) ),
maEDExportXSLT( this, ResId( ED_XML_EXPORT_XSLT, rResMgr ), INET_PROT_FILE ), maEDExportXSLT( this, ResId( ED_XML_EXPORT_XSLT, rResMgr ), INET_PROT_FILE ),
maPBExprotXSLT( this, ResId( PB_XML_EXPORT_XSLT_BROWSE, rResMgr ) ), maPBExprotXSLT( this, ResId( PB_XML_EXPORT_XSLT_BROWSE, rResMgr ) ),
...@@ -81,12 +77,10 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr, co ...@@ -81,12 +77,10 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr, co
OSL_FAIL( "XMLFilterTabPageXSLT::XMLFilterTabPageXSLT exception catched!" ); OSL_FAIL( "XMLFilterTabPageXSLT::XMLFilterTabPageXSLT exception catched!" );
} }
maPBDTDSchemaBrowse.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) );
maPBExprotXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) ); maPBExprotXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) );
maPBImportXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) ); maPBImportXSLT.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) );
maPBImportTemplate.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) ); maPBImportTemplate.SetClickHdl( LINK ( this, XMLFilterTabPageXSLT, ClickBrowseHdl_Impl ) );
maEDDTDSchema.SetHelpId( HID_XML_FILTER_DTD );
maEDExportXSLT.SetHelpId( HID_XML_FILTER_EXPORT_XSLT ); maEDExportXSLT.SetHelpId( HID_XML_FILTER_EXPORT_XSLT );
maEDImportXSLT.SetHelpId( HID_XML_FILTER_IMPORT_XSLT ); maEDImportXSLT.SetHelpId( HID_XML_FILTER_IMPORT_XSLT );
maEDImportTemplate.SetHelpId( HID_XML_FILTER_IMPORT_TEMPLATE ); maEDImportTemplate.SetHelpId( HID_XML_FILTER_IMPORT_TEMPLATE );
...@@ -102,7 +96,6 @@ bool XMLFilterTabPageXSLT::FillInfo( filter_info_impl* pInfo ) ...@@ -102,7 +96,6 @@ bool XMLFilterTabPageXSLT::FillInfo( filter_info_impl* pInfo )
if( pInfo ) if( pInfo )
{ {
pInfo->maDocType = maEDDocType.GetText(); pInfo->maDocType = maEDDocType.GetText();
pInfo->maDTD = GetURL( maEDDTDSchema );
pInfo->maExportXSLT = GetURL( maEDExportXSLT ); pInfo->maExportXSLT = GetURL( maEDExportXSLT );
pInfo->maImportXSLT = GetURL( maEDImportXSLT ); pInfo->maImportXSLT = GetURL( maEDImportXSLT );
pInfo->maImportTemplate = GetURL( maEDImportTemplate ); pInfo->maImportTemplate = GetURL( maEDImportTemplate );
...@@ -118,7 +111,6 @@ void XMLFilterTabPageXSLT::SetInfo(const filter_info_impl* pInfo) ...@@ -118,7 +111,6 @@ void XMLFilterTabPageXSLT::SetInfo(const filter_info_impl* pInfo)
{ {
maEDDocType.SetText( pInfo->maDocType ); maEDDocType.SetText( pInfo->maDocType );
SetURL( maEDDTDSchema, pInfo->maDTD );
SetURL( maEDExportXSLT, pInfo->maExportXSLT ); SetURL( maEDExportXSLT, pInfo->maExportXSLT );
SetURL( maEDImportXSLT, pInfo->maImportXSLT ); SetURL( maEDImportXSLT, pInfo->maImportXSLT );
SetURL( maEDImportTemplate, pInfo->maImportTemplate ); SetURL( maEDImportTemplate, pInfo->maImportTemplate );
...@@ -184,11 +176,7 @@ IMPL_LINK ( XMLFilterTabPageXSLT, ClickBrowseHdl_Impl, PushButton *, pButton ) ...@@ -184,11 +176,7 @@ IMPL_LINK ( XMLFilterTabPageXSLT, ClickBrowseHdl_Impl, PushButton *, pButton )
{ {
SvtURLBox* pURLBox; SvtURLBox* pURLBox;
if( pButton == &maPBDTDSchemaBrowse ) if( pButton == &maPBExprotXSLT )
{
pURLBox = &maEDDTDSchema;
}
else if( pButton == &maPBExprotXSLT )
{ {
pURLBox = &maEDExportXSLT; pURLBox = &maEDExportXSLT;
} }
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#define FT_XML_DOCTYPE 1 #define FT_XML_DOCTYPE 1
#define ED_XML_DOCTYPE 2 #define ED_XML_DOCTYPE 2
#define FT_XML_DTD_SCHEMA 3
#define ED_XML_DTD_SCHEMA 4
#define ED_XML_DTD_SCHEMA_BROWSE 5
#define FT_XML_EXPORT_XSLT 6 #define FT_XML_EXPORT_XSLT 6
#define ED_XML_EXPORT_XSLT 7 #define ED_XML_EXPORT_XSLT 7
#define PB_XML_EXPORT_XSLT_BROWSE 8 #define PB_XML_EXPORT_XSLT_BROWSE 8
......
...@@ -44,10 +44,6 @@ public: ...@@ -44,10 +44,6 @@ public:
FixedText maFTDocType; FixedText maFTDocType;
Edit maEDDocType; Edit maEDDocType;
FixedText maFTDTDSchema;
SvtURLBox maEDDTDSchema;
PushButton maPBDTDSchemaBrowse;
FixedText maFTExportXSLT; FixedText maFTExportXSLT;
SvtURLBox maEDExportXSLT; SvtURLBox maEDExportXSLT;
PushButton maPBExprotXSLT; PushButton maPBExprotXSLT;
......
...@@ -63,44 +63,18 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -63,44 +63,18 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
Border = TRUE; Border = TRUE;
}; };
// DTD/Schema -----------------------------------------------------
FixedText FT_XML_DTD_SCHEMA
{
Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
Text [ en-US ] = "DTD";
};
ComboBox ED_XML_DTD_SCHEMA
{
Pos = MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
HelpId = HID_XML_FILTER_DTD;
Border = TRUE;
DropDown = FALSE ;
};
PushButton ED_XML_DTD_SCHEMA_BROWSE
{
Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
HelpId = HID_XML_FILTER_DTD_BROWSE;
Text [ en-US ] = "Browse...";
};
// Export XSLT ---------------------------------------------------- // Export XSLT ----------------------------------------------------
FixedText FT_XML_EXPORT_XSLT FixedText FT_XML_EXPORT_XSLT
{ {
Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ; Size = MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ;
Text [ en-US ] = "XSLT for export"; Text [ en-US ] = "XSLT for export";
}; };
ComboBox ED_XML_EXPORT_XSLT ComboBox ED_XML_EXPORT_XSLT
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ; Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
HelpId = HID_XML_FILTER_EXPORT_XSLT; HelpId = HID_XML_FILTER_EXPORT_XSLT;
Border = TRUE; Border = TRUE;
...@@ -108,7 +82,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -108,7 +82,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
PushButton PB_XML_EXPORT_XSLT_BROWSE PushButton PB_XML_EXPORT_XSLT_BROWSE
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ; Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ; Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE; HelpId = HID_XML_FILTER_EXPORT_XSLT_BROWSE;
Text [ en-US ] = "Browse..."; Text [ en-US ] = "Browse...";
...@@ -118,14 +92,14 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -118,14 +92,14 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
FixedText FT_XML_IMPORT_XSLT FixedText FT_XML_IMPORT_XSLT
{ {
Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ; Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
Text [ en-US ] = "XSLT for import"; Text [ en-US ] = "XSLT for import";
}; };
ComboBox ED_XML_IMPORT_XSLT ComboBox ED_XML_IMPORT_XSLT
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ; Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
HelpId = HID_XML_FILTER_IMPORT_XSLT; HelpId = HID_XML_FILTER_IMPORT_XSLT;
Border = TRUE; Border = TRUE;
...@@ -133,7 +107,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -133,7 +107,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
PushButton PB_XML_IMPORT_XSLT_BROWSE PushButton PB_XML_IMPORT_XSLT_BROWSE
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ; Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ; Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
HelpId = HID_XML_FILTER_IMPORT_XSLT_BROWSE; HelpId = HID_XML_FILTER_IMPORT_XSLT_BROWSE;
Text [ en-US ] = "Browse..."; Text [ en-US ] = "Browse...";
...@@ -143,14 +117,14 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -143,14 +117,14 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
FixedText FT_XML_IMPORT_TEMPLATE FixedText FT_XML_IMPORT_TEMPLATE
{ {
Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ; Size = MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
Text [ en-US ] = "Template for import"; Text [ en-US ] = "Template for import";
}; };
ComboBox ED_XML_IMPORT_TEMPLATE ComboBox ED_XML_IMPORT_TEMPLATE
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ; Size = MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
HelpId = HID_XML_FILTER_IMPORT_TEMPLATE; HelpId = HID_XML_FILTER_IMPORT_TEMPLATE;
Border = TRUE; Border = TRUE;
...@@ -158,7 +132,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -158,7 +132,7 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
PushButton PB_XML_IMPORT_TEMPLATE_BROWSE PushButton PB_XML_IMPORT_TEMPLATE_BROWSE
{ {
Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ; Pos = MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ; Size = MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
HelpId = HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE; HelpId = HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE;
Text [ en-US ] = "Browse..."; Text [ en-US ] = "Browse...";
...@@ -169,13 +143,13 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT ...@@ -169,13 +143,13 @@ TabPage RID_XML_FILTER_TABPAGE_XSLT
CheckBox CB_XML_NEEDS_XSLT2 CheckBox CB_XML_NEEDS_XSLT2
{ {
HelpID = HID_XML_FILTER_NEEDS_XSLT2; HelpID = HID_XML_FILTER_NEEDS_XSLT2;
Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 5 * ROW_HEIGHT + 5 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( 12, 12 ) ; Size = MAP_APPFONT ( 12, 12 ) ;
}; };
FixedText FT_XML_NEEDS_XSLT2 FixedText FT_XML_NEEDS_XSLT2
{ {
Pos = MAP_APPFONT ( FIRST_ROW_X + 3 * SPACING , SECOND_ROW_Y + 5 * ROW_HEIGHT + 5 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ; Pos = MAP_APPFONT ( FIRST_ROW_X + 4 * SPACING , SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
Size = MAP_APPFONT ( 2 * FIRST_ROW_WIDTH , 8 ) ; // guess width Size = MAP_APPFONT ( 2 * FIRST_ROW_WIDTH , 8 ) ; // guess width
Text [ en-US ] = "The filter needs XSLT 2.0 processor"; Text [ en-US ] = "The filter needs XSLT 2.0 processor";
}; };
......
...@@ -140,7 +140,6 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent, ...@@ -140,7 +140,6 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent,
: ModalDialog(pParent, "TestXMLFilterDialog", "filter/ui/testxmlfilter.ui") : ModalDialog(pParent, "TestXMLFilterDialog", "filter/ui/testxmlfilter.ui")
, mxMSF(rxMSF) , mxMSF(rxMSF)
, m_pFilterInfo(NULL) , m_pFilterInfo(NULL)
, m_sDTDPath("$(inst)/share/dtd/officedocument/1_0/office.dtd")
{ {
get(m_pExport, "export"); get(m_pExport, "export");
get(m_pFTExportXSLTFile, "exportxsltfile"); get(m_pFTExportXSLTFile, "exportxsltfile");
...@@ -181,10 +180,6 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent, ...@@ -181,10 +180,6 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent,
try try
{ {
Reference< XConfigManager > xCfgMgr( mxMSF->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.config.SpecialConfigManager" ))), UNO_QUERY );
if( xCfgMgr.is() )
m_sDTDPath = xCfgMgr->substituteVariables( m_sDTDPath );
mxGlobalBroadcaster = Reference < XEventBroadcaster >( GlobalEventBroadcaster::create(comphelper::getComponentContext(mxMSF)), UNO_QUERY_THROW ); mxGlobalBroadcaster = Reference < XEventBroadcaster >( GlobalEventBroadcaster::create(comphelper::getComponentContext(mxMSF)), UNO_QUERY_THROW );
mxGlobalEventListener = new GlobalEventListenerImpl( this ); mxGlobalEventListener = new GlobalEventListenerImpl( this );
mxGlobalBroadcaster->addEventListener( mxGlobalEventListener ); mxGlobalBroadcaster->addEventListener( mxGlobalEventListener );
...@@ -469,29 +464,22 @@ void XMLFilterTestDialog::doExport( Reference< XComponent > xComp ) ...@@ -469,29 +464,22 @@ void XMLFilterTestDialog::doExport( Reference< XComponent > xComp )
// create xslt exporter // create xslt exporter
Reference< XOutputStream > xIS( new comphelper::OSLOutputStreamWrapper( aOutputFile ) ); Reference< XOutputStream > xIS( new comphelper::OSLOutputStreamWrapper( aOutputFile ) );
int bUseDTD = m_pFilterInfo->maDTD.isEmpty() ? 0 : 1 ;
int bUseDocType = m_pFilterInfo->maDocType.isEmpty() ? 0 : 1; int bUseDocType = m_pFilterInfo->maDocType.isEmpty() ? 0 : 1;
Sequence< PropertyValue > aSourceData( 2 + bUseDTD + bUseDocType ); Sequence< PropertyValue > aSourceData( 2 + bUseDocType );
int i = 0; int i = 0;
aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "OutputStream" ) ); aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "OutputStream" ) );
aSourceData[i++].Value <<= xIS; aSourceData[i++].Value <<= xIS;
aSourceData[i].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "Indent" ) ); aSourceData[i].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "Indent" ) );
aSourceData[i++].Value <<= (sal_Bool)sal_True; aSourceData[i++].Value <<= (sal_Bool)sal_True;
if( bUseDTD )
{
aSourceData[i ].Name = OUString(RTL_CONSTASCII_USTRINGPARAM("DocType_System"));
aSourceData[i++].Value <<= m_pFilterInfo->maDTD;
}
if( bUseDocType ) if( bUseDocType )
{ {
aSourceData[i ].Name = OUString(RTL_CONSTASCII_USTRINGPARAM("DocType_Public")); aSourceData[i ].Name = OUString(RTL_CONSTASCII_USTRINGPARAM("DocType_Public"));
aSourceData[i++].Value <<= m_pFilterInfo->maDocType; aSourceData[i++].Value <<= m_pFilterInfo->maDocType;
} }
Reference< XExportFilter > xExporter( mxMSF->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.documentconversion.XSLTFilter" )) ), UNO_QUERY ); Reference< XExportFilter > xExporter( mxMSF->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.documentconversion.XSLTFilter" )) ), UNO_QUERY );
Reference< XDocumentHandler > xHandler( xExporter, UNO_QUERY ); Reference< XDocumentHandler > xHandler( xExporter, UNO_QUERY );
...@@ -645,7 +633,7 @@ void XMLFilterTestDialog::import( const OUString& rURL ) ...@@ -645,7 +633,7 @@ void XMLFilterTestDialog::import( const OUString& rURL )
Reference< XInputStream > xIS( new comphelper::OSLInputStreamWrapper( aInputFile ) ); Reference< XInputStream > xIS( new comphelper::OSLInputStreamWrapper( aInputFile ) );
Sequence< PropertyValue > aSourceData( 5 ); Sequence< PropertyValue > aSourceData( 3 );
int i = 0; int i = 0;
aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "InputStream" )); aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "InputStream" ));
...@@ -657,12 +645,6 @@ void XMLFilterTestDialog::import( const OUString& rURL ) ...@@ -657,12 +645,6 @@ void XMLFilterTestDialog::import( const OUString& rURL )
aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "Indent" )); aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "Indent" ));
aSourceData[i++].Value <<= (sal_Bool)sal_True; aSourceData[i++].Value <<= (sal_Bool)sal_True;
aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "DocType_Public" ));
aSourceData[i++].Value <<= OUString( RTL_CONSTASCII_USTRINGPARAM( "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" ));
aSourceData[i ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "DocType_System" ));
aSourceData[i++].Value <<= m_sDTDPath;
Reference< XWriter > xWriter = Writer::create( comphelper::getComponentContext(mxMSF) ); Reference< XWriter > xWriter = Writer::create( comphelper::getComponentContext(mxMSF) );
File aOutputFile( aTempFileURL ); File aOutputFile( aTempFileURL );
......
...@@ -85,7 +85,6 @@ private: ...@@ -85,7 +85,6 @@ private:
OUString m_sDialogTitle; OUString m_sDialogTitle;
OUString m_sDTDPath;
}; };
#endif #endif
......
...@@ -93,7 +93,6 @@ namespace XSLT ...@@ -93,7 +93,6 @@ namespace XSLT
const char* const LibXSLTTransformer::PARAM_TARGET_URL = "targetURL"; const char* const LibXSLTTransformer::PARAM_TARGET_URL = "targetURL";
const char* const LibXSLTTransformer::PARAM_TARGET_BASE_URL = const char* const LibXSLTTransformer::PARAM_TARGET_BASE_URL =
"targetBaseURL"; "targetBaseURL";
const char* const LibXSLTTransformer::PARAM_DOCTYPE_SYSTEM = "sytemType";
const char* const LibXSLTTransformer::PARAM_DOCTYPE_PUBLIC = "publicType"; const char* const LibXSLTTransformer::PARAM_DOCTYPE_PUBLIC = "publicType";
const sal_Int32 Reader::OUTPUT_BUFFER_SIZE = _OUTPUT_BUFFER_SIZE; const sal_Int32 Reader::OUTPUT_BUFFER_SIZE = _OUTPUT_BUFFER_SIZE;
...@@ -543,11 +542,6 @@ namespace XSLT ...@@ -543,11 +542,6 @@ namespace XSLT
m_parameters.insert(pair<const char*, OString> ( m_parameters.insert(pair<const char*, OString> (
PARAM_TARGET_BASE_URL, valueUTF8)); PARAM_TARGET_BASE_URL, valueUTF8));
} }
else if (nameUTF8.equals("DoctypeSystem"))
{
m_parameters.insert(pair<const char*, OString> (
PARAM_DOCTYPE_SYSTEM, valueUTF8));
}
else if (nameUTF8.equals("DoctypePublic")) else if (nameUTF8.equals("DoctypePublic"))
{ {
m_parameters.insert(pair<const char*, OString> ( m_parameters.insert(pair<const char*, OString> (
......
...@@ -94,7 +94,6 @@ namespace XSLT ...@@ -94,7 +94,6 @@ namespace XSLT
static const char* const PARAM_SOURCE_BASE_URL; static const char* const PARAM_SOURCE_BASE_URL;
static const char* const PARAM_TARGET_URL; static const char* const PARAM_TARGET_URL;
static const char* const PARAM_TARGET_BASE_URL; static const char* const PARAM_TARGET_BASE_URL;
static const char* const PARAM_DOCTYPE_SYSTEM;
static const char* const PARAM_DOCTYPE_PUBLIC; static const char* const PARAM_DOCTYPE_PUBLIC;
// the UNO ServiceFactory // the UNO ServiceFactory
......
...@@ -444,7 +444,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) ...@@ -444,7 +444,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
OUString aName, sURL; OUString aName, sURL;
sal_Bool bIndent = sal_False; sal_Bool bIndent = sal_False;
OUString aDoctypePublic; OUString aDoctypePublic;
OUString aDoctypeSystem;
// css::uno::Reference<XOutputStream> rOutputStream; // css::uno::Reference<XOutputStream> rOutputStream;
sal_Int32 nLength = aSourceData.getLength(); sal_Int32 nLength = aSourceData.getLength();
for (sal_Int32 i = 0; i < nLength; i++) for (sal_Int32 i = 0; i < nLength; i++)
...@@ -454,8 +453,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) ...@@ -454,8 +453,6 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
aSourceData[i].Value >>= bIndent; aSourceData[i].Value >>= bIndent;
if ( aName == "DocType_Public" ) if ( aName == "DocType_Public" )
aSourceData[i].Value >>= aDoctypePublic; aSourceData[i].Value >>= aDoctypePublic;
if ( aName == "DocType_System" )
aSourceData[i].Value >>= aDoctypeSystem;
if ( aName == "OutputStream" ) if ( aName == "OutputStream" )
aSourceData[i].Value >>= m_rOutputStream; aSourceData[i].Value >>= m_rOutputStream;
else if ( aName == "URL" ) else if ( aName == "URL" )
...@@ -479,12 +476,9 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) ...@@ -479,12 +476,9 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
nv.Name = OUString( "TargetURL" ); nv.Name = OUString( "TargetURL" );
nv.Value <<= sURL; nv.Value <<= sURL;
args[1] <<= nv; args[1] <<= nv;
nv.Name = OUString( "DoctypeSystem" );
nv.Value <<= aDoctypeSystem;
args[2] <<= nv;
nv.Name = OUString( "DoctypePublic" ); nv.Name = OUString( "DoctypePublic" );
nv.Value <<= aDoctypePublic; nv.Value <<= aDoctypePublic;
args[3] <<= nv; args[2] <<= nv;
nv.Name = OUString( "TargetBaseURL" ); nv.Name = OUString( "TargetBaseURL" );
INetURLObject ineturl(sURL); INetURLObject ineturl(sURL);
ineturl.removeSegment(); ineturl.removeSegment();
......
RegistrationClassName: XSLTValidate
UNO-Type-Path:
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<component loader="com.sun.star.loader.Java2"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="XSLTValidate$_XSLTValidate">
<service name="com.sun.star.documentconversion.XSLTValidate"/>
</implementation>
</component>
...@@ -286,7 +286,6 @@ my_components += component/slideshow/source/engine/OGLTrans/ogltrans ...@@ -286,7 +286,6 @@ my_components += component/slideshow/source/engine/OGLTrans/ogltrans
.IF "$(SOLAR_JAVA)" == "TRUE" .IF "$(SOLAR_JAVA)" == "TRUE"
my_components += \ my_components += \
component/xmerge/source/bridge/XMergeBridge \ component/xmerge/source/bridge/XMergeBridge \
component/filter/source/xsltvalidate/XSLTValidate \
component/scripting/java/ScriptFramework \ component/scripting/java/ScriptFramework \
component/scripting/java/ScriptProviderForJava \ component/scripting/java/ScriptProviderForJava \
component/wizards/com/sun/star/wizards/agenda/agenda \ component/wizards/com/sun/star/wizards/agenda/agenda \
......
...@@ -1399,10 +1399,6 @@ STD_LIB_FILE( gid_File_Lib_Xmlfd, xmlfd ) ...@@ -1399,10 +1399,6 @@ STD_LIB_FILE( gid_File_Lib_Xmlfd, xmlfd )
STD_LIB_FILE( gid_File_Lib_Textfd, textfd ) STD_LIB_FILE( gid_File_Lib_Textfd, textfd )
STD_LIB_FILE( gid_File_Lib_Odfflatxml, odfflatxml ) STD_LIB_FILE( gid_File_Lib_Odfflatxml, odfflatxml )
#ifdef SOLAR_JAVA
STD_JAR_FILE( gid_File_Jar_Xsltvalidate, XSLTValidate )
#endif
#ifndef SYSTEM_LIBXSLT #ifndef SYSTEM_LIBXSLT
File gid_File_Lib_Xslt File gid_File_Lib_Xslt
LIB_FILE_BODY; LIB_FILE_BODY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment