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
fe890193
Kaydet (Commit)
fe890193
authored
Nis 30, 2011
tarafından
Francois Tigeot
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove OS/2 support
üst
601047eb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4 additions
and
76 deletions
+4
-76
npshell.cxx
extensions/source/nsplugin/source/npshell.cxx
+0
-4
makefile.mk
extensions/source/oooimprovecore/makefile.mk
+0
-3
errormail.cxx
extensions/source/oooimprovement/errormail.cxx
+2
-4
makefile.mk
extensions/source/oooimprovement/makefile.mk
+0
-3
xplugin.cxx
extensions/source/plugin/base/xplugin.cxx
+1
-1
impl.hxx
extensions/source/plugin/inc/plugin/impl.hxx
+0
-2
makefile.mk
extensions/source/scanner/makefile.mk
+1
-1
twain.cxx
extensions/source/scanner/twain.cxx
+0
-52
twain.hxx
extensions/source/scanner/twain.hxx
+0
-6
No files found.
extensions/source/nsplugin/source/npshell.cxx
Dosyayı görüntüle @
fe890193
...
@@ -29,10 +29,6 @@
...
@@ -29,10 +29,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_extensions.hxx"
#include "precompiled_extensions.hxx"
#ifdef OS2
#define UNIX
#endif
#ifdef UNIX
#ifdef UNIX
#define XP_UNIX 1
#define XP_UNIX 1
...
...
extensions/source/oooimprovecore/makefile.mk
Dosyayı görüntüle @
fe890193
...
@@ -48,9 +48,6 @@ LIB1FILES= \
...
@@ -48,9 +48,6 @@ LIB1FILES= \
$(SLB)$/$(TARGET)
.lib
\
$(SLB)$/$(TARGET)
.lib
\
SHL1TARGET
=
$(TARGET)$(DLLPOSTFIX)
SHL1TARGET
=
$(TARGET)$(DLLPOSTFIX)
.IF
"$(GUI)"
==
"OS2"
SHL1TARGET
=
oooimpc
$(DLLPOSTFIX)
.ENDIF
SHL1STDLIBS
=
\
SHL1STDLIBS
=
\
$(COMPHELPERLIB)
\
$(COMPHELPERLIB)
\
...
...
extensions/source/oooimprovement/errormail.cxx
Dosyayı görüntüle @
fe890193
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <rtl/string.hxx>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/strbuf.hxx>
#if defined(UNIX)
|| defined(OS2)
#if defined(UNIX)
#include <sys/utsname.h>
#include <sys/utsname.h>
#endif
#endif
#ifdef WIN32
#ifdef WIN32
...
@@ -81,14 +81,12 @@ namespace {
...
@@ -81,14 +81,12 @@ namespace {
return
"Win32"
;
return
"Win32"
;
#elif defined UNIX
#elif defined UNIX
return
"Unix"
;
return
"Unix"
;
#elif defined OS2
return
"OS/2"
;
#else
#else
return
"Unknown"
;
return
"Unknown"
;
#endif
#endif
};
};
#if defined(UNIX)
|| defined(OS2)
#if defined(UNIX)
static
const
OString
getLocale
()
static
const
OString
getLocale
()
{
{
const
char
*
locale
=
getenv
(
"LC_ALL"
);
const
char
*
locale
=
getenv
(
"LC_ALL"
);
...
...
extensions/source/oooimprovement/makefile.mk
Dosyayı görüntüle @
fe890193
...
@@ -66,9 +66,6 @@ SHL1STDLIBS= \
...
@@ -66,9 +66,6 @@ SHL1STDLIBS= \
$(UNOTOOLSLIB)
\
$(UNOTOOLSLIB)
\
SHL1TARGET
=
$(TARGET)$(DLLPOSTFIX)
SHL1TARGET
=
$(TARGET)$(DLLPOSTFIX)
.IF
"$(GUI)"
==
"OS2"
SHL1TARGET
=
oooimp
$(DLLPOSTFIX)
.ENDIF
SHL1LIBS
=
$(SLB)$/$(TARGET)
.lib
SHL1LIBS
=
$(SLB)$/$(TARGET)
.lib
SHL1DEF
=
$(MISC)$/$(SHL1TARGET)
.def
SHL1DEF
=
$(MISC)$/$(SHL1TARGET)
.def
...
...
extensions/source/plugin/base/xplugin.cxx
Dosyayı görüntüle @
fe890193
...
@@ -546,7 +546,7 @@ void XPlugin_Impl::loadPlugin()
...
@@ -546,7 +546,7 @@ void XPlugin_Impl::loadPlugin()
sv
[
0
],
sv
[
0
],
sv
[
1
]
sv
[
1
]
);
);
#elif
(defined WNT || defined OS2)
#elif
defined WNT
PluginComm
*
pComm
=
new
PluginComm_Impl
(
m_aDescription
.
Mimetype
,
PluginComm
*
pComm
=
new
PluginComm_Impl
(
m_aDescription
.
Mimetype
,
m_aDescription
.
PluginName
,
m_aDescription
.
PluginName
,
(
HWND
)
pEnvData
->
hWnd
);
(
HWND
)
pEnvData
->
hWnd
);
...
...
extensions/source/plugin/inc/plugin/impl.hxx
Dosyayı görüntüle @
fe890193
...
@@ -75,8 +75,6 @@
...
@@ -75,8 +75,6 @@
#ifdef WNT
#ifdef WNT
#include <plugin/win/sysplug.hxx>
#include <plugin/win/sysplug.hxx>
#elif defined(OS2)
#include "plugin/os2/sysplug.hxx"
#elif defined(QUARTZ)
#elif defined(QUARTZ)
#include "plugin/aqua/sysplug.hxx"
#include "plugin/aqua/sysplug.hxx"
#elif defined(UNX)
#elif defined(UNX)
...
...
extensions/source/scanner/makefile.mk
Dosyayı görüntüle @
fe890193
...
@@ -46,7 +46,7 @@ SLOFILES+=\
...
@@ -46,7 +46,7 @@ SLOFILES+=\
$(SLO)$/
scanwin.obj
$(SLO)$/
scanwin.obj
.ENDIF
.ENDIF
.IF
"$(GUI)"
==
"UNX"
||
"$(GUI)"
==
"OS2"
.IF
"$(GUI)"
==
"UNX"
SLOFILES
+=
\
SLOFILES
+=
\
$(SLO)$/
sane.obj
\
$(SLO)$/
sane.obj
\
$(SLO)$/
sanedlg.obj
\
$(SLO)$/
sanedlg.obj
\
...
...
extensions/source/scanner/twain.cxx
Dosyayı görüntüle @
fe890193
...
@@ -35,9 +35,6 @@
...
@@ -35,9 +35,6 @@
#if defined( WNT )
#if defined( WNT )
#include <windows.h>
#include <windows.h>
#endif
#endif
#ifdef OS2
#include <svpm.h>
#endif // OS2
#include <osl/module.hxx>
#include <osl/module.hxx>
#include <tools/stream.hxx>
#include <tools/stream.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
...
@@ -56,9 +53,6 @@
...
@@ -56,9 +53,6 @@
#if defined WNT
#if defined WNT
#define TWAIN_LIBNAME "TWAIN_32.DLL"
#define TWAIN_LIBNAME "TWAIN_32.DLL"
#define TWAIN_FUNCNAME "DSM_Entry"
#define TWAIN_FUNCNAME "DSM_Entry"
#elif defined OS2
#define TWAIN_LIBNAME "twain"
#define TWAIN_FUNCNAME "DSM_ENTRY"
#endif
#endif
// -----------
// -----------
...
@@ -71,18 +65,6 @@ static ImpTwain* pImpTwainInstance = NULL;
...
@@ -71,18 +65,6 @@ static ImpTwain* pImpTwainInstance = NULL;
// - Procs -
// - Procs -
// ---------
// ---------
#ifdef OS2
#define PTWAINMSG QMSG*
MRESULT
EXPENTRY
TwainWndProc
(
HWND
hWnd
,
ULONG
nMsg
,
MPARAM
nParam1
,
MPARAM
nParam2
)
{
return
(
MRESULT
)
TRUE
;
}
#else // OS2
#define PTWAINMSG MSG*
#define PTWAINMSG MSG*
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
@@ -113,8 +95,6 @@ static ImpTwain* pImpTwainInstance = NULL;
...
@@ -113,8 +95,6 @@ static ImpTwain* pImpTwainInstance = NULL;
}
}
}
}
#endif // OS2
// ------------
// ------------
// - ImpTwain -
// - ImpTwain -
// ------------
// ------------
...
@@ -142,14 +122,6 @@ ImpTwain::ImpTwain( const Link& rNotifyLink ) :
...
@@ -142,14 +122,6 @@ ImpTwain::ImpTwain( const Link& rNotifyLink ) :
strcpy
(
aAppIdent
.
ProductFamily
,
"Office"
);
strcpy
(
aAppIdent
.
ProductFamily
,
"Office"
);
strcpy
(
aAppIdent
.
ProductName
,
"Office"
);
strcpy
(
aAppIdent
.
ProductName
,
"Office"
);
#ifdef OS2
hAB
=
Sysdepen
::
GethAB
();
ImplFallback
(
TWAIN_EVENT_QUIT
);
// hTwainWnd = WinCreateWindow( HWND_DESKTOP, WC_FRAME, "dummy", 0, 0, 0, 0, 0, HWND_DESKTOP, HWND_BOTTOM, 0, 0, 0 );
#else
HWND
hParentWnd
=
HWND_DESKTOP
;
HWND
hParentWnd
=
HWND_DESKTOP
;
WNDCLASS
aWc
=
{
0
,
&
TwainWndProc
,
0
,
sizeof
(
WNDCLASS
),
GetModuleHandle
(
NULL
),
WNDCLASS
aWc
=
{
0
,
&
TwainWndProc
,
0
,
sizeof
(
WNDCLASS
),
GetModuleHandle
(
NULL
),
NULL
,
NULL
,
NULL
,
NULL
,
"TwainClass"
};
NULL
,
NULL
,
NULL
,
NULL
,
"TwainClass"
};
...
@@ -157,8 +129,6 @@ ImpTwain::ImpTwain( const Link& rNotifyLink ) :
...
@@ -157,8 +129,6 @@ ImpTwain::ImpTwain( const Link& rNotifyLink ) :
RegisterClass
(
&
aWc
);
RegisterClass
(
&
aWc
);
hTwainWnd
=
CreateWindowEx
(
WS_EX_TOPMOST
,
aWc
.
lpszClassName
,
"TWAIN"
,
0
,
0
,
0
,
0
,
0
,
hParentWnd
,
NULL
,
aWc
.
hInstance
,
0
);
hTwainWnd
=
CreateWindowEx
(
WS_EX_TOPMOST
,
aWc
.
lpszClassName
,
"TWAIN"
,
0
,
0
,
0
,
0
,
0
,
hParentWnd
,
NULL
,
aWc
.
hInstance
,
0
);
hTwainHook
=
SetWindowsHookEx
(
WH_GETMESSAGE
,
&
TwainMsgProc
,
NULL
,
GetCurrentThreadId
()
);
hTwainHook
=
SetWindowsHookEx
(
WH_GETMESSAGE
,
&
TwainMsgProc
,
NULL
,
GetCurrentThreadId
()
);
#endif
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -269,11 +239,6 @@ void ImpTwain::ImplOpenSource()
...
@@ -269,11 +239,6 @@ void ImpTwain::ImplOpenSource()
if
(
(
PFUNC
(
&
aAppIdent
,
NULL
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_GETDEFAULT
,
&
aSrcIdent
)
==
TWRC_SUCCESS
)
&&
if
(
(
PFUNC
(
&
aAppIdent
,
NULL
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_GETDEFAULT
,
&
aSrcIdent
)
==
TWRC_SUCCESS
)
&&
(
PFUNC
(
&
aAppIdent
,
NULL
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_OPENDS
,
&
aSrcIdent
)
==
TWRC_SUCCESS
)
)
(
PFUNC
(
&
aAppIdent
,
NULL
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_OPENDS
,
&
aSrcIdent
)
==
TWRC_SUCCESS
)
)
{
{
#ifdef OS2
// negotiate capabilities
#else
TW_CAPABILITY
aCap
=
{
CAP_XFERCOUNT
,
TWON_ONEVALUE
,
GlobalAlloc
(
GHND
,
sizeof
(
TW_ONEVALUE
)
)
};
TW_CAPABILITY
aCap
=
{
CAP_XFERCOUNT
,
TWON_ONEVALUE
,
GlobalAlloc
(
GHND
,
sizeof
(
TW_ONEVALUE
)
)
};
TW_ONEVALUE
*
pVal
=
(
TW_ONEVALUE
*
)
GlobalLock
(
aCap
.
hContainer
);
TW_ONEVALUE
*
pVal
=
(
TW_ONEVALUE
*
)
GlobalLock
(
aCap
.
hContainer
);
...
@@ -282,7 +247,6 @@ void ImpTwain::ImplOpenSource()
...
@@ -282,7 +247,6 @@ void ImpTwain::ImplOpenSource()
GlobalUnlock
(
aCap
.
hContainer
);
GlobalUnlock
(
aCap
.
hContainer
);
PFUNC
(
&
aAppIdent
,
&
aSrcIdent
,
DG_CONTROL
,
DAT_CAPABILITY
,
MSG_SET
,
&
aCap
);
PFUNC
(
&
aAppIdent
,
&
aSrcIdent
,
DG_CONTROL
,
DAT_CAPABILITY
,
MSG_SET
,
&
aCap
);
GlobalFree
(
aCap
.
hContainer
);
GlobalFree
(
aCap
.
hContainer
);
#endif
nCurState
=
4
;
nCurState
=
4
;
}
}
...
@@ -387,11 +351,6 @@ void ImpTwain::ImplXfer()
...
@@ -387,11 +351,6 @@ void ImpTwain::ImplXfer()
case
(
TWRC_XFERDONE
):
case
(
TWRC_XFERDONE
):
{
{
#ifdef OS2
// get OS/2-Bitmap
#else // OS2
const
ULONG
nSize
=
GlobalSize
(
(
HGLOBAL
)
hDIB
);
const
ULONG
nSize
=
GlobalSize
(
(
HGLOBAL
)
hDIB
);
char
*
pBuf
=
(
char
*
)
GlobalLock
(
(
HGLOBAL
)
hDIB
);
char
*
pBuf
=
(
char
*
)
GlobalLock
(
(
HGLOBAL
)
hDIB
);
...
@@ -404,7 +363,6 @@ void ImpTwain::ImplXfer()
...
@@ -404,7 +363,6 @@ void ImpTwain::ImplXfer()
}
}
GlobalFree
(
(
HGLOBAL
)
hDIB
);
GlobalFree
(
(
HGLOBAL
)
hDIB
);
#endif // OS2
// set resolution of bitmap if neccessary
// set resolution of bitmap if neccessary
if
(
(
nXRes
!=
-
1
)
&&
(
nYRes
!=
-
1
)
&&
(
nWidth
!=
-
1
)
&&
(
nHeight
!=
-
1
)
)
if
(
(
nXRes
!=
-
1
)
&&
(
nYRes
!=
-
1
)
&&
(
nWidth
!=
-
1
)
&&
(
nHeight
!=
-
1
)
)
...
@@ -506,14 +464,6 @@ IMPL_LINK( ImpTwain, ImplFallbackHdl, void*, pData )
...
@@ -506,14 +464,6 @@ IMPL_LINK( ImpTwain, ImplFallbackHdl, void*, pData )
IMPL_LINK
(
ImpTwain
,
ImplDestroyHdl
,
void
*
,
p
)
IMPL_LINK
(
ImpTwain
,
ImplDestroyHdl
,
void
*
,
p
)
{
{
#ifdef OS2
if
(
hWndTwain
)
WinDestroyWindow
(
hWndTwain
);
// unset hook
#else
if
(
hTwainWnd
)
if
(
hTwainWnd
)
DestroyWindow
(
hTwainWnd
);
DestroyWindow
(
hTwainWnd
);
...
@@ -521,8 +471,6 @@ IMPL_LINK( ImpTwain, ImplDestroyHdl, void*, p )
...
@@ -521,8 +471,6 @@ IMPL_LINK( ImpTwain, ImplDestroyHdl, void*, p )
if
(
hTwainHook
)
if
(
hTwainHook
)
UnhookWindowsHookEx
(
hTwainHook
);
UnhookWindowsHookEx
(
hTwainHook
);
#endif
delete
this
;
delete
this
;
pImpTwainInstance
=
NULL
;
pImpTwainInstance
=
NULL
;
...
...
extensions/source/scanner/twain.hxx
Dosyayı görüntüle @
fe890193
...
@@ -75,14 +75,8 @@ public:
...
@@ -75,14 +75,8 @@ public:
sal_Bool
ImplHandleMsg
(
void
*
pMsg
);
sal_Bool
ImplHandleMsg
(
void
*
pMsg
);
#ifdef OS2
HAB
hAB
;
HWND
hTwainWnd
;
long
hTwainHook
;
#else
HWND
hTwainWnd
;
HWND
hTwainWnd
;
HHOOK
hTwainHook
;
HHOOK
hTwainHook
;
#endif
public
:
public
:
...
...
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