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
641b6f20
Kaydet (Commit)
641b6f20
authored
Mar 18, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more cast hell
Change-Id: I125c08ed182786cbdae7b5afabdab0754c31053a
üst
4e463709
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
18 deletions
+14
-18
svdde.hxx
include/svl/svdde.hxx
+1
-1
ddedata.cxx
svl/source/svdde/ddedata.cxx
+5
-9
ddesvr.cxx
svl/source/svdde/ddesvr.cxx
+7
-7
ddedummy.cxx
svl/unx/source/svdde/ddedummy.cxx
+1
-1
No files found.
include/svl/svdde.hxx
Dosyayı görüntüle @
641b6f20
...
...
@@ -290,7 +290,7 @@ class SVL_DLLPUBLIC DdeTopic
public
:
virtual
void
Connect
(
sal_IntPtr
);
virtual
void
Disconnect
(
sal_IntPtr
);
virtual
DdeData
*
Get
(
sal_uLong
);
virtual
DdeData
*
Get
(
SotClipboardFormatId
);
virtual
bool
Put
(
const
DdeData
*
);
virtual
bool
Execute
(
const
OUString
*
);
// Eventually create a new item. return 0 -> Item creation failed
...
...
svl/source/svdde/ddedata.cxx
Dosyayı görüntüle @
641b6f20
...
...
@@ -118,25 +118,21 @@ sal_uLong DdeData::GetExternalFormat(SotClipboardFormatId nFmt)
switch
(
nFmt
)
{
case
SotClipboardFormatId
:
:
STRING
:
nFmt
=
CF_TEXT
;
break
;
return
CF_TEXT
;
case
SotClipboardFormatId
:
:
BITMAP
:
nFmt
=
CF_BITMAP
;
break
;
return
CF_BITMAP
;
case
SotClipboardFormatId
:
:
GDIMETAFILE
:
nFmt
=
CF_METAFILEPICT
;
break
;
return
CF_METAFILEPICT
;
default
:
{
#if defined(WNT)
OUString
aName
(
SotExchange
::
GetFormatName
(
nFmt
)
);
if
(
!
aName
.
isEmpty
()
)
nFmt
=
RegisterClipboardFormat
(
reinterpret_cast
<
LPCWSTR
>
(
aName
.
getStr
())
);
return
RegisterClipboardFormat
(
reinterpret_cast
<
LPCWSTR
>
(
aName
.
getStr
())
);
#endif
}
}
return
nFmt
;
return
static_cast
<
sal_uLong
>
(
nFmt
)
;
}
SotClipboardFormatId
DdeData
::
GetInternalFormat
(
sal_uLong
nFmt
)
...
...
svl/source/svdde/ddesvr.cxx
Dosyayı görüntüle @
641b6f20
...
...
@@ -572,19 +572,19 @@ bool DdeService::HasFormat(SotClipboardFormatId nFmt)
void
DdeService
::
AddFormat
(
SotClipboardFormatId
nFmt
)
{
n
Fmt
=
DdeData
::
GetExternalFormat
(
nFmt
);
sal_uLong
nExternal
Fmt
=
DdeData
::
GetExternalFormat
(
nFmt
);
for
(
size_t
i
=
0
,
n
=
aFormats
.
size
();
i
<
n
;
++
i
)
if
(
(
sal_uLong
)
aFormats
[
i
]
==
nFmt
)
if
(
(
sal_uLong
)
aFormats
[
i
]
==
n
External
Fmt
)
return
;
aFormats
.
push_back
(
nFmt
);
aFormats
.
push_back
(
n
External
Fmt
);
}
void
DdeService
::
RemoveFormat
(
SotClipboardFormatId
nFmt
)
{
n
Fmt
=
DdeData
::
GetExternalFormat
(
nFmt
);
sal_uLong
nExternal
Fmt
=
DdeData
::
GetExternalFormat
(
nFmt
);
for
(
DdeFormats
::
iterator
it
=
aFormats
.
begin
();
it
!=
aFormats
.
end
();
++
it
)
{
if
(
(
sal_uLong
)
*
it
==
nFmt
)
if
(
(
sal_uLong
)
*
it
==
n
External
Fmt
)
{
aFormats
.
erase
(
it
);
break
;
...
...
@@ -697,7 +697,7 @@ void DdeTopic::_Disconnect( sal_IntPtr nId )
Disconnect
(
nId
);
}
DdeData
*
DdeTopic
::
Get
(
sal_uIntPtr
nFmt
)
DdeData
*
DdeTopic
::
Get
(
SotClipboardFormatId
nFmt
)
{
if
(
aGetLink
.
IsSet
()
)
return
(
DdeData
*
)
aGetLink
.
Call
(
(
void
*
)
nFmt
);
...
...
@@ -872,7 +872,7 @@ DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem )
nType
=
DDEGETPUTITEM
;
}
DdeData
*
DdeGetPutItem
::
Get
(
sal_uLong
)
DdeData
*
DdeGetPutItem
::
Get
(
SotClipboardFormatId
)
{
return
0
;
}
...
...
svl/unx/source/svdde/ddedummy.cxx
Dosyayı görüntüle @
641b6f20
...
...
@@ -166,7 +166,7 @@ void DdeTopic::RemoveItem( SAL_UNUSED_PARAMETER const DdeItem& )
{
}
DdeData
*
DdeTopic
::
Get
(
SAL_UNUSED_PARAMETER
sal_uLong
)
DdeData
*
DdeTopic
::
Get
(
SAL_UNUSED_PARAMETER
SotClipboardFormatId
)
{
return
NULL
;
}
...
...
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