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
97a3009a
Kaydet (Commit)
97a3009a
authored
Ock 14, 2008
tarafından
Ivo Hinkelmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS wae4extensions (1.10.90); FILE MERGED
2007/09/27 10:20:02 fs 1.10.90.1: #i81612# warning-free code
üst
c08d8341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
scanwin.cxx
extensions/source/scanner/scanwin.cxx
+11
-8
No files found.
extensions/source/scanner/scanwin.cxx
Dosyayı görüntüle @
97a3009a
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
*
*
* $RCSfile: scanwin.cxx,v $
* $RCSfile: scanwin.cxx,v $
*
*
* $Revision: 1.1
0
$
* $Revision: 1.1
1
$
*
*
* last change: $Author:
vg $ $Date: 2007-03-26 13:10:38
$
* last change: $Author:
ihi $ $Date: 2008-01-14 15:04:05
$
*
*
* The Contents of this file are made available subject to
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
* the terms of GNU Lesser General Public License Version 2.1.
...
@@ -86,7 +86,11 @@
...
@@ -86,7 +86,11 @@
#include <vcl/sysdata.hxx>
#include <vcl/sysdata.hxx>
#include <vcl/salbtype.hxx>
#include <vcl/salbtype.hxx>
#include "scanner.hxx"
#include "scanner.hxx"
#pragma warning (push,1)
#pragma warning (disable:4668)
#include "twain/twain.h"
#include "twain/twain.h"
#pragma warning (pop)
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
...
@@ -584,7 +588,7 @@ IMPL_LINK( ImpTwain, ImplFallbackHdl, void*, pData )
...
@@ -584,7 +588,7 @@ IMPL_LINK( ImpTwain, ImplFallbackHdl, void*, pData )
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
IMPL_LINK
(
ImpTwain
,
ImplDestroyHdl
,
void
*
,
p
)
IMPL_LINK
(
ImpTwain
,
ImplDestroyHdl
,
void
*
,
/*p*/
)
{
{
if
(
hTwainWnd
)
if
(
hTwainWnd
)
DestroyWindow
(
hTwainWnd
);
DestroyWindow
(
hTwainWnd
);
...
@@ -727,7 +731,7 @@ void ImpTwain::ImplDeregisterCloseListener()
...
@@ -727,7 +731,7 @@ void ImpTwain::ImplDeregisterCloseListener()
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SAL_CALL
ImpTwain
::
queryClosing
(
const
lang
::
EventObject
&
Source
,
sal_Bool
GetsOwnership
)
throw
(
util
::
CloseVetoException
,
uno
::
RuntimeException
)
void
SAL_CALL
ImpTwain
::
queryClosing
(
const
lang
::
EventObject
&
/*Source*/
,
sal_Bool
GetsOwnership
)
throw
(
util
::
CloseVetoException
,
uno
::
RuntimeException
)
{
{
// shall we re-send the close query later on?
// shall we re-send the close query later on?
mbCloseFrameOnExit
=
GetsOwnership
;
mbCloseFrameOnExit
=
GetsOwnership
;
...
@@ -738,7 +742,7 @@ void SAL_CALL ImpTwain::queryClosing( const lang::EventObject& Source, sal_Bool
...
@@ -738,7 +742,7 @@ void SAL_CALL ImpTwain::queryClosing( const lang::EventObject& Source, sal_Bool
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SAL_CALL
ImpTwain
::
notifyClosing
(
const
lang
::
EventObject
&
Source
)
throw
(
uno
::
RuntimeException
)
void
SAL_CALL
ImpTwain
::
notifyClosing
(
const
lang
::
EventObject
&
/*Source*/
)
throw
(
uno
::
RuntimeException
)
{
{
// should not happen
// should not happen
DBG_ERROR
(
"ImpTwain::notifyClosing called, but we vetoed the closing before!"
);
DBG_ERROR
(
"ImpTwain::notifyClosing called, but we vetoed the closing before!"
);
...
@@ -746,7 +750,7 @@ void SAL_CALL ImpTwain::notifyClosing( const lang::EventObject& Source ) throw (
...
@@ -746,7 +750,7 @@ void SAL_CALL ImpTwain::notifyClosing( const lang::EventObject& Source ) throw (
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SAL_CALL
ImpTwain
::
disposing
(
const
lang
::
EventObject
&
Source
)
throw
(
uno
::
RuntimeException
)
void
SAL_CALL
ImpTwain
::
disposing
(
const
lang
::
EventObject
&
/*Source*/
)
throw
(
uno
::
RuntimeException
)
{
{
// we're not holding any references to the frame, thus noop
// we're not holding any references to the frame, thus noop
}
}
...
@@ -967,7 +971,6 @@ SEQ( sal_Int8 ) ScannerManager::getDIB() throw()
...
@@ -967,7 +971,6 @@ SEQ( sal_Int8 ) ScannerManager::getDIB() throw()
{
{
HGLOBAL
hDIB
=
(
HGLOBAL
)(
long
)
mpData
;
HGLOBAL
hDIB
=
(
HGLOBAL
)(
long
)
mpData
;
const
sal_uInt32
nDIBSize
=
GlobalSize
(
hDIB
);
const
sal_uInt32
nDIBSize
=
GlobalSize
(
hDIB
);
sal_uInt32
nSize
=
sizeof
(
BITMAPFILEHEADER
)
+
nDIBSize
;
BITMAPINFOHEADER
*
pBIH
=
(
BITMAPINFOHEADER
*
)
GlobalLock
(
hDIB
);
BITMAPINFOHEADER
*
pBIH
=
(
BITMAPINFOHEADER
*
)
GlobalLock
(
hDIB
);
if
(
pBIH
)
if
(
pBIH
)
...
@@ -1080,7 +1083,7 @@ ScanError SAL_CALL ScannerManager::getError( const ScannerContext& rContext )
...
@@ -1080,7 +1083,7 @@ ScanError SAL_CALL ScannerManager::getError( const ScannerContext& rContext )
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
uno
::
Reference
<
awt
::
XBitmap
>
SAL_CALL
ScannerManager
::
getBitmap
(
const
ScannerContext
&
rContext
)
uno
::
Reference
<
awt
::
XBitmap
>
SAL_CALL
ScannerManager
::
getBitmap
(
const
ScannerContext
&
/*rContext*/
)
throw
(
ScannerException
)
throw
(
ScannerException
)
{
{
vos
::
OGuard
aGuard
(
maProtector
);
vos
::
OGuard
aGuard
(
maProtector
);
...
...
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