summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-18 18:26:28 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-23 22:20:31 +0200
commitb9337e22ce1dbf2eba0e8c8db294ae99f4111f91 (patch)
tree53ee1bd3dfd213815a21579151983cb997922b05 /xmlscript
parentf4e1642a1761d5eab6ccdd89928869c2b2f1528a (diff)
execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/Module_xmlscript.mk1
-rw-r--r--xmlscript/Package_inc.mk19
-rw-r--r--xmlscript/inc/xmlscript/xml_helper.hxx139
-rw-r--r--xmlscript/inc/xmlscript/xmldlg_imexp.hxx81
-rw-r--r--xmlscript/inc/xmlscript/xmllib_imexp.hxx88
-rw-r--r--xmlscript/inc/xmlscript/xmlmod_imexp.hxx59
-rw-r--r--xmlscript/inc/xmlscript/xmlns.h39
-rw-r--r--xmlscript/inc/xmlscript/xmlscriptdllapi.h33
8 files changed, 0 insertions, 459 deletions
diff --git a/xmlscript/Module_xmlscript.mk b/xmlscript/Module_xmlscript.mk
index f0bf26d43f8c..56df07de29d2 100644
--- a/xmlscript/Module_xmlscript.mk
+++ b/xmlscript/Module_xmlscript.mk
@@ -12,7 +12,6 @@ $(eval $(call gb_Module_Module,xmlscript))
$(eval $(call gb_Module_add_targets,xmlscript,\
Library_xmlscript \
Package_dtd \
- Package_inc \
))
# vim: set noet sw=4 ts=4:
diff --git a/xmlscript/Package_inc.mk b/xmlscript/Package_inc.mk
deleted file mode 100644
index ca3dae99fc2b..000000000000
--- a/xmlscript/Package_inc.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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/.
-#
-
-$(eval $(call gb_Package_Package,xmlscript_inc,$(SRCDIR)/xmlscript))
-
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xmlscriptdllapi.h,inc/xmlscript/xmlscriptdllapi.h))
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xml_helper.hxx,inc/xmlscript/xml_helper.hxx))
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xmldlg_imexp.hxx,inc/xmlscript/xmldlg_imexp.hxx))
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xmllib_imexp.hxx,inc/xmlscript/xmllib_imexp.hxx))
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xmlmod_imexp.hxx,inc/xmlscript/xmlmod_imexp.hxx))
-$(eval $(call gb_Package_add_file,xmlscript_inc,inc/xmlscript/xmlns.h,inc/xmlscript/xmlns.h))
-
-# vim: set noet sw=4 ts=4:
diff --git a/xmlscript/inc/xmlscript/xml_helper.hxx b/xmlscript/inc/xmlscript/xml_helper.hxx
deleted file mode 100644
index 5d3c747452ae..000000000000
--- a/xmlscript/inc/xmlscript/xml_helper.hxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/* -*- 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 _XMLSCRIPT_XML_HELPER_HXX_
-#define _XMLSCRIPT_XML_HELPER_HXX_
-
-#include <vector>
-#include <rtl/byteseq.hxx>
-#include <cppuhelper/implbase1.hxx>
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XOutputStream.hpp>
-
-#include "xmlscript/xmlscriptdllapi.h"
-
-namespace xmlscript
-{
-
-/*##################################################################################################
-
- EXPORTING
-
-##################################################################################################*/
-
-//==================================================================================================
-class XMLSCRIPT_DLLPUBLIC XMLElement
- : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XAttributeList >
-{
-public:
- inline XMLElement( OUString const & name )
- SAL_THROW(())
- : _name( name )
- {}
-
- /** Adds a sub element of element.
-
- @param xElem element reference
- */
- void SAL_CALL addSubElement(
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > const & xElem )
- SAL_THROW(());
-
- /** Gets sub element of given index. The index follows order in which sub elements were added.
-
- @param nIndex index of sub element
- */
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > SAL_CALL getSubElement( sal_Int32 nIndex )
- SAL_THROW(());
-
- /** Adds an attribute to elements.
-
- @param rAttrName qname of attribute
- @param rValue value string of element
- */
- void SAL_CALL addAttribute( OUString const & rAttrName, OUString const & rValue )
- SAL_THROW(());
-
- /** Gets the tag name (qname) of element.
-
- @return
- qname of element
- */
- inline OUString SAL_CALL getName() SAL_THROW(())
- { return _name; }
-
- /** Dumps out element (and all sub elements).
-
- @param xOut document handler to be written to
- */
- void SAL_CALL dump(
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > const & xOut );
- /** Dumps out sub elements (and all further sub elements).
-
- @param xOut document handler to be written to
- */
- void SAL_CALL dumpSubElements(
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > const & xOut );
-
- // XAttributeList
- virtual sal_Int16 SAL_CALL getLength()
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getNameByIndex( sal_Int16 nPos )
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getTypeByIndex( sal_Int16 nPos )
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getTypeByName( OUString const & rName )
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getValueByIndex( sal_Int16 nPos )
- throw (::com::sun::star::uno::RuntimeException);
- virtual OUString SAL_CALL getValueByName( OUString const & rName )
- throw (::com::sun::star::uno::RuntimeException);
-
-protected:
- OUString _name;
-
- ::std::vector< OUString > _attrNames;
- ::std::vector< OUString > _attrValues;
-
- ::std::vector< ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > > _subElems;
-};
-
-
-/*##################################################################################################
-
- STREAMING
-
-##################################################################################################*/
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
-SAL_CALL createInputStream(
- ::rtl::ByteSequence const & rInData )
- SAL_THROW(());
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >
-SAL_CALL createOutputStream(
- ::rtl::ByteSequence * pOutData )
- SAL_THROW(());
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/inc/xmlscript/xmldlg_imexp.hxx b/xmlscript/inc/xmlscript/xmldlg_imexp.hxx
deleted file mode 100644
index 28f726d57109..000000000000
--- a/xmlscript/inc/xmlscript/xmldlg_imexp.hxx
+++ /dev/null
@@ -1,81 +0,0 @@
-/* -*- 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 _XMLSCRIPT_XMLDLG_IMEXP_HXX_
-#define _XMLSCRIPT_XMLDLG_IMEXP_HXX_
-
-#include <com/sun/star/frame/XModel.hpp>
-
-#include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/io/XInputStreamProvider.hpp>
-#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-
-#include "xmlscript/xmlns.h"
-#include "xmlscript/xmlscriptdllapi.h"
-
-namespace xmlscript
-{
-
-XMLSCRIPT_DLLPUBLIC void SAL_CALL exportDialogModel(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer > const & xDialogModel,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > const & xDocument )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
-SAL_CALL importDialogModel(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer > const & xDialogModel,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & xContext,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > const & xDocument )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-// additional functions for convenience
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >
-SAL_CALL exportDialogModel(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer > const & xDialogModel,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & xContext,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > const & xDocument )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-XMLSCRIPT_DLLPUBLIC void SAL_CALL importDialogModel(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::io::XInputStream > const & xInput,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer > const & xDialogModel,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > const & xContext,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > const & xDocument )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/inc/xmlscript/xmllib_imexp.hxx b/xmlscript/inc/xmlscript/xmllib_imexp.hxx
deleted file mode 100644
index 08f58c5e6049..000000000000
--- a/xmlscript/inc/xmlscript/xmllib_imexp.hxx
+++ /dev/null
@@ -1,88 +0,0 @@
-/* -*- 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 _XMLSCRIPT_XMLLIB_IMEXP_HXX_
-#define _XMLSCRIPT_XMLLIB_IMEXP_HXX_
-
-#include <com/sun/star/xml/sax/XWriter.hpp>
-#include <com/sun/star/uno/Sequence.hxx>
-
-#include "xmlscript/xmlns.h"
-#include "xmlscript/xmlscriptdllapi.h"
-
-namespace xmlscript
-{
-
-//==============================================================================
-// Library container export
-// HACK C++ struct to transport info. Later the container
-// itself should do the export/import and use exportet XML
-// functionality from xmlscript
-struct XMLSCRIPT_DLLPUBLIC LibDescriptor
-{
- OUString aName;
- OUString aStorageURL;
- sal_Bool bLink;
- sal_Bool bReadOnly;
- sal_Bool bPasswordProtected;
- ::com::sun::star::uno::Sequence< OUString > aElementNames;
- sal_Bool bPreload;
-};
-
-struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray
-{
- LibDescriptor* mpLibs;
- sal_Int32 mnLibCount;
-
- LibDescriptorArray( void ) { mpLibs = NULL; mnLibCount = 0; }
- LibDescriptorArray( sal_Int32 nLibCount );
-
- ~LibDescriptorArray();
-
-};
-
-XMLSCRIPT_DLLPUBLIC void
-SAL_CALL exportLibraryContainer(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XWriter > const & xOut,
- const LibDescriptorArray* pLibArray )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XDocumentHandler >
-SAL_CALL importLibraryContainer( LibDescriptorArray* pLibArray )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-
-XMLSCRIPT_DLLPUBLIC void
-SAL_CALL exportLibrary(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XWriter > const & xOut,
- const LibDescriptor& rLib )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XDocumentHandler >
-SAL_CALL importLibrary( LibDescriptor& rLib )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/inc/xmlscript/xmlmod_imexp.hxx b/xmlscript/inc/xmlscript/xmlmod_imexp.hxx
deleted file mode 100644
index 2898d8a5fc20..000000000000
--- a/xmlscript/inc/xmlscript/xmlmod_imexp.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- 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 _XMLSCRIPT_XMLMOD_IMEXP_HXX_
-#define _XMLSCRIPT_XMLMOD_IMEXP_HXX_
-
-#include <com/sun/star/xml/sax/XWriter.hpp>
-#include <com/sun/star/uno/Sequence.hxx>
-#include <xmlscript/xmlns.h>
-#include "xmlscript/xmlscriptdllapi.h"
-
-namespace xmlscript
-{
-
-//==============================================================================
-// Script module import/export
-// HACK C++ struct to transport info. Later the container
-// itself should do the export/import and use exportet XML
-// functionality from xmlscript
-struct XMLSCRIPT_DLLPUBLIC ModuleDescriptor
-{
- OUString aName;
- OUString aLanguage;
- OUString aCode;
- OUString aModuleType; // VBA
-};
-
-XMLSCRIPT_DLLPUBLIC void
-SAL_CALL exportScriptModule(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XWriter > const & xOut,
- const ModuleDescriptor& rMod )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-XMLSCRIPT_DLLPUBLIC ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XDocumentHandler >
-SAL_CALL importScriptModule( ModuleDescriptor& rMod )
- SAL_THROW( (::com::sun::star::uno::Exception) );
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/inc/xmlscript/xmlns.h b/xmlscript/inc/xmlscript/xmlns.h
deleted file mode 100644
index cb0e37af0b07..000000000000
--- a/xmlscript/inc/xmlscript/xmlns.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- 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 _XMLSCRIPT_XMLNS_H_
-#define _XMLSCRIPT_XMLNS_H_
-
-#define XMLNS_DIALOGS_URI "http://openoffice.org/2000/dialog"
-#define XMLNS_DIALOGS_PREFIX "dlg"
-
-#define XMLNS_SCRIPT_URI "http://openoffice.org/2000/script"
-#define XMLNS_SCRIPT_PREFIX "script"
-
-#define XMLNS_OOO_URI "http://openoffice.org/2004/office"
-#define XMLNS_OOO_PREFIX "ooo"
-
-#define XMLNS_LIBRARY_URI "http://openoffice.org/2000/library"
-#define XMLNS_LIBRARY_PREFIX "library"
-
-#define XMLNS_XLINK_URI "http://www.w3.org/1999/xlink"
-#define XMLNS_XLINK_PREFIX "xlink"
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlscript/inc/xmlscript/xmlscriptdllapi.h b/xmlscript/inc/xmlscript/xmlscriptdllapi.h
deleted file mode 100644
index b9634d57ee36..000000000000
--- a/xmlscript/inc/xmlscript/xmlscriptdllapi.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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 INCLUDED_XMLSCRIPT_DLL_API_H
-#define INCLUDED_XMLSCRIPT_DLL_API_H
-
-#include <sal/types.h>
-
-#if defined(XMLSCRIPT_DLLIMPLEMENTATION)
-#define XMLSCRIPT_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define XMLSCRIPT_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-#define XMLSCRIPT_DLLPRIVATE SAL_DLLPRIVATE
-
-#endif
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */