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
c2960a35
Kaydet (Commit)
c2960a35
authored
Kas 09, 2011
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
int16/32 ->int16/32_t fall-out of new npapi.h
üst
9a715820
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
sysplug.cxx
extensions/source/plugin/aqua/sysplug.cxx
+12
-12
sysplug.hxx
extensions/source/plugin/inc/plugin/aqua/sysplug.hxx
+3
-3
No files found.
extensions/source/plugin/aqua/sysplug.cxx
Dosyayı görüntüle @
c2960a35
...
@@ -368,8 +368,8 @@ long MacPluginComm::doIt()
...
@@ -368,8 +368,8 @@ long MacPluginComm::doIt()
?
(
*
m_aNPPfuncs
.
newp
)(
?
(
*
m_aNPPfuncs
.
newp
)(
(
NPMIMEType
)
m_aArgs
[
0
],
(
NPMIMEType
)
m_aArgs
[
0
],
(
NPP
)
m_aArgs
[
1
],
(
NPP
)
m_aArgs
[
1
],
(
uint16
)(
sal_IntPtr
)
m_aArgs
[
2
],
(
uint16
_t
)(
sal_IntPtr
)
m_aArgs
[
2
],
(
int16
)(
sal_IntPtr
)
m_aArgs
[
3
],
(
int16
_t
)(
sal_IntPtr
)
m_aArgs
[
3
],
(
char
**
)
m_aArgs
[
4
],
(
char
**
)
m_aArgs
[
4
],
(
char
**
)
m_aArgs
[
5
],
(
char
**
)
m_aArgs
[
5
],
(
NPSavedData
*
)
m_aArgs
[
6
]
)
(
NPSavedData
*
)
m_aArgs
[
6
]
)
...
@@ -392,7 +392,7 @@ long MacPluginComm::doIt()
...
@@ -392,7 +392,7 @@ long MacPluginComm::doIt()
(
NPMIMEType
)
m_aArgs
[
1
],
(
NPMIMEType
)
m_aArgs
[
1
],
(
NPStream
*
)
m_aArgs
[
2
],
(
NPStream
*
)
m_aArgs
[
2
],
(
NPBool
)(
sal_IntPtr
)
m_aArgs
[
3
],
(
NPBool
)(
sal_IntPtr
)
m_aArgs
[
3
],
(
uint16
*
)
m_aArgs
[
4
]
)
(
uint16
_t
*
)
m_aArgs
[
4
]
)
:
NPERR_GENERIC_ERROR
);
:
NPERR_GENERIC_ERROR
);
break
;
break
;
case
eNPP_Print
:
case
eNPP_Print
:
...
@@ -442,13 +442,13 @@ long MacPluginComm::doIt()
...
@@ -442,13 +442,13 @@ long MacPluginComm::doIt()
m_aArgs
[
3
]
);
m_aArgs
[
3
]
);
break
;
break
;
case
eNPP_Write
:
case
eNPP_Write
:
TRACEN
(
"eNPP_Write n="
,
(
int32
)
m_aArgs
[
3
]
);
TRACEN
(
"eNPP_Write n="
,
(
int32
_t
)
m_aArgs
[
3
]
);
nRet
=
(
m_aNPPfuncs
.
write
nRet
=
(
m_aNPPfuncs
.
write
?
(
*
m_aNPPfuncs
.
write
)(
?
(
*
m_aNPPfuncs
.
write
)(
(
NPP
)
m_aArgs
[
0
],
(
NPP
)
m_aArgs
[
0
],
(
NPStream
*
)
m_aArgs
[
1
],
(
NPStream
*
)
m_aArgs
[
1
],
(
int32
)
m_aArgs
[
2
],
(
int32
_t
)
m_aArgs
[
2
],
(
int32
)
m_aArgs
[
3
],
(
int32
_t
)
m_aArgs
[
3
],
m_aArgs
[
4
]
)
m_aArgs
[
4
]
)
:
0
);
:
0
);
break
;
break
;
...
@@ -540,7 +540,7 @@ NPError MacPluginComm::NPP_DestroyStream( NPP instance, NPStream* stream, NPErro
...
@@ -540,7 +540,7 @@ NPError MacPluginComm::NPP_DestroyStream( NPP instance, NPStream* stream, NPErro
}
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
NPError
MacPluginComm
::
NPP_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
mode
,
int16
argc
,
NPError
MacPluginComm
::
NPP_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
_t
mode
,
int16_t
argc
,
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
{
{
XPlugin_Impl
*
pImpl
=
XPluginManager_Impl
::
getXPluginFromNPP
(
instance
);
XPlugin_Impl
*
pImpl
=
XPluginManager_Impl
::
getXPluginFromNPP
(
instance
);
...
@@ -553,7 +553,7 @@ NPError MacPluginComm::NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode
...
@@ -553,7 +553,7 @@ NPError MacPluginComm::NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
fprintf
(
stderr
,
"NPP_New( %s. %p, %d, %d"
,
fprintf
(
stderr
,
"NPP_New( %s. %p, %d, %d"
,
pluginType
,
instance
,
(
int
)
mode
,
(
int
)
argc
);
pluginType
,
instance
,
(
int
)
mode
,
(
int
)
argc
);
for
(
int16
i
=
0
;
i
<
argc
;
i
++
)
for
(
int16
_t
i
=
0
;
i
<
argc
;
i
++
)
fprintf
(
stderr
,
"
\n
%s = %s"
,
argn
[
i
],
argv
[
i
]
);
fprintf
(
stderr
,
"
\n
%s = %s"
,
argn
[
i
],
argv
[
i
]
);
fprintf
(
stderr
,
", %p )
\n
"
,
saved
);
fprintf
(
stderr
,
", %p )
\n
"
,
saved
);
#endif
#endif
...
@@ -571,7 +571,7 @@ NPError MacPluginComm::NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode
...
@@ -571,7 +571,7 @@ NPError MacPluginComm::NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
NPError
MacPluginComm
::
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPError
MacPluginComm
::
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
*
stype
)
NPBool
seekable
,
uint16
_t
*
stype
)
{
{
DBG_ASSERT
(
m_aNPPfuncs
.
newstream
,
"### NPP_NewStream(): null pointer in NPP functions table!"
);
DBG_ASSERT
(
m_aNPPfuncs
.
newstream
,
"### NPP_NewStream(): null pointer in NPP functions table!"
);
m_eCall
=
eNPP_NewStream
;
m_eCall
=
eNPP_NewStream
;
...
@@ -637,7 +637,7 @@ void MacPluginComm::NPP_URLNotify( NPP instance, const char* url, NPReason reaso
...
@@ -637,7 +637,7 @@ void MacPluginComm::NPP_URLNotify( NPP instance, const char* url, NPReason reaso
}
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
int32
MacPluginComm
::
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
)
int32
_t
MacPluginComm
::
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32_t
len
,
void
*
buffer
)
{
{
DBG_ASSERT
(
m_aNPPfuncs
.
write
,
"### NPP_Write(): null pointer in NPP functions table!"
);
DBG_ASSERT
(
m_aNPPfuncs
.
write
,
"### NPP_Write(): null pointer in NPP functions table!"
);
m_eCall
=
eNPP_Write
;
m_eCall
=
eNPP_Write
;
...
@@ -650,7 +650,7 @@ int32 MacPluginComm::NPP_Write( NPP instance, NPStream* stream, int32 offset, in
...
@@ -650,7 +650,7 @@ int32 MacPluginComm::NPP_Write( NPP instance, NPStream* stream, int32 offset, in
}
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
int32
MacPluginComm
::
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
int32
_t
MacPluginComm
::
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
{
{
DBG_ASSERT
(
m_aNPPfuncs
.
writeready
,
"### NPP_WriteReady(): null pointer in NPP functions table!"
);
DBG_ASSERT
(
m_aNPPfuncs
.
writeready
,
"### NPP_WriteReady(): null pointer in NPP functions table!"
);
m_eCall
=
eNPP_WriteReady
;
m_eCall
=
eNPP_WriteReady
;
...
@@ -805,7 +805,7 @@ void MacPluginComm::drawView( XPlugin_Impl* i_pImpl )
...
@@ -805,7 +805,7 @@ void MacPluginComm::drawView( XPlugin_Impl* i_pImpl )
NSWindow
*
pWin
=
[
rPlugData
.
m_pPlugView
window
];
NSWindow
*
pWin
=
[
rPlugData
.
m_pPlugView
window
];
FakeEventRecord
aRec
;
FakeEventRecord
aRec
;
aRec
.
what
=
updateEvt
;
aRec
.
what
=
updateEvt
;
aRec
.
message
=
(
UInt32
)[
pWin
windowRef
];
aRec
.
message
=
(
uint32_t
)[
pWin
windowRef
];
this
->
NPP_HandleEvent
(
i_pImpl
->
getNPPInstance
(),
&
aRec
);
this
->
NPP_HandleEvent
(
i_pImpl
->
getNPPInstance
(),
&
aRec
);
}
}
...
...
extensions/source/plugin/inc/plugin/aqua/sysplug.hxx
Dosyayı görüntüle @
c2960a35
...
@@ -125,12 +125,12 @@ public:
...
@@ -125,12 +125,12 @@ public:
virtual
void
NPP_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
virtual
void
NPP_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
virtual
void
NPP_URLNotify
(
NPP
instance
,
const
char
*
url
,
virtual
void
NPP_URLNotify
(
NPP
instance
,
const
char
*
url
,
NPReason
reason
,
void
*
notifyData
);
NPReason
reason
,
void
*
notifyData
);
virtual
int32_t
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
virtual
int32_t
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32_t
len
,
void
*
buffer
);
int32_t
len
,
void
*
buffer
);
virtual
int32_t
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
virtual
int32_t
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
virtual
NPError
NPP_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
ret_value
);
virtual
NPError
NPP_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
ret_value
);
virtual
NPError
NPP_SetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
ret_value
);
virtual
NPError
NPP_SetValue
(
NPP
instance
,
NPNVariable
variable
,
void
*
ret_value
);
virtual
int16_t
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
virtual
int16_t
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
virtual
NPError
NPP_SetWindow
(
XPlugin_Impl
*
);
virtual
NPError
NPP_SetWindow
(
XPlugin_Impl
*
);
virtual
NPError
NPP_Destroy
(
XPlugin_Impl
*
,
NPSavedData
**
save
);
virtual
NPError
NPP_Destroy
(
XPlugin_Impl
*
,
NPSavedData
**
save
);
...
...
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