Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
49614181
Kaydet (Commit)
49614181
authored
Nis 19, 2004
tarafından
Joachim Lingner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i20052# plugin lib for java framework
üst
43cc8abf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1155 additions
and
0 deletions
+1155
-0
elements.cxx
jvmfwk/source/elements.cxx
+0
-0
elements.hxx
jvmfwk/source/elements.hxx
+273
-0
framework.cxx
jvmfwk/source/framework.cxx
+0
-0
framework.hxx
jvmfwk/source/framework.hxx
+136
-0
framework.map
jvmfwk/source/framework.map
+21
-0
fwkutil.cxx
jvmfwk/source/fwkutil.cxx
+0
-0
fwkutil.hxx
jvmfwk/source/fwkutil.hxx
+171
-0
javasettings.xsd
jvmfwk/source/javasettings.xsd
+48
-0
libxmlutil.cxx
jvmfwk/source/libxmlutil.cxx
+246
-0
libxmlutil.hxx
jvmfwk/source/libxmlutil.hxx
+161
-0
makefile.mk
jvmfwk/source/makefile.mk
+99
-0
No files found.
jvmfwk/source/elements.cxx
0 → 100644
Dosyayı görüntüle @
49614181
This diff is collapsed.
Click to expand it.
jvmfwk/source/elements.hxx
0 → 100644
Dosyayı görüntüle @
49614181
/*************************************************************************
*
* $RCSfile: elements.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:55:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (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.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#if !defined INCLUDED_JVMFWK_ELEMENTS_HXX
#define INCLUDED_JVMFWK_ELEMENTS_HXX
#include <vector>
#include "jvmfwk/framework.h"
#include "rtl/ustring.hxx"
#include "rtl/byteseq.hxx"
#include "libxml/parser.h"
namespace
jfw
{
class
CXmlCharPtr
;
class
CNodeJavaInfo
{
public
:
CNodeJavaInfo
();
~
CNodeJavaInfo
();
/**
sUpdated is the value from the <updated> element from the
javavendors.xml.
*/
CNodeJavaInfo
(
const
JavaInfo
*
pInfo
,
const
rtl
::
OUString
&
sUpdated
);
/** if true, then javaInfo is empty. When writeToNode is called
then all child elements are deleted.
*/
bool
m_bEmptyNode
;
/** Contains the value of the <updated> element of
the javavendors.xml
*/
rtl
::
OUString
sAttrVendorUpdate
;
/** contains the nil value of the /java/javaInfo@xsi:nil attribute.
Default is true;
*/
bool
bNil
;
rtl
::
OUString
sVendor
;
rtl
::
OUString
sLocation
;
rtl
::
OUString
sVersion
;
sal_uInt64
nFeatures
;
sal_uInt64
nRequirements
;
rtl
::
ByteSequence
arVendorData
;
/** reads the node /java/javaInfo.
If javaInfo@xsi:nil = true then member bNil is set to true
an no further elements are read.
*/
javaFrameworkError
loadFromNode
(
xmlDoc
*
pDoc
,
xmlNode
*
pJavaInfo
);
/** Only writes user settings. The attribut nil always gets the value
false;
*/
javaFrameworkError
writeToNode
(
xmlDoc
*
pDoc
,
xmlNode
*
pJavaInfo
)
const
;
/** returns NULL if javaInfo is nil in both, user and share, settings.
*/
JavaInfo
*
makeJavaInfo
()
const
;
};
/** this class represents the javasettings.xml file
*/
class
CNodeJava
{
/** Share settings are a special case. Per default
there are only user settings.
*/
javaFrameworkError
loadShareSettings
();
/** This function is called after loadShareSettings. Elements which have been
modified by the user, that is, the attribute xsi:nil = false, overwrite the
values which have been retrieved with loadShareSettings.
*/
javaFrameworkError
loadUserSettings
();
/** User configurable option. /java/enabled
The value is valid after loadFromSettings has been called
successfully.
The value is that of the user setting. If it is nil
(/java/enabled[@xsi:nil = true]) then it represents the share setting.
If there are no share settings or the node is also nil then the default
is true.
*/
sal_Bool
m_bEnabled
;
/** Determines if m_bEnabled has been modified */
bool
m_bEnabledModified
;
/** User configurable option. /java/userClassPath
The value is valid after loadFromSettings has been called successfully.
The value is that of the user setting. If it is nil
(/java/userClassPath[@xsi:nil = true]) then it represents the share setting.
If there are no share settings or the node is also nil then the default
is an empty string.
*/
rtl
::
OUString
m_sUserClassPath
;
/** Determines if m_sUserClassPath has been modified */
bool
m_bUserClassPathModified
;
/** User configurable option. /java/javaInfo
The value is valid after loadFromSettings has been called successfully.
The value is that of the user setting. If it is nil
(/java/javaInfo[@xsi:nil = true]) then it represents the share setting.
If there are no share settings then the structure is regarded as empty.
*/
CNodeJavaInfo
m_aInfo
;
/** Determines if m_aInfo has been modified */
bool
m_bJavaInfoModified
;
/** User configurable option. /java/vmParameters
The value is valid after loadFromSettings has been called successfully.
The value is that of the user setting. If it is nil
(/java/vmParameters[@xsi:nil = true]) then it represents the share setting.
If there are no share settings then array is empty.
*/
std
::
vector
<
rtl
::
OString
>
m_arVmParameters
;
bool
m_bVmParametersModified
;
public
:
// Preset element (cannot be changed. /java/classesDirectory
rtl
::
OUString
m_sClassesDirectory
;
CNodeJava
();
/** sets m_bEnabled. It also sets a flag, that the value has been
modified. This will cause that /java/enabled[@xsi:nil] will be
set to false. The nil value and the value of enabled are only
written when write Settings is called.
*/
void
setEnabled
(
sal_Bool
bEnabled
);
/** returns the value of the element /java/enabled
*/
sal_Bool
getEnabled
()
const
;
/** sets m_sUserClassPath. Analog to setEnabled.
*/
void
setUserClassPath
(
const
rtl
::
OUString
&
sClassPath
);
/** returns the value of the element /java/userClassPath.
*/
rtl
::
OUString
const
&
getUserClassPath
()
const
;
/** sets m_aInfo. Analog to setEnabled.
@param sVendorUpdated
The date string that is written to /java/javaInfo@vendorUpdate
The string is the same as the value of /javaSettings/updated in javavendors.xml
*/
void
setJavaInfo
(
const
JavaInfo
*
pInfo
,
const
rtl
::
OUString
&
sVendorUpdated
);
/** returns a JavaInfo structure representing the node
/java/javaInfo
If both, user and share settings are nil, then NULL is returned.
*/
JavaInfo
*
getJavaInfo
()
const
;
/** returns the value of the attribute /java/javaInfo[@vendorUpdate].
*/
rtl
::
OUString
const
&
getJavaInfoAttrVendorUpdate
()
const
;
/** sets the /java/vmParameters/param elements.
The values are kept in a vector m_arVmParameters. When this method is
called then the vector is cleared and the new values are inserted.
The xsi:nil attribute of vmParameters will be set to true;
*/
void
setVmParameters
(
rtl_uString
*
*
arParameters
,
sal_Int32
size
);
/** returns the parameters from the element /java/vmParameters/param.
*/
const
std
::
vector
<
rtl
::
OString
>
&
getVmParameters
();
/** reads user and share settings. user data supersede
share data. These elements can be changed by the user:
<enabled>, <userClasspath>, <javaInfo>, <vmParameters>
If the user has not changed them then the nil attribute is
set to true;
*/
javaFrameworkError
loadFromSettings
();
/** writes the data to user settings.
*/
javaFrameworkError
writeSettings
()
const
;
/** returns an array.
Caller must free the strings and the array.
*/
void
getVmParametersArray
(
rtl_uString
***
parParameters
,
sal_Int32
*
size
);
};
class
VersionInfo
{
std
::
vector
<
rtl
::
OUString
>
vecExcludeVersions
;
rtl_uString
**
arVersions
;
public
:
VersionInfo
();
~
VersionInfo
();
void
addExcludeVersion
(
const
rtl
::
OUString
&
sVersion
);
rtl
::
OUString
sMinVersion
;
rtl
::
OUString
sMaxVersion
;
/** The caller DOES NOT get ownership of the strings. That is he
does not need to release the strings.
The array exists as long as this object exists.
*/
rtl_uString
**
getExcludeVersions
();
sal_Int32
getExcludeVersionSize
();
};
struct
PluginLibrary
{
/** contains the vendor string which is later userd in the xml API
*/
rtl
::
OString
sVendor
;
/** File URL the plug-in library
*/
rtl
::
OUString
sPath
;
};
}
//end namespace
#endif
jvmfwk/source/framework.cxx
0 → 100644
Dosyayı görüntüle @
49614181
This diff is collapsed.
Click to expand it.
jvmfwk/source/framework.hxx
0 → 100644
Dosyayı görüntüle @
49614181
/*************************************************************************
*
* $RCSfile: framework.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:55:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (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.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#if !defined INCLUDED_JVMFWK_LOCAL_FRAMEWORK_HXX
#define INCLUDED_JVMFWK_LOCAL_FRAMEWORK_HXX
#include "rtl/ustring.hxx"
#include "rtl/byteseq.hxx"
#include "jvmfwk/framework.h"
#include "jvmfwk/vendorplugin.h"
#define NS_JAVA_FRAMEWORK "http://openoffice.org/2004/java/framework/1.0"
#define NS_SCHEMA_INSTANCE "http://www.w3.org/2001/XMLSchema-instance"
/** typedefs for functions from vendorplugin.h
*/
typedef
javaPluginError
(
*
getAllJavaInfos_ptr
)(
rtl_uString
*
sMinVersion
,
rtl_uString
*
sMaxVersion
,
rtl_uString
*
*
arExcludeList
,
sal_Int32
nLenList
,
JavaInfo
***
parJavaInfo
,
sal_Int32
*
nLenInfoList
);
typedef
javaPluginError
(
*
getJavaInfoByPath_ptr
)(
rtl_uString
*
sPath
,
rtl_uString
*
sMinVersion
,
rtl_uString
*
sMaxVersion
,
rtl_uString
*
*
arExcludeList
,
sal_Int32
nLenList
,
JavaInfo
**
ppInfo
);
/** starts a Java Virtual Machine.
<p>
The function shall ensure, that the VM does not abort the process
during instantiation.
</p>
*/
typedef
javaPluginError
(
*
startJavaVirtualMachine_ptr
)(
const
JavaInfo
*
info
,
const
JavaVMOption
*
options
,
sal_Int32
cOptions
,
JavaVM
**
ppVM
,
JNIEnv
**
ppEnv
);
namespace
jfw
{
class
CJavaInfo
{
CJavaInfo
(
const
CJavaInfo
&
);
CJavaInfo
&
operator
=
(
const
CJavaInfo
&
);
static
JavaInfo
*
copyJavaInfo
(
const
JavaInfo
*
pInfo
);
public
:
::
JavaInfo
*
pInfo
;
CJavaInfo
();
CJavaInfo
(
const
::
JavaInfo
*
pInfo
);
~
CJavaInfo
();
CJavaInfo
&
operator
=
(
const
::
JavaInfo
*
info
);
const
::
JavaInfo
*
operator
->
()
const
;
::
JavaInfo
**
operator
&
();
operator
::
JavaInfo
*
();
operator
::
JavaInfo
const
*
()
const
;
::
JavaInfo
*
cloneJavaInfo
()
const
;
rtl
::
OUString
getVendor
()
const
;
rtl
::
OUString
getLocation
()
const
;
rtl
::
OUString
getVersion
()
const
;
sal_uInt64
getFeatures
()
const
;
sal_uInt64
getRequirements
()
const
;
rtl
::
ByteSequence
getVendorData
()
const
;
};
}
#endif
jvmfwk/source/framework.map
0 → 100644
Dosyayı görüntüle @
49614181
UDK_3.1 {
global:
# jvmfwk/framework.h:
jfw_freeJavaInfo;
jfw_findAndSelectJava;
jfw_startJava;
jfw_isJavaRunning;
jfw_getJavaInfoByPath;
jfw_setSelectedJava;
jfw_getSelectedJava;
jfw_setEnabled;
jfw_getEnabled;
jfw_setVMParameters;
jfw_getVMParameters;
jfw_setUserClassPath;
jfw_getUserClassPath;
jfw_lock;
jfw_unlock;
local:
*;
};
jvmfwk/source/fwkutil.cxx
0 → 100644
Dosyayı görüntüle @
49614181
This diff is collapsed.
Click to expand it.
jvmfwk/source/fwkutil.hxx
0 → 100644
Dosyayı görüntüle @
49614181
/*************************************************************************
*
* $RCSfile: fwkutil.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:55:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (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.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#if !defined INCLUDED_JVMFWK_FWKUTIL_HXX
#define INCLUDED_JVMFWK_FWKUTIL_HXX
#include "osl/mutex.hxx"
#include "osl/module.hxx"
#include "rtl/byteseq.hxx"
#include "libxml/parser.h"
#include "libxml/xpath.h"
namespace
jfw
{
osl
::
Mutex
*
getFwkMutex
();
rtl
::
ByteSequence
encodeBase16
(
const
rtl
::
ByteSequence
&
rawData
);
rtl
::
ByteSequence
decodeBase16
(
const
rtl
::
ByteSequence
&
data
);
/** Get the file URL to the javasettings.xml
*/
rtl
::
OUString
getUserSettingsURL
();
rtl
::
OString
getUserSettingsPath
();
rtl
::
OUString
getSharedSettingsURL
();
rtl
::
OString
getSharedSettingsPath
();
rtl
::
OUString
getBaseInstallation
();
rtl
::
OUString
getVendorSettingsURL
();
rtl
::
OString
getVendorSettingsPath
();
xmlNode
*
findChildNode
(
const
xmlNode
*
pParent
,
const
xmlChar
*
pName
);
struct
PluginLibrary
;
class
VersionInfo
;
class
CJavaInfo
;
javaFrameworkError
getVendorPluginURLs
(
const
xmlDocPtr
doc
,
const
xmlXPathContextPtr
context
,
std
::
vector
<
PluginLibrary
>
*
vecPlugins
);
bool
isAccessibilitySupportDesired
();
javaFrameworkError
getVersionInformation
(
const
xmlDocPtr
doc
,
const
xmlXPathContextPtr
context
,
const
rtl
::
OString
&
sVendor
,
VersionInfo
*
pVersionInfo
);
/** gets the value of the updated element from the javavendors.xml.
*/
javaFrameworkError
getElementUpdated
(
rtl
::
OUString
&
sValue
);
/** Gets the file URL to the plubin library for the currently selected Java.
*/
javaFrameworkError
getPluginLibrary
(
rtl
::
OUString
&
sLibPathe
);
//xmlNode* findChildNode(const xmlNode * pParent, const xmlChar* pName);
/**
@param sUpdated
the value of the element /javaSelection/updated from the javavendors.xml
file.
@param sSettings
the system path to the settings xml file.
*/
javaFrameworkError
writeJavaInfoData
(
const
jfw
::
CJavaInfo
&
aInfo
,
const
rtl
::
OUString
&
sUpdated
,
const
rtl
::
OString
&
sSettings
);
/** Called from writeJavaInfoData. It sets the process identifier. When
java is to be started, then the current id is compared to the one set by
this function. If they are identical then the Java was selected in the
same process. If that Java needs a prepared environment, such as a
LD_LIBRARY_PATH, then it must not be started in this process.
*/
void
setJavaSelected
();
/** Determines if the currently selected Java was set in this process.
@see setProcessId()
*/
bool
wasJavaSelectedInSameProcess
();
/**
@param pDoc
must not be freed within the function.
@param pJavaInfoNode
must not be freed within the function.
*/
javaFrameworkError
writeElementJavaInfo
(
xmlDoc
*
pDoc
,
xmlNode
*
pJavaInfoNode
,
const
jfw
::
CJavaInfo
&
aInfo
);
javaFrameworkError
buildClassPathFromDirectory
(
const
rtl
::
OUString
&
relPath
,
rtl
::
OUString
&
sClassPath
);
rtl
::
OUString
retrieveClassPath
(
::
rtl
::
OUString
const
&
macro
);
// class CProcessId
// {
// sal_uInt8 m_arId[16];
// bool m_bValid;
// public:
// CProcessId();
// /**
// If the argument is NULL or the object is invalid then
// false is returned.
// */
// bool operator == (const sal_uInt8 * arId) const;
// void set();
// bool isValid() const;
// };
}
#endif
jvmfwk/source/javasettings.xsd
0 → 100644
Dosyayı görüntüle @
49614181
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : javasettings.xsd
Created on : 25. März 2004, 16:16
Author : jl97489
Description:
Purpose of XML Schema document follows.
-->
<schema
targetNamespace=
"http://openoffice.org/2004/java/framework/1.0"
xmlns:jf=
"http://openoffice.org/2004/java/framework/1.0"
xmlns=
"http://www.w3.org/2001/XMLSchema"
elementFormDefault=
"qualified"
>
<element
name=
"java"
>
<complexType>
<sequence>
<element
name=
"enabled"
nillable=
"true"
default=
"true"
type=
"boolean"
/>
<element
name=
"classesDirectory"
type=
"string"
/>
<element
name=
"userClassPath"
nillable=
"true"
type=
"string"
/>
<element
name=
"javaInfo"
nillable=
"true"
type=
"jf:javaInfoType"
/>
<element
name=
"vmParameters"
nillable=
"true"
type=
"jf:vmParametersType"
/>
</sequence>
</complexType>
</element>
<complexType
name=
"javaInfoType"
>
<sequence>
<element
name=
"vendor"
type=
"string"
/>
<element
name=
"location"
type=
"string"
/>
<element
name=
"version"
type=
"string"
/>
<element
name=
"features"
default=
"0"
type=
"unsignedLong"
/>
<element
name=
"requirements"
default=
"0"
type=
"unsignedLong"
/>
<element
name=
"vendorData"
type=
"base64Binary"
/>
</sequence>
<attribute
name=
"vendorUpdate"
type=
"date"
/>
</complexType>
<complexType
name=
"vmParametersType"
>
<sequence>
<element
name=
"param"
minOccurs=
"0"
maxOccurs=
"unbounded"
type=
"string"
/>
</sequence>
</complexType>
</schema>
jvmfwk/source/libxmlutil.cxx
0 → 100644
Dosyayı görüntüle @
49614181
/*************************************************************************
*
* $RCSfile: libxmlutil.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:55:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (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.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#include "libxmlutil.hxx"
namespace
jfw
{
CXPathObjectPtr
::
CXPathObjectPtr
(
xmlXPathObject
*
aObject
)
:
_object
(
aObject
)
{
}
CXPathObjectPtr
::
CXPathObjectPtr
()
:
_object
(
NULL
)
{
}
CXPathObjectPtr
::~
CXPathObjectPtr
()
{
xmlXPathFreeObject
(
_object
);
}
CXPathObjectPtr
&
CXPathObjectPtr
::
operator
=
(
xmlXPathObject
*
pObj
)
{
if
(
_object
==
pObj
)
return
*
this
;
xmlXPathFreeObject
(
_object
);
_object
=
pObj
;
return
*
this
;
}
xmlXPathObject
*
CXPathObjectPtr
::
operator
->
()
{
return
_object
;
}
CXPathObjectPtr
::
operator
xmlXPathObject
*
()
{
return
_object
;
}
//===========================================================
CXPathContextPtr
::
CXPathContextPtr
(
xmlXPathContext
*
aContext
)
:
_object
(
aContext
)
{
}
CXPathContextPtr
::
CXPathContextPtr
()
:
_object
(
NULL
)
{
}
CXPathContextPtr
::~
CXPathContextPtr
()
{
xmlXPathFreeContext
(
_object
);
}
CXPathContextPtr
&
CXPathContextPtr
::
operator
=
(
xmlXPathContext
*
pObj
)
{
if
(
_object
==
pObj
)
return
*
this
;
xmlXPathFreeContext
(
_object
);
_object
=
pObj
;
return
*
this
;
}
xmlXPathContext
*
CXPathContextPtr
::
operator
->
()
{
return
_object
;
}
CXPathContextPtr
::
operator
xmlXPathContext
*
()
{
return
_object
;
}
//===========================================================
CXmlDocPtr
::
CXmlDocPtr
(
xmlDoc
*
aDoc
)
:
_object
(
aDoc
)
{
}
CXmlDocPtr
::
CXmlDocPtr
()
:
_object
(
NULL
)
{
}
CXmlDocPtr
::~
CXmlDocPtr
()
{
xmlFreeDoc
(
_object
);
}
CXmlDocPtr
&
CXmlDocPtr
::
operator
=
(
xmlDoc
*
pObj
)
{
if
(
_object
==
pObj
)
return
*
this
;
xmlFreeDoc
(
_object
);
_object
=
pObj
;
return
*
this
;
}
xmlDoc
*
CXmlDocPtr
::
operator
->
()
{
return
_object
;
}
CXmlDocPtr
::
operator
xmlDoc
*
()
{
return
_object
;
}
//===========================================================
// CXmlNsPtr::CXmlNsPtr(xmlNs* pNs)
// : _object(pNs)
// {
// }
// CXmlNsPtr::CXmlNsPtr():_object(NULL)
// {
// }
// CXmlNsPtr::~CXmlNsPtr()
// {
// // xmlFreeNs(_object);
// }
// CXmlNsPtr & CXmlNsPtr::operator = (xmlNs* pObj)
// {
// if (_object == pObj)
// return *this;
// xmlFreeNs(_object);
// _object = pObj;
// return *this;
// }
// xmlNs* CXmlNsPtr::operator ->()
// {
// return _object;
// }
// CXmlNsPtr::operator xmlNs*()
// {
// return _object;
// }
//===========================================================
CXmlCharPtr
::
CXmlCharPtr
(
xmlChar
*
aChar
)
:
_object
(
aChar
)
{
}
CXmlCharPtr
::
CXmlCharPtr
()
:
_object
(
NULL
)
{
}
CXmlCharPtr
::~
CXmlCharPtr
()
{
xmlFree
(
_object
);
}
CXmlCharPtr
&
CXmlCharPtr
::
operator
=
(
xmlChar
*
pObj
)
{
if
(
pObj
==
_object
)
return
*
this
;
xmlFree
(
_object
);
_object
=
pObj
;
return
*
this
;
}
xmlChar
*
CXmlCharPtr
::
operator
->
()
{
return
_object
;
}
CXmlCharPtr
::
operator
xmlChar
*
()
{
return
_object
;
}
CXmlCharPtr
::
operator
rtl
::
OUString
()
{
rtl
::
OUString
ret
;
if
(
_object
!=
NULL
)
{
rtl
::
OString
aOStr
((
sal_Char
*
)
_object
);
ret
=
rtl
::
OStringToOUString
(
aOStr
,
RTL_TEXTENCODING_UTF8
);
}
return
ret
;
}
CXmlCharPtr
::
operator
rtl
::
OString
()
{
return
rtl
::
OString
((
sal_Char
*
)
_object
);
}
}
jvmfwk/source/libxmlutil.hxx
0 → 100644
Dosyayı görüntüle @
49614181
/*************************************************************************
*
* $RCSfile: libxmlutil.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:56:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (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.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#if !defined INCLUDED_JVMFWK_LIBXMLUTIL_HXX
#define INCLUDED_JVMFWK_LIBXMLUTIL_HXX
#include "libxml/parser.h"
#include "libxml/xpath.h"
//#include "libxml/xpathinternals.h"
#include "rtl/ustring.hxx"
namespace
jfw
{
class
CXPathObjectPtr
{
xmlXPathObject
*
_object
;
CXPathObjectPtr
&
operator
=
(
const
CXPathObjectPtr
&
);
CXPathObjectPtr
(
const
CXPathObjectPtr
&
);
public
:
CXPathObjectPtr
();
/** Takes ownership of xmlXPathObject
*/
CXPathObjectPtr
(
xmlXPathObject
*
aObject
);
~
CXPathObjectPtr
();
/** Takes ownership of xmlXPathObject
*/
CXPathObjectPtr
&
operator
=
(
xmlXPathObject
*
pObj
);
xmlXPathObject
*
operator
->
();
operator
xmlXPathObject
*
();
};
//===========================================================
class
CXPathContextPtr
{
xmlXPathContext
*
_object
;
CXPathContextPtr
(
const
CXPathContextPtr
&
);
CXPathContextPtr
&
operator
=
(
const
CXPathContextPtr
&
);
public
:
CXPathContextPtr
();
CXPathContextPtr
(
xmlXPathContext
*
aContext
);
CXPathContextPtr
&
operator
=
(
xmlXPathContext
*
pObj
);
~
CXPathContextPtr
();
xmlXPathContext
*
operator
->
();
operator
xmlXPathContext
*
();
};
//===========================================================
class
CXmlDocPtr
{
xmlDoc
*
_object
;
CXmlDocPtr
(
const
CXmlDocPtr
&
);
CXmlDocPtr
&
operator
=
(
const
CXmlDocPtr
&
);
public
:
CXmlDocPtr
();
CXmlDocPtr
(
xmlDoc
*
aDoc
);
/** Takes ownership of xmlDoc
*/
CXmlDocPtr
&
operator
=
(
xmlDoc
*
pObj
);
~
CXmlDocPtr
();
xmlDoc
*
operator
->
();
operator
xmlDoc
*
();
};
//===========================================================
// class CXmlNsPtr
// {
// xmlNs* _object;
// CXmlNsPtr(const CXmlNsPtr&);
// CXmlNsPtr & operator = (const CXmlNsPtr&);
// public:
// CXmlNsPtr();
// CXmlNsPtr(xmlNs* aDoc);
// /** Takes ownership of xmlDoc
// */
// CXmlNsPtr & operator = (xmlNs* pObj);
// ~CXmlNsPtr();
// xmlNs* operator -> ();
// operator xmlNs* ();
// };
//===========================================================
class
CXmlCharPtr
{
xmlChar
*
_object
;
CXmlCharPtr
(
const
CXmlCharPtr
&
);
CXmlCharPtr
&
operator
=
(
const
CXmlCharPtr
&
);
public
:
CXmlCharPtr
();
CXmlCharPtr
(
xmlChar
*
aDoc
);
~
CXmlCharPtr
();
CXmlCharPtr
&
operator
=
(
xmlChar
*
pObj
);
xmlChar
*
operator
->
();
operator
xmlChar
*
();
operator
rtl
::
OUString
();
operator
rtl
::
OString
();
};
}
#endif
jvmfwk/source/makefile.mk
0 → 100644
Dosyayı görüntüle @
49614181
#*************************************************************************
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1 $
#
# last change: $Author: jl $ $Date: 2004-04-19 15:56:28 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
#
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
# Sun Microsystems Inc., October, 2000
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# Sun Industry Standards Source License Version 1.1
# =================================================
# The contents of this file are subject to the Sun Industry Standards
# Source License Version 1.1 (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.openoffice.org/license.html.
#
# Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and
# obligations concerning the Software.
#
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
# Copyright: 2000 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#
#*************************************************************************
PRJ
=
..
PRJNAME
=
jvmfwk
FRAMEWORKLIB
=
javafwk
TARGET
=
$(FRAMEWORKLIB)
#LIBTARGET=NO
ENABLE_EXCEPTIONS
=
TRUE
.INCLUDE
:
settings.mk
DLLPRE
=
.IF
"$(SOLAR_JAVA)"
==
""
nojava
:
@echo
"Not building jvmaccess because Java is disabled"
.ENDIF
UNOUCROUT
=
$(OUT)$/
inc
SLOFILES
=
\
$(SLO)$/
framework.obj
\
$(SLO)$/
libxmlutil.obj
\
$(SLO)$/
fwkutil.obj
\
$(SLO)$/
elements.obj
#LIB1TARGET=$(SLB)$/$(FRAMEWORKLIB).lib
SHL1TARGET
=
$(FRAMEWORKLIB)
SHL1DEPN
=
SHL1IMPLIB
=
i
$(FRAMEWORKLIB)
SHL1LIBS
=
$(SLB)$/$(TARGET)
.lib
SHL1STDLIBS
=
$(CPPULIB)
$(CPPUHELPERLIB)
$(SALLIB)
$(SALHELPERLIB)
ixml2.lib
SHL1VERSIONMAP
=
framework.map
SHL1DEF
=
$(MISC)$/$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
.INCLUDE
:
target.mk
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment