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
39ff18d0
Kaydet (Commit)
39ff18d0
authored
Nis 01, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
UniString->rtl::OUString and drop globals
üst
b6ceb0a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
clipfmtitem.hxx
svx/inc/svx/clipfmtitem.hxx
+3
-6
clipfmtitem.cxx
svx/source/items/clipfmtitem.cxx
+6
-9
swdtflvr.cxx
sw/source/ui/dochdl/swdtflvr.cxx
+2
-2
No files found.
svx/inc/svx/clipfmtitem.hxx
Dosyayı görüntüle @
39ff18d0
...
...
@@ -28,13 +28,10 @@
#ifndef _SVX_CLIPFMTITEM_HXX
#define _SVX_CLIPFMTITEM_HXX
// include ---------------------------------------------------------------
#include <tools/gen.hxx>
#include <rtl/ustring.hxx>
#include <svl/poolitem.hxx>
#include "svx/svxdllapi.h"
// class SvxClipboardFmtItem ----------------------------------------------
struct
SvxClipboardFmtItem_Impl
;
class
SVX_DLLPUBLIC
SvxClipboardFmtItem
:
public
SfxPoolItem
...
...
@@ -55,12 +52,12 @@ public:
virtual
bool
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
);
void
AddClipbrdFormat
(
sal_uIntPtr
nId
,
sal_uInt16
nPos
=
USHRT_MAX
);
void
AddClipbrdFormat
(
sal_uIntPtr
nId
,
const
String
&
rName
,
void
AddClipbrdFormat
(
sal_uIntPtr
nId
,
const
rtl
::
OU
String
&
rName
,
sal_uInt16
nPos
=
USHRT_MAX
);
sal_uInt16
Count
()
const
;
sal_uIntPtr
GetClipbrdFormatId
(
sal_uInt16
nPos
)
const
;
const
String
&
GetClipbrdFormatName
(
sal_uInt16
nPos
)
const
;
const
rtl
::
OUString
GetClipbrdFormatName
(
sal_uInt16
nPos
)
const
;
};
...
...
svx/source/items/clipfmtitem.cxx
Dosyayı görüntüle @
39ff18d0
...
...
@@ -34,16 +34,13 @@
struct
SvxClipboardFmtItem_Impl
{
boost
::
ptr_vector
<
boost
::
nullable
<
String
>
>
aFmtNms
;
boost
::
ptr_vector
<
boost
::
nullable
<
rtl
::
OU
String
>
>
aFmtNms
;
std
::
vector
<
sal_uIntPtr
>
aFmtIds
;
static
String
sEmptyStr
;
SvxClipboardFmtItem_Impl
()
{}
SvxClipboardFmtItem_Impl
(
const
SvxClipboardFmtItem_Impl
&
);
};
String
SvxClipboardFmtItem_Impl
::
sEmptyStr
;
TYPEINIT1_FACTORY
(
SvxClipboardFmtItem
,
SfxPoolItem
,
new
SvxClipboardFmtItem
(
0
));
SvxClipboardFmtItem_Impl
::
SvxClipboardFmtItem_Impl
(
...
...
@@ -96,7 +93,7 @@ bool SvxClipboardFmtItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_
pImpl
->
aFmtIds
.
clear
();
pImpl
->
aFmtNms
.
clear
();
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
++
n
)
AddClipbrdFormat
(
sal_uIntPtr
(
aClipFormats
.
Identifiers
[
n
]
),
aClipFormats
.
Names
[
n
],
n
);
return
true
;
...
...
@@ -140,13 +137,13 @@ void SvxClipboardFmtItem::AddClipbrdFormat( sal_uIntPtr nId, sal_uInt16 nPos )
pImpl
->
aFmtIds
.
insert
(
pImpl
->
aFmtIds
.
begin
()
+
nPos
,
nId
);
}
void
SvxClipboardFmtItem
::
AddClipbrdFormat
(
sal_uIntPtr
nId
,
const
String
&
rName
,
void
SvxClipboardFmtItem
::
AddClipbrdFormat
(
sal_uIntPtr
nId
,
const
rtl
::
OU
String
&
rName
,
sal_uInt16
nPos
)
{
if
(
nPos
>
pImpl
->
aFmtNms
.
size
()
)
nPos
=
pImpl
->
aFmtNms
.
size
();
pImpl
->
aFmtNms
.
insert
(
pImpl
->
aFmtNms
.
begin
()
+
nPos
,
new
String
(
rName
));
pImpl
->
aFmtNms
.
insert
(
pImpl
->
aFmtNms
.
begin
()
+
nPos
,
new
rtl
::
OU
String
(
rName
));
pImpl
->
aFmtIds
.
insert
(
pImpl
->
aFmtIds
.
begin
()
+
nPos
,
nId
);
}
...
...
@@ -160,9 +157,9 @@ sal_uIntPtr SvxClipboardFmtItem::GetClipbrdFormatId( sal_uInt16 nPos ) const
return
pImpl
->
aFmtIds
[
nPos
];
}
const
String
&
SvxClipboardFmtItem
::
GetClipbrdFormatName
(
sal_uInt16
nPos
)
const
const
rtl
::
OUString
SvxClipboardFmtItem
::
GetClipbrdFormatName
(
sal_uInt16
nPos
)
const
{
return
pImpl
->
aFmtNms
.
is_null
(
nPos
)
?
SvxClipboardFmtItem_Impl
::
sEmptyStr
:
pImpl
->
aFmtNms
[
nPos
];
return
pImpl
->
aFmtNms
.
is_null
(
nPos
)
?
rtl
::
OUString
()
:
pImpl
->
aFmtNms
[
nPos
];
}
...
...
sw/source/ui/dochdl/swdtflvr.cxx
Dosyayı görüntüle @
39ff18d0
...
...
@@ -2831,7 +2831,7 @@ void SwTransferable::FillClipFmtItem( const SwWrtShell& rSh,
if
(
nResId
)
rToFill
.
AddClipbrdFormat
(
SOT_FORMATSTR_ID_EMBED_SOURCE
,
SW_RES
(
nResId
)
);
SW_RES
STR
(
nResId
)
);
}
else
{
...
...
@@ -2856,7 +2856,7 @@ void SwTransferable::FillClipFmtItem( const SwWrtShell& rSh,
}
if
(
SwTransferable
::
_TestAllowedFormat
(
rData
,
SOT_FORMATSTR_ID_LINK
,
nDest
))
rToFill
.
AddClipbrdFormat
(
SOT_FORMATSTR_ID_LINK
,
SW_RES
(
STR_DDEFORMAT
)
);
rToFill
.
AddClipbrdFormat
(
SOT_FORMATSTR_ID_LINK
,
SW_RES
STR
(
STR_DDEFORMAT
)
);
for
(
sal_uInt16
*
pIds
=
aPasteSpecialIds
;
*
pIds
;
++
pIds
)
if
(
SwTransferable
::
_TestAllowedFormat
(
rData
,
*
pIds
,
nDest
))
...
...
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