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
6b962735
Kaydet (Commit)
6b962735
authored
May 28, 2003
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS vcl09 (1.3.22); FILE MERGED
2003/05/08 18:46:09 pl 1.3.22.1: #109426# make rpnp.so work on Linux
üst
5a8fcac8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
29 deletions
+39
-29
makefile.mk
extensions/source/plugin/unx/makefile.mk
+5
-5
npnapi.cxx
extensions/source/plugin/unx/npnapi.cxx
+34
-24
No files found.
extensions/source/plugin/unx/makefile.mk
Dosyayı görüntüle @
6b962735
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#
#
# $RCSfile: makefile.mk,v $
# $RCSfile: makefile.mk,v $
#
#
# $Revision: 1.
3
$
# $Revision: 1.
4
$
#
#
# last change: $Author:
hr $ $Date: 2003-03-25 16:03:4
2 $
# last change: $Author:
vg $ $Date: 2003-05-28 12:38:1
2 $
#
#
# The Contents of this file are made available subject to the terms of
# The Contents of this file are made available subject to the terms of
# either of the following licenses
# either of the following licenses
...
@@ -89,12 +89,12 @@ APP1STDLIBS=\
...
@@ -89,12 +89,12 @@ APP1STDLIBS=\
$(VOSLIB)
\
$(VOSLIB)
\
$(SALLIB)
$(SALLIB)
.IF
"$(OS)"
==
"SOLARIS"
||
"$(OS)"
==
"SCO"
||
"$(OS)"
==
"HPUX"
.IF
"$(OS)"
==
"SOLARIS"
||
"$(OS)"
==
"SCO"
||
"$(OS)"
==
"HPUX"
APP1STDLIBS
+=
-lXm
-lXt
-lX11
-ldl
APP1STDLIBS
+=
-lXm
-lXt
-lX
ext
-lX
11
-ldl
.ELSE
.ELSE
.IF
"$(OS)"
==
"FREEBSD"
.IF
"$(OS)"
==
"FREEBSD"
APP1STDLIBS
+=
-lXaw
-lXt
-lX11
APP1STDLIBS
+=
-lXaw
-lXt
-lX
ext
-lX
11
.ELSE
.ELSE
APP1STDLIBS
+=
-lXaw
-lXt
-lX11
-ldl
APP1STDLIBS
+=
-lXaw
-lXt
-lX
ext
-lX
11
-ldl
.ENDIF
.ENDIF
.ENDIF
.ENDIF
...
...
extensions/source/plugin/unx/npnapi.cxx
Dosyayı görüntüle @
6b962735
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Source Code Control System - Header
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/plugin/unx/npnapi.cxx,v 1.
3 2003-03-25 16:03:42 hr
Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/plugin/unx/npnapi.cxx,v 1.
4 2003-05-28 12:38:30 vg
Exp $
*************************************************************************/
*************************************************************************/
#include <plugin/unx/plugcon.hxx>
#include <plugin/unx/plugcon.hxx>
...
@@ -91,7 +91,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -91,7 +91,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
if
(
pMessage
=
GetNextMessage
(
FALSE
)
)
if
(
pMessage
=
GetNextMessage
(
FALSE
)
)
{
{
nCommand
=
(
CommandAtoms
)
pMessage
->
GetUINT32
();
nCommand
=
(
CommandAtoms
)
pMessage
->
GetUINT32
();
medDebug
(
1
,
"%s
\n
"
,
GetCommandName
(
nCommand
)
);
medDebug
(
1
,
"
xhello:
%s
\n
"
,
GetCommandName
(
nCommand
)
);
switch
(
nCommand
)
switch
(
nCommand
)
{
{
case
eNPP_DestroyStream
:
case
eNPP_DestroyStream
:
...
@@ -123,7 +123,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -123,7 +123,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
"0000"
,
4
,
"0000"
,
4
,
NULL
);
NULL
);
delete
pSave
->
buf
;
delete
[]
pSave
->
buf
;
delete
m_aInstances
.
Remove
(
nInstance
);
delete
m_aInstances
.
Remove
(
nInstance
);
delete
instance
;
delete
instance
;
}
}
...
@@ -147,7 +147,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -147,7 +147,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
&
nStype
,
sizeof
(
nStype
),
&
nStype
,
sizeof
(
nStype
),
NULL
);
NULL
);
delete
pType
;
delete
[]
pType
;
}
}
break
;
break
;
case
eNPP_New
:
case
eNPP_New
:
...
@@ -179,9 +179,9 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -179,9 +179,9 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
Respond
(
pMessage
->
m_nID
,
Respond
(
pMessage
->
m_nID
,
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
NULL
);
NULL
);
delete
pMode
;
delete
[]
pMode
;
delete
pArgc
;
delete
[]
pArgc
;
delete
pType
;
delete
[]
pType
;
}
}
break
;
break
;
case
eNPP_SetWindow
:
case
eNPP_SetWindow
:
...
@@ -214,6 +214,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -214,6 +214,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
XtWindow
(
topLevel
),
XtWindow
(
topLevel
),
DefaultScreen
(
pAppDisplay
)
DefaultScreen
(
pAppDisplay
)
);
);
XtMapWidget
(
(
Widget
)
pInst
->
pShell
);
XtMapWidget
(
(
Widget
)
pInst
->
pWidget
);
XtMapWidget
(
(
Widget
)
pInst
->
pWidget
);
XRaiseWindow
(
pAppDisplay
,
XtWindow
((
Widget
)
pInst
->
pWidget
)
);
XRaiseWindow
(
pAppDisplay
,
XtWindow
((
Widget
)
pInst
->
pWidget
)
);
XSync
(
pAppDisplay
,
False
);
XSync
(
pAppDisplay
,
False
);
...
@@ -230,7 +231,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -230,7 +231,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
Respond
(
pMessage
->
m_nID
,
Respond
(
pMessage
->
m_nID
,
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
(
char
*
)
&
aRet
,
sizeof
(
aRet
),
NULL
);
NULL
);
delete
pWindow
;
delete
[]
pWindow
;
}
}
break
;
break
;
case
eNPP_StreamAsFile
:
case
eNPP_StreamAsFile
:
...
@@ -242,7 +243,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -242,7 +243,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
char
*
fname
=
pMessage
->
GetString
();
char
*
fname
=
pMessage
->
GetString
();
medDebug
(
1
,
"NPP_StreamAsFile %s
\n
"
,
fname
);
medDebug
(
1
,
"NPP_StreamAsFile %s
\n
"
,
fname
);
aPluginFuncs
.
asfile
(
instance
,
pStream
,
fname
);
aPluginFuncs
.
asfile
(
instance
,
pStream
,
fname
);
delete
fname
;
delete
[]
fname
;
}
}
break
;
break
;
case
eNPP_URLNotify
:
case
eNPP_URLNotify
:
...
@@ -253,9 +254,9 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -253,9 +254,9 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
NPReason
*
pReason
=
(
NPReason
*
)
pMessage
->
GetBytes
();
NPReason
*
pReason
=
(
NPReason
*
)
pMessage
->
GetBytes
();
void
**
notifyData
=
(
void
**
)
pMessage
->
GetBytes
();
void
**
notifyData
=
(
void
**
)
pMessage
->
GetBytes
();
aPluginFuncs
.
urlnotify
(
instance
,
url
,
*
pReason
,
*
notifyData
);
aPluginFuncs
.
urlnotify
(
instance
,
url
,
*
pReason
,
*
notifyData
);
delete
url
;
delete
[]
url
;
delete
pReason
;
delete
[]
pReason
;
delete
notifyData
;
delete
[]
notifyData
;
}
}
break
;
break
;
case
eNPP_WriteReady
:
case
eNPP_WriteReady
:
...
@@ -283,7 +284,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -283,7 +284,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
Respond
(
pMessage
->
m_nID
,
Respond
(
pMessage
->
m_nID
,
(
char
*
)
&
nRet
,
sizeof
(
nRet
),
(
char
*
)
&
nRet
,
sizeof
(
nRet
),
NULL
);
NULL
);
delete
buffer
;
delete
[]
buffer
;
}
}
break
;
break
;
case
eNPP_GetMIMEDescription
:
case
eNPP_GetMIMEDescription
:
...
@@ -303,8 +304,10 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -303,8 +304,10 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
pNP_Initialize
=
pNP_Initialize
=
(
NPError
(
*
)(
NPNetscapeFuncs
*
,
NPPluginFuncs
*
))
(
NPError
(
*
)(
NPNetscapeFuncs
*
,
NPPluginFuncs
*
))
dlsym
(
pPluginLib
,
"NP_Initialize"
);
dlsym
(
pPluginLib
,
"NP_Initialize"
);
medDebug
(
!
pNP_Initialize
,
"no NP_Initialize, %s
\n
"
,
dlerror
()
);
pNP_Shutdown
=
(
NPError
(
*
)())
pNP_Shutdown
=
(
NPError
(
*
)())
dlsym
(
pPluginLib
,
"NP_Shutdown"
);
dlsym
(
pPluginLib
,
"NP_Shutdown"
);
medDebug
(
!
pNP_Initialize
,
"no NP_Shutdown, %s
\n
"
,
dlerror
()
);
medDebug
(
1
,
"entering NP_Initialize
\n
"
);
medDebug
(
1
,
"entering NP_Initialize
\n
"
);
NPError
aRet
=
pNP_Initialize
(
&
aNetscapeFuncs
,
&
aPluginFuncs
);
NPError
aRet
=
pNP_Initialize
(
&
aNetscapeFuncs
,
&
aPluginFuncs
);
...
@@ -330,18 +333,18 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
...
@@ -330,18 +333,18 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
// begin Netscape plugin api calls
// begin Netscape plugin api calls
extern
"C"
{
extern
"C"
{
void
*
NPN_MemAlloc
(
UINT32
nBytes
)
void
*
NPN_MemAlloc
(
UINT32
nBytes
)
{
{
void
*
pMem
=
malloc
(
nBytes
)
;
void
*
pMem
=
new
char
[
nBytes
]
;
return
pMem
;
return
pMem
;
}
}
void
NPN_MemFree
(
void
*
pMem
)
void
NPN_MemFree
(
void
*
pMem
)
{
{
free
(
pMem
)
;
delete
[]
(
char
*
)
pMem
;
}
}
UINT32
NPN_MemFlush
(
UINT32
nSize
)
UINT32
NPN_MemFlush
(
UINT32
nSize
)
{
{
return
0
;
return
0
;
}
}
...
@@ -362,7 +365,7 @@ NPError NPN_DestroyStream( NPP instance, NPStream* stream, NPError reason )
...
@@ -362,7 +365,7 @@ NPError NPN_DestroyStream( NPP instance, NPStream* stream, NPError reason )
return
NPERR_GENERIC_ERROR
;
return
NPERR_GENERIC_ERROR
;
pConnector
->
m_aNPWrapStreams
.
Remove
(
stream
);
pConnector
->
m_aNPWrapStreams
.
Remove
(
stream
);
delete
stream
->
url
;
delete
[]
stream
->
url
;
delete
stream
;
delete
stream
;
// returns NPError
// returns NPError
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
...
@@ -391,11 +394,13 @@ NPError NPN_DestroyStream( NPP instance, NPStream* stream, NPError reason )
...
@@ -391,11 +394,13 @@ NPError NPN_DestroyStream( NPP instance, NPStream* stream, NPError reason )
POST_STRING
(
url
),
POST_STRING
(
url
),
POST_STRING
(
window
),
POST_STRING
(
window
),
NULL
);
NULL
);
medDebug
(
!
pMes
,
"geturl: message unaswered
\n
"
);
if
(
!
pMes
)
if
(
!
pMes
)
return
NPERR_GENERIC_ERROR
;
return
NPERR_GENERIC_ERROR
;
// returns NPError
// returns NPError
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
medDebug
(
aRet
,
"geturl returns %d
\n
"
,
(
int
)
aRet
);
delete
pMes
;
delete
pMes
;
return
aRet
;
return
aRet
;
}
}
...
@@ -528,7 +533,7 @@ NPError NPN_RequestRead( NPStream* stream, NPByteRange* rangeList )
...
@@ -528,7 +533,7 @@ NPError NPN_RequestRead( NPStream* stream, NPByteRange* rangeList )
return
NPERR_GENERIC_ERROR
;
return
NPERR_GENERIC_ERROR
;
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
NPError
aRet
=
pConnector
->
GetNPError
(
pMes
);
delete
pArray
;
delete
[]
pArray
;
delete
pMes
;
delete
pMes
;
return
aRet
;
return
aRet
;
}
}
...
@@ -551,11 +556,12 @@ const char* NPN_UserAgent( NPP instance )
...
@@ -551,11 +556,12 @@ const char* NPN_UserAgent( NPP instance )
Transact
(
eNPN_UserAgent
,
Transact
(
eNPN_UserAgent
,
&
nInstance
,
sizeof
(
nInstance
),
&
nInstance
,
sizeof
(
nInstance
),
NULL
);
NULL
);
if
(
!
pMes
)
if
(
!
pMes
)
return
pAgent
;
return
pAgent
;
if
(
pAgent
)
if
(
pAgent
)
delete
pAgent
;
delete
[]
pAgent
;
pAgent
=
pMes
->
GetString
();
pAgent
=
pMes
->
GetString
();
delete
pMes
;
delete
pMes
;
...
@@ -625,19 +631,23 @@ NPError NPN_GetValue( NPP instance, NPNVariable variable, void* value )
...
@@ -625,19 +631,23 @@ NPError NPN_GetValue( NPP instance, NPNVariable variable, void* value )
NPError
NPN_SetValue
(
NPP
instance
,
NPPVariable
variable
,
NPError
NPN_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
)
void
*
value
)
{
{
medDebug
(
1
,
"NPN_SetValue %d=%p
\n
"
,
variable
,
value
);
return
0
;
return
0
;
}
}
void
NPN_InvalidateRect
(
NPP
instance
,
NPRect
*
invalidRect
)
void
NPN_InvalidateRect
(
NPP
instance
,
NPRect
*
invalidRect
)
{
{
medDebug
(
1
,
"NPN_InvalidateRect
\n
"
);
}
}
void
NPN_InvalidateRegion
(
NPP
instance
,
NPRegion
invalidRegion
)
void
NPN_InvalidateRegion
(
NPP
instance
,
NPRegion
invalidRegion
)
{
{
medDebug
(
1
,
"NPN_InvalidateRegion
\n
"
);
}
}
void
NPN_ForceRedraw
(
NPP
instance
)
void
NPN_ForceRedraw
(
NPP
instance
)
{
{
medDebug
(
1
,
"NPN_ForceRedraw
\n
"
);
}
}
}
}
...
...
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