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
1b233cf9
Kaydet (Commit)
1b233cf9
authored
May 06, 2011
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix to build
üst
0105e425
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
ddectrl.cxx
basic/source/runtime/ddectrl.cxx
+10
-10
ddectrl.hxx
basic/source/runtime/ddectrl.hxx
+4
-4
No files found.
basic/source/runtime/ddectrl.cxx
Dosyayı görüntüle @
1b233cf9
...
@@ -123,18 +123,18 @@ SbError SbiDdeControl::Initiate( const String& rService, const String& rTopic,
...
@@ -123,18 +123,18 @@ SbError SbiDdeControl::Initiate( const String& rService, const String& rTopic,
return
0
;
return
0
;
}
}
SbError
SbiDdeControl
::
Terminate
(
sal_Int16
nChannel
)
SbError
SbiDdeControl
::
Terminate
(
sal_
u
Int16
nChannel
)
{
{
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
std
::
vector
<
DdeConnection
*>
iterConv
=
aConvList
.
begin
()
+
nChannel
-
1
;
DdeConnection
*
pConv
=
aConvList
[
nChannel
-
1
]
;
if
(
*
iter
Conv
==
DDE_FREECHANNEL
)
if
(
p
Conv
==
DDE_FREECHANNEL
)
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
delete
*
iter
Conv
;
delete
p
Conv
;
*
iter
Conv
=
DDE_FREECHANNEL
;
p
Conv
=
DDE_FREECHANNEL
;
return
0L
;
return
0L
;
}
}
...
@@ -142,7 +142,7 @@ SbError SbiDdeControl::Terminate( sal_Int16 nChannel )
...
@@ -142,7 +142,7 @@ SbError SbiDdeControl::Terminate( sal_Int16 nChannel )
SbError
SbiDdeControl
::
TerminateAll
()
SbError
SbiDdeControl
::
TerminateAll
()
{
{
DdeConnection
*
conv
;
DdeConnection
*
conv
;
for
(
sal_Int16
nChannel
=
0
;
nChannel
<
aConvList
.
size
();
++
nChannel
)
for
(
sal_
u
Int16
nChannel
=
0
;
nChannel
<
aConvList
.
size
();
++
nChannel
)
{
{
conv
=
aConvList
[
nChannel
];
conv
=
aConvList
[
nChannel
];
...
@@ -155,7 +155,7 @@ SbError SbiDdeControl::TerminateAll()
...
@@ -155,7 +155,7 @@ SbError SbiDdeControl::TerminateAll()
return
0
;
return
0
;
}
}
SbError
SbiDdeControl
::
Request
(
sal_Int16
nChannel
,
const
String
&
rItem
,
String
&
rResult
)
SbError
SbiDdeControl
::
Request
(
sal_
u
Int16
nChannel
,
const
String
&
rItem
,
String
&
rResult
)
{
{
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
...
@@ -172,14 +172,14 @@ SbError SbiDdeControl::Request( sal_Int16 nChannel, const String& rItem, String&
...
@@ -172,14 +172,14 @@ SbError SbiDdeControl::Request( sal_Int16 nChannel, const String& rItem, String&
return
GetLastErr
(
pConv
);
return
GetLastErr
(
pConv
);
}
}
SbError
SbiDdeControl
::
Execute
(
sal_Int16
nChannel
,
const
String
&
rCommand
)
SbError
SbiDdeControl
::
Execute
(
sal_
u
Int16
nChannel
,
const
String
&
rCommand
)
{
{
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
DdeConnection
*
pConv
=
aConvList
[
nChannel
-
1
];
DdeConnection
*
pConv
=
aConvList
[
nChannel
-
1
];
if
(
c
onv
==
DDE_FREECHANNEL
)
if
(
pC
onv
==
DDE_FREECHANNEL
)
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
DdeExecute
aRequest
(
*
pConv
,
rCommand
,
30000
);
DdeExecute
aRequest
(
*
pConv
,
rCommand
,
30000
);
...
@@ -187,7 +187,7 @@ SbError SbiDdeControl::Execute( sal_Int16 nChannel, const String& rCommand )
...
@@ -187,7 +187,7 @@ SbError SbiDdeControl::Execute( sal_Int16 nChannel, const String& rCommand )
return
GetLastErr
(
pConv
);
return
GetLastErr
(
pConv
);
}
}
SbError
SbiDdeControl
::
Poke
(
sal_Int16
nChannel
,
const
String
&
rItem
,
const
String
&
rData
)
SbError
SbiDdeControl
::
Poke
(
sal_
u
Int16
nChannel
,
const
String
&
rItem
,
const
String
&
rData
)
{
{
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
if
(
!
nChannel
||
nChannel
>
aConvList
.
size
())
return
SbERR_DDE_NO_CHANNEL
;
return
SbERR_DDE_NO_CHANNEL
;
...
...
basic/source/runtime/ddectrl.hxx
Dosyayı görüntüle @
1b233cf9
...
@@ -52,11 +52,11 @@ public:
...
@@ -52,11 +52,11 @@ public:
SbError
Initiate
(
const
String
&
rService
,
const
String
&
rTopic
,
SbError
Initiate
(
const
String
&
rService
,
const
String
&
rTopic
,
sal_Int16
&
rnHandle
);
sal_Int16
&
rnHandle
);
SbError
Terminate
(
sal_Int16
nChannel
);
SbError
Terminate
(
sal_
u
Int16
nChannel
);
SbError
TerminateAll
();
SbError
TerminateAll
();
SbError
Request
(
sal_Int16
nChannel
,
const
String
&
rItem
,
String
&
rResult
);
SbError
Request
(
sal_
u
Int16
nChannel
,
const
String
&
rItem
,
String
&
rResult
);
SbError
Execute
(
sal_Int16
nChannel
,
const
String
&
rCommand
);
SbError
Execute
(
sal_
u
Int16
nChannel
,
const
String
&
rCommand
);
SbError
Poke
(
sal_Int16
nChannel
,
const
String
&
rItem
,
const
String
&
rData
);
SbError
Poke
(
sal_
u
Int16
nChannel
,
const
String
&
rItem
,
const
String
&
rData
);
};
};
#endif
#endif
...
...
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