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
3994dd5e
Kaydet (Commit)
3994dd5e
authored
Agu 14, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/svtools/insdlg.hxx from String to OUString
Change-Id: I72c5e3e47040e78976f46f585b50ab6c12f84986
üst
a067546d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
29 deletions
+29
-29
pastedlg.cxx
cui/source/dialogs/pastedlg.cxx
+11
-11
pastedlg.hxx
cui/source/inc/pastedlg.hxx
+1
-1
insdlg.hxx
include/svtools/insdlg.hxx
+6
-6
cellsh.cxx
sc/source/ui/view/cellsh.cxx
+3
-3
drviews7.cxx
sd/source/ui/view/drviews7.cxx
+2
-2
insdlg.cxx
svtools/source/dialogs/insdlg.cxx
+5
-5
swdtflvr.cxx
sw/source/ui/dochdl/swdtflvr.cxx
+1
-1
No files found.
cui/source/dialogs/pastedlg.cxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -102,7 +102,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
pFormats
=
&
rHelper
.
GetDataFlavorExVector
();
// create and fill dialog box
String
aSourceName
,
aTypeName
;
OU
String
aSourceName
,
aTypeName
;
sal_uLong
nSelFormat
=
0
;
SvGlobalName
aEmptyNm
;
...
...
@@ -115,19 +115,19 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
::
com
::
sun
::
star
::
datatransfer
::
DataFlavor
aFlavor
(
*
aIter
);
SotFormatStringId
nFormat
=
(
*
aIter
++
).
mnSotId
;
::
std
::
map
<
SotFormatStringId
,
String
>::
iterator
itName
=
::
std
::
map
<
SotFormatStringId
,
OU
String
>::
iterator
itName
=
aSupplementMap
.
find
(
nFormat
);
// if there is an "Embed Source" or and "Embedded Object" on the
// Clipboard we read the Description and the Source of this object
// from an accompanied "Object Descriptor" format on the clipboard
// Remember: these formats mostly appear together on the clipboard
String
aName
;
const
String
*
pName
=
NULL
;
OU
String
aName
;
const
OU
String
*
pName
=
NULL
;
if
(
itName
==
aSupplementMap
.
end
()
)
{
SvPasteObjectHelper
::
GetEmbeddedName
(
rHelper
,
aName
,
aSourceName
,
nFormat
);
if
(
aName
.
Len
()
)
if
(
!
aName
.
isEmpty
()
)
pName
=
&
aName
;
}
else
...
...
@@ -155,7 +155,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
{
continue
;
}
else
if
(
!
aName
.
Len
()
)
else
if
(
aName
.
isEmpty
()
)
aName
=
SvPasteObjectHelper
::
GetSotFormatUIName
(
nFormat
);
if
(
LISTBOX_ENTRY_NOTFOUND
==
ObjectLB
().
GetEntryPos
(
aName
)
)
...
...
@@ -164,7 +164,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
}
}
if
(
!
aTypeName
.
Len
()
&&
!
aSourceName
.
Len
()
)
if
(
aTypeName
.
isEmpty
()
&&
aSourceName
.
isEmpty
()
)
{
if
(
aDesc
.
maClassName
!=
aEmptyNm
)
{
...
...
@@ -172,7 +172,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
aTypeName
=
aDesc
.
maTypeName
;
}
if
(
!
aTypeName
.
Len
()
&&
!
aSourceName
.
Len
()
)
if
(
aTypeName
.
isEmpty
()
&&
aSourceName
.
isEmpty
()
)
{
ResMgr
*
pMgr
=
ResMgr
::
CreateResMgr
(
"svt"
,
Application
::
GetSettings
().
GetUILanguageTag
()
);
// global resource from svtools (former so3 resource)
...
...
@@ -185,10 +185,10 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper,
ObjectLB
().
SetUpdateMode
(
sal_True
);
SelectObject
();
if
(
aSourceName
.
Len
()
)
if
(
!
aSourceName
.
isEmpty
()
)
{
if
(
aTypeName
.
Len
()
)
aTypeName
+=
'\n'
;
if
(
!
aTypeName
.
isEmpty
()
)
aTypeName
+=
"
\n
"
;
aTypeName
+=
aSourceName
;
aTypeName
=
convertLineEnd
(
aTypeName
,
GetSystemLineEnd
());
...
...
cui/source/inc/pastedlg.hxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -42,7 +42,7 @@ class SvPasteObjectDialog : public ModalDialog
FixedText
*
m_pFtObjectSource
;
ListBox
*
m_pLbInsertList
;
OKButton
*
m_pOKButton
;
::
std
::
map
<
SotFormatStringId
,
String
>
aSupplementMap
;
::
std
::
map
<
SotFormatStringId
,
OU
String
>
aSupplementMap
;
SvGlobalName
aObjClassName
;
String
aObjName
;
...
...
include/svtools/insdlg.hxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -33,15 +33,15 @@ class SvObjectServer
{
private
:
SvGlobalName
aClassName
;
String
aHumanName
;
OUString
aHumanName
;
public
:
SvObjectServer
(
const
SvGlobalName
&
rClassP
,
const
String
&
rHumanP
)
:
SvObjectServer
(
const
SvGlobalName
&
rClassP
,
const
OU
String
&
rHumanP
)
:
aClassName
(
rClassP
),
aHumanName
(
rHumanP
)
{}
const
SvGlobalName
&
GetClassName
()
const
{
return
aClassName
;
}
const
String
&
GetHumanName
()
const
{
return
aHumanName
;
}
const
OUString
&
GetHumanName
()
const
{
return
aHumanName
;
}
};
typedef
::
std
::
vector
<
SvObjectServer
>
SvObjectServerList_impl
;
...
...
@@ -52,7 +52,7 @@ private:
SvObjectServerList_impl
aObjectServerList
;
public
:
const
SvObjectServer
*
Get
(
const
String
&
rHumanName
)
const
;
const
SvObjectServer
*
Get
(
const
OU
String
&
rHumanName
)
const
;
const
SvObjectServer
*
Get
(
const
SvGlobalName
&
)
const
;
void
Remove
(
const
SvGlobalName
&
);
void
FillInsertObjects
();
...
...
@@ -70,8 +70,8 @@ public:
class
SVT_DLLPUBLIC
SvPasteObjectHelper
{
public
:
static
String
GetSotFormatUIName
(
SotFormatStringId
nId
);
static
sal_Bool
GetEmbeddedName
(
const
TransferableDataHelper
&
rData
,
String
&
_rName
,
String
&
_rSource
,
SotFormatStringId
&
_nFormat
);
static
OU
String
GetSotFormatUIName
(
SotFormatStringId
nId
);
static
sal_Bool
GetEmbeddedName
(
const
TransferableDataHelper
&
rData
,
OUString
&
_rName
,
OU
String
&
_rSource
,
SotFormatStringId
&
_nFormat
);
};
#endif // _SVTOOLS_INSDLG_HXX
...
...
sc/source/ui/view/cellsh.cxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -345,7 +345,7 @@ static sal_Bool lcl_TestFormat( SvxClipboardFmtItem& rFormats, const Transferabl
// translated format name strings are no longer inserted here,
// handled by "paste special" dialog / toolbox controller instead.
// Only the object type name has to be set here:
String
aStrVal
;
OU
String
aStrVal
;
if
(
nFormatId
==
SOT_FORMATSTR_ID_EMBED_SOURCE
)
{
TransferableObjectDescriptor
aDesc
;
...
...
@@ -356,11 +356,11 @@ static sal_Bool lcl_TestFormat( SvxClipboardFmtItem& rFormats, const Transferabl
else
if
(
nFormatId
==
SOT_FORMATSTR_ID_EMBED_SOURCE_OLE
||
nFormatId
==
SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE
)
{
String
aSource
;
OU
String
aSource
;
SvPasteObjectHelper
::
GetEmbeddedName
(
rDataHelper
,
aStrVal
,
aSource
,
nFormatId
);
}
if
(
aStrVal
.
Len
()
)
if
(
!
aStrVal
.
isEmpty
()
)
rFormats
.
AddClipbrdFormat
(
nFormatId
,
aStrVal
);
else
rFormats
.
AddClipbrdFormat
(
nFormatId
);
...
...
sd/source/ui/view/drviews7.cxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -162,8 +162,8 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
}
if
(
bHasFormat
)
{
String
sName
;
String
sSource
;
OU
String
sName
;
OU
String
sSource
;
if
(
SvPasteObjectHelper
::
GetEmbeddedName
(
rDataHelper
,
sName
,
sSource
,
nFormat
))
pResult
->
AddClipbrdFormat
(
nFormat
,
sName
);
}
...
...
svtools/source/dialogs/insdlg.cxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -55,7 +55,7 @@ struct OleObjectDescriptor
/********************** SvObjectServerList ********************************
**************************************************************************/
const
SvObjectServer
*
SvObjectServerList
::
Get
(
const
String
&
rHumanName
)
const
const
SvObjectServer
*
SvObjectServerList
::
Get
(
const
OU
String
&
rHumanName
)
const
{
for
(
size_t
i
=
0
;
i
<
aObjectServerList
.
size
();
i
++
)
{
...
...
@@ -189,7 +189,7 @@ void SvObjectServerList::FillInsertObjects()
}
}
String
SvPasteObjectHelper
::
GetSotFormatUIName
(
SotFormatStringId
nId
)
OU
String
SvPasteObjectHelper
::
GetSotFormatUIName
(
SotFormatStringId
nId
)
{
struct
SotResourcePair
{
...
...
@@ -284,7 +284,7 @@ String SvPasteObjectHelper::GetSotFormatUIName( SotFormatStringId nId )
return
aUIName
;
}
// -----------------------------------------------------------------------------
sal_Bool
SvPasteObjectHelper
::
GetEmbeddedName
(
const
TransferableDataHelper
&
rData
,
String
&
_rName
,
String
&
_rSource
,
SotFormatStringId
&
_nFormat
)
sal_Bool
SvPasteObjectHelper
::
GetEmbeddedName
(
const
TransferableDataHelper
&
rData
,
OUString
&
_rName
,
OUString
&
_rSource
,
SotFormatStringId
&
_nFormat
)
{
sal_Bool
bRet
=
sal_False
;
if
(
_nFormat
==
SOT_FORMATSTR_ID_EMBED_SOURCE_OLE
||
_nFormat
==
SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE
)
...
...
@@ -314,7 +314,7 @@ sal_Bool SvPasteObjectHelper::GetEmbeddedName(const TransferableDataHelper& rDat
reinterpret_cast
<
sal_Char
*
>
(
pOleObjDescr
)
+
pOleObjDescr
->
dwFullUserTypeName
);
_rName
.
Append
(
pUserTypeName
)
;
_rName
+=
pUserTypeName
;
// the following statement was here for historical reasons, it is commented out since it causes bug i49460
// _nFormat = SOT_FORMATSTR_ID_EMBED_SOURCE_OLE;
}
...
...
@@ -331,7 +331,7 @@ sal_Bool SvPasteObjectHelper::GetEmbeddedName(const TransferableDataHelper& rDat
reinterpret_cast
<
sal_Char
*
>
(
pOleObjDescr
)
+
pOleObjDescr
->
dwSrcOfCopy
);
_rSource
.
Append
(
pSrcOfCopy
)
;
_rSource
+=
pSrcOfCopy
;
}
else
_rSource
=
SVT_RESSTR
(
STR_UNKNOWN_SOURCE
);
...
...
sw/source/ui/dochdl/swdtflvr.cxx
Dosyayı görüntüle @
3994dd5e
...
...
@@ -2921,7 +2921,7 @@ void SwTransferable::FillClipFmtItem( const SwWrtShell& rSh,
SotFormatStringId
nFormat
;
if
(
rData
.
HasFormat
(
nFormat
=
SOT_FORMATSTR_ID_EMBED_SOURCE_OLE
)
||
rData
.
HasFormat
(
nFormat
=
SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE
)
)
{
String
sName
,
sSource
;
OU
String
sName
,
sSource
;
if
(
SvPasteObjectHelper
::
GetEmbeddedName
(
rData
,
sName
,
sSource
,
nFormat
)
)
rToFill
.
AddClipbrdFormat
(
nFormat
,
sName
);
}
...
...
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