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
06193462
Kaydet (Commit)
06193462
authored
Eyl 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: Id600a5ee28440ee91c7089c8f7aa05f83bc0e63c
üst
bd1da371
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
sane.cxx
extensions/source/scanner/sane.cxx
+1
-1
sane.hxx
extensions/source/scanner/sane.hxx
+4
-4
sanedlg.cxx
extensions/source/scanner/sanedlg.cxx
+2
-3
sanedlg.hxx
extensions/source/scanner/sanedlg.hxx
+4
-4
No files found.
extensions/source/scanner/sane.cxx
Dosyayı görüntüle @
06193462
...
@@ -281,7 +281,7 @@ void Sane::ReloadOptions()
...
@@ -281,7 +281,7 @@ void Sane::ReloadOptions()
CheckConsistency
(
NULL
,
true
);
CheckConsistency
(
NULL
,
true
);
maReloadOptionsLink
.
Call
(
this
);
maReloadOptionsLink
.
Call
(
*
this
);
}
}
bool
Sane
::
Open
(
const
char
*
name
)
bool
Sane
::
Open
(
const
char
*
name
)
...
...
extensions/source/scanner/sane.hxx
Dosyayı görüntüle @
06193462
...
@@ -96,7 +96,7 @@ private:
...
@@ -96,7 +96,7 @@ private:
int
mnDevice
;
int
mnDevice
;
SANE_Handle
maHandle
;
SANE_Handle
maHandle
;
Link
<
>
maReloadOptionsLink
;
Link
<
Sane
&
,
void
>
maReloadOptionsLink
;
static
inline
oslGenericFunction
static
inline
oslGenericFunction
LoadSymbol
(
const
char
*
);
LoadSymbol
(
const
char
*
);
...
@@ -168,7 +168,7 @@ public:
...
@@ -168,7 +168,7 @@ public:
bool
Start
(
BitmapTransporter
&
);
bool
Start
(
BitmapTransporter
&
);
inline
Link
<
>
SetReloadOptionsHdl
(
const
Link
<
>&
rLink
);
inline
Link
<
Sane
&
,
void
>
SetReloadOptionsHdl
(
const
Link
<
Sane
&
,
void
>&
rLink
);
};
};
inline
int
Sane
::
GetOptionElements
(
int
n
)
inline
int
Sane
::
GetOptionElements
(
int
n
)
...
@@ -181,9 +181,9 @@ inline int Sane::GetOptionElements( int n )
...
@@ -181,9 +181,9 @@ inline int Sane::GetOptionElements( int n )
return
1
;
return
1
;
}
}
inline
Link
<
>
Sane
::
SetReloadOptionsHdl
(
const
Link
<
>&
rLink
)
inline
Link
<
Sane
&
,
void
>
Sane
::
SetReloadOptionsHdl
(
const
Link
<
Sane
&
,
void
>&
rLink
)
{
{
Link
<>
aRet
=
maReloadOptionsLink
;
Link
<
Sane
&
,
void
>
aRet
=
maReloadOptionsLink
;
maReloadOptionsLink
=
rLink
;
maReloadOptionsLink
=
rLink
;
return
aRet
;
return
aRet
;
}
}
...
...
extensions/source/scanner/sanedlg.cxx
Dosyayı görüntüle @
06193462
...
@@ -662,7 +662,7 @@ IMPL_LINK_TYPED( SaneDlg, ClickBtnHdl, Button*, pButton, void )
...
@@ -662,7 +662,7 @@ IMPL_LINK_TYPED( SaneDlg, ClickBtnHdl, Button*, pButton, void )
}
}
else
if
(
pButton
==
mpAdvancedBox
)
else
if
(
pButton
==
mpAdvancedBox
)
{
{
ReloadSaneOptionsHdl
(
NULL
);
ReloadSaneOptionsHdl
(
mrSane
);
}
}
}
}
if
(
pButton
==
mpOKButton
||
pButton
==
mpScanButton
)
if
(
pButton
==
mpOKButton
||
pButton
==
mpScanButton
)
...
@@ -873,14 +873,13 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit )
...
@@ -873,14 +873,13 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit )
return
0
;
return
0
;
}
}
IMPL_LINK
(
SaneDlg
,
ReloadSaneOptionsHdl
,
Sane
*
,
/*pSane*/
)
IMPL_LINK
_NOARG_TYPED
(
SaneDlg
,
ReloadSaneOptionsHdl
,
Sane
&
,
void
)
{
{
mnCurrentOption
=
-
1
;
mnCurrentOption
=
-
1
;
mnCurrentElement
=
0
;
mnCurrentElement
=
0
;
DisableOption
();
DisableOption
();
InitFields
();
InitFields
();
mpPreview
->
Invalidate
();
mpPreview
->
Invalidate
();
return
0
;
}
}
void
SaneDlg
::
AcquirePreview
()
void
SaneDlg
::
AcquirePreview
()
...
...
extensions/source/scanner/sanedlg.hxx
Dosyayı görüntüle @
06193462
...
@@ -35,10 +35,10 @@ class ScanPreview;
...
@@ -35,10 +35,10 @@ class ScanPreview;
class
SaneDlg
:
public
ModalDialog
class
SaneDlg
:
public
ModalDialog
{
{
private
:
private
:
Sane
&
mrSane
;
Sane
&
mrSane
;
bool
mbScanEnabled
;
bool
mbScanEnabled
;
Link
<
>
maOldLink
;
Link
<
Sane
&
,
void
>
maOldLink
;
VclPtr
<
OKButton
>
mpOKButton
;
VclPtr
<
OKButton
>
mpOKButton
;
VclPtr
<
CancelButton
>
mpCancelButton
;
VclPtr
<
CancelButton
>
mpCancelButton
;
...
@@ -83,7 +83,7 @@ private:
...
@@ -83,7 +83,7 @@ private:
DECL_LINK_TYPED
(
ClickBtnHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickBtnHdl
,
Button
*
,
void
);
DECL_LINK
(
SelectHdl
,
ListBox
*
);
DECL_LINK
(
SelectHdl
,
ListBox
*
);
DECL_LINK
(
ModifyHdl
,
Edit
*
);
DECL_LINK
(
ModifyHdl
,
Edit
*
);
DECL_LINK
(
ReloadSaneOptionsHdl
,
Sane
*
);
DECL_LINK
_TYPED
(
ReloadSaneOptionsHdl
,
Sane
&
,
void
);
DECL_LINK_TYPED
(
OptionsBoxSelectHdl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
OptionsBoxSelectHdl
,
SvTreeListBox
*
,
void
);
void
SaveState
();
void
SaveState
();
...
...
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