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
b406c513
Kaydet (Commit)
b406c513
authored
Mar 03, 2011
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed dead code; fix a comment
üst
70baa487
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2 additions
and
51 deletions
+2
-51
javaldx.cxx
jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
+0
-1
sunversion.cxx
jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
+1
-1
util.cxx
jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+0
-5
vendorlist.hxx
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx
+0
-9
elements.cxx
jvmfwk/source/elements.cxx
+1
-6
framework.cxx
jvmfwk/source/framework.cxx
+0
-6
framework.hxx
jvmfwk/source/framework.hxx
+0
-1
fwkutil.hxx
jvmfwk/source/fwkutil.hxx
+0
-4
libxmlutil.hxx
jvmfwk/source/libxmlutil.hxx
+0
-18
No files found.
jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
Dosyayı görüntüle @
b406c513
...
...
@@ -47,7 +47,6 @@ using ::rtl::OString;
static
sal_Bool
hasOption
(
char
const
*
szOption
,
int
argc
,
char
**
argv
);
static
rtl
::
OString
getLD_LIBRARY_PATH
(
const
rtl
::
ByteSequence
&
vendorData
);
static
bool
findAndSelect
(
JavaInfo
**
);
//static sal_Bool printPaths(const OUString& sPathFile);
#define HELP_TEXT \
"\njavaldx is necessary to make Java work on some UNIX platforms." \
...
...
jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
Dosyayı görüntüle @
b406c513
...
...
@@ -128,7 +128,7 @@ bool SunVersion::init(const char *szVersion)
//check next character
if
(
!
(
(
pCur
<
pEnd
)
&&
(
(
nPart
<
3
)
&&
isdigit
(
*
pCur
))))
//(*pCur >= 48 && *pCur <=57))))
&&
(
(
nPart
<
3
)
&&
isdigit
(
*
pCur
))))
return
false
;
}
else
...
...
jvmfwk/plugins/sunmajor/pluginlib/util.cxx
Dosyayı görüntüle @
b406c513
...
...
@@ -157,7 +157,6 @@ namespace
{
OUString
const
&
operator
()()
{
// osl::Guard<osl::Mutex> g(osl::GetGlobalMutex());
static
OUString
sIni
;
rtl
::
OUStringBuffer
buf
(
255
);
buf
.
append
(
getLibraryLocation
());
...
...
@@ -456,8 +455,6 @@ bool getJavaProps(const OUString & exePath,
rs
=
stdoutReader
.
readLine
(
&
aLine
);
if
(
rs
!=
FileHandleReader
::
RESULT_OK
)
break
;
// JFW_TRACE2(OString("[Java framework] line:\" ")
// + aLine + OString(" \".\n"));
OUString
sLine
;
if
(
!
decodeOutput
(
aLine
,
&
sLine
))
continue
;
...
...
@@ -515,7 +512,6 @@ bool decodeOutput(const rtl::OString& s, rtl::OUString* out)
}
while
(
nIndex
>=
0
);
*
out
=
buff
.
makeStringAndClear
();
// JFW_TRACE2(*out);
return
true
;
}
...
...
@@ -559,7 +555,6 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey,
DWORD
dwIndex
=
0
;
const
DWORD
BUFFSIZE
=
1024
;
wchar_t
bufVersion
[
BUFFSIZE
];
// char bufVersion[BUFFSIZE];
DWORD
nNameLen
=
BUFFSIZE
;
FILETIME
fileTime
;
nNameLen
=
sizeof
(
bufVersion
);
...
...
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx
Dosyayı görüntüle @
b406c513
...
...
@@ -35,18 +35,9 @@
namespace
jfw_plugin
{
//extern VendorSupportMapEntry gVendorMap[];
typedef
char
const
*
const
*
(
*
getJavaExePaths_func
)(
int
*
);
typedef
rtl
::
Reference
<
VendorBase
>
(
*
createInstance_func
)
();
// struct Blas
// {
// char const * sVendorName;
// getJavaExePaths_func getJavaFunc;
// createInstance_func createFunc;
// };
struct
VendorSupportMapEntry
{
char
const
*
sVendorName
;
...
...
jvmfwk/source/elements.cxx
Dosyayı görüntüle @
b406c513
...
...
@@ -44,8 +44,6 @@
#include "rtl/bootstrap.hxx"
#include "boost/optional.hpp"
#include <string.h>
// #define NS_JAVA_FRAMEWORK "http://openoffice.org/2004/java/framework/1.0"
// #define NS_SCHEMA_INSTANCE "http://www.w3.org/2001/XMLSchema-instance"
using
namespace
osl
;
...
...
@@ -154,13 +152,12 @@ void createSettingsStructure(xmlDoc * document, bool * bNeedsSave)
nodeCrLf
=
xmlNewText
((
xmlChar
*
)
"
\n
"
);
xmlAddChild
(
root
,
nodeCrLf
);
//<javaInfo xsi:nil="true"
autoSelect="true"
>
//<javaInfo xsi:nil="true">
xmlNode
*
nodeJava
=
xmlNewTextChild
(
root
,
NULL
,
(
xmlChar
*
)
"javaInfo"
,
(
xmlChar
*
)
""
);
if
(
nodeJava
==
NULL
)
throw
FrameworkException
(
JFW_E_ERROR
,
sExcMsg
);
xmlSetNsProp
(
nodeJava
,
nsXsi
,(
xmlChar
*
)
"nil"
,(
xmlChar
*
)
"true"
);
// xmlSetProp(nodeJava,(xmlChar*) "autoSelect",(xmlChar*) "true");
//add a new line
nodeCrLf
=
xmlNewText
((
xmlChar
*
)
"
\n
"
);
xmlAddChild
(
root
,
nodeCrLf
);
...
...
@@ -733,7 +730,6 @@ jfw::FileStatus NodeJava::checkSettingsFileStatus() const
//that after removing the file and shortly later creating it again
//did not change the creation time. That is the newly created file
//had the creation time of the former file.
// ::TimeValue time = stat.getCreationTime();
::
TimeValue
modTime
=
stat
.
getModifyTime
();
::
TimeValue
curTime
=
{
0
,
0
};
if
(
sal_True
==
::
osl_getSystemTime
(
&
curTime
))
...
...
@@ -746,7 +742,6 @@ jfw::FileStatus NodeJava::checkSettingsFileStatus() const
fprintf
(
stderr
,
"[Java framework] Deleting settings file at
\n
%s
\n
"
,
s
.
getStr
());
#endif
//delete file
// File::RC rc_rem = File::remove(sURL);
File
f
(
sURL
);
if
(
File
::
E_None
==
f
.
open
(
osl_File_OpenFlag_Write
|
osl_File_OpenFlag_Read
)
&&
File
::
E_None
==
f
.
setPos
(
0
,
0
)
...
...
jvmfwk/source/framework.cxx
Dosyayı görüntüle @
b406c513
...
...
@@ -162,8 +162,6 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo ***pparInfo, sal_Int32 *pSi
for
(
citLoc
ii
=
vecJRELocations
.
begin
();
ii
!=
vecJRELocations
.
end
();
++
ii
)
{
// rtl::OUString sLocation =
// rtl::OStringToOUString(*ii, RTL_TEXTENCODING_UTF8);
jfw
::
CJavaInfo
aInfo
;
plerr
=
(
*
jfw_plugin_getJavaInfoByPathFunc
)(
ii
->
pData
,
...
...
@@ -1256,10 +1254,6 @@ CJavaInfo::operator JavaInfo const * () const
{
return
pInfo
;
}
// ::JavaInfo** CJavaInfo::operator & ()
// {
// return & pInfo;
// }
rtl
::
OUString
CJavaInfo
::
getVendor
()
const
{
...
...
jvmfwk/source/framework.hxx
Dosyayı görüntüle @
b406c513
...
...
@@ -104,7 +104,6 @@ public:
void
attach
(
::
JavaInfo
*
pInfo
);
::
JavaInfo
*
detach
();
const
::
JavaInfo
*
operator
->
()
const
;
// ::JavaInfo** operator & ();
operator
::
JavaInfo
*
();
operator
::
JavaInfo
const
*
()
const
;
::
JavaInfo
*
cloneJavaInfo
()
const
;
...
...
jvmfwk/source/fwkutil.hxx
Dosyayı görüntüle @
b406c513
...
...
@@ -69,15 +69,11 @@ struct Bootstrap :
struct
FwkMutex
:
public
::
rtl
::
Static
<
osl
::
Mutex
,
FwkMutex
>
{};
//osl::Mutex * getFwkMutex();
rtl
::
ByteSequence
encodeBase16
(
const
rtl
::
ByteSequence
&
rawData
);
rtl
::
ByteSequence
decodeBase16
(
const
rtl
::
ByteSequence
&
data
);
rtl
::
OUString
getPlatform
();
//const rtl::Bootstrap& getBootstrap();
rtl
::
OUString
getDirFromFile
(
const
rtl
::
OUString
&
usFilePath
);
...
...
jvmfwk/source/libxmlutil.hxx
Dosyayı görüntüle @
b406c513
...
...
@@ -87,24 +87,6 @@ public:
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
{
...
...
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