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
2ffd82c3
Kaydet (Commit)
2ffd82c3
authored
Kas 01, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XubString->OUString
Change-Id: Iea7d8681cdcd45d545826af63fc689640dfe29f0
üst
5346394e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
ctypeitm.hxx
svl/inc/svl/ctypeitm.hxx
+3
-3
stritem.hxx
svl/inc/svl/stritem.hxx
+1
-1
ctypeitm.cxx
svl/source/items/ctypeitm.cxx
+6
-6
No files found.
svl/inc/svl/ctypeitm.hxx
Dosyayı görüntüle @
2ffd82c3
...
@@ -28,13 +28,13 @@ class CntContentTypeItem : public CntUnencodedStringItem
...
@@ -28,13 +28,13 @@ class CntContentTypeItem : public CntUnencodedStringItem
{
{
private
:
private
:
INetContentType
_eType
;
INetContentType
_eType
;
XubString
_aPresentation
;
OUString
_aPresentation
;
public
:
public
:
TYPEINFO
();
TYPEINFO
();
CntContentTypeItem
();
CntContentTypeItem
();
CntContentTypeItem
(
sal_uInt16
nWhich
,
const
Xub
String
&
rType
);
CntContentTypeItem
(
sal_uInt16
nWhich
,
const
OU
String
&
rType
);
CntContentTypeItem
(
const
CntContentTypeItem
&
rOrig
);
CntContentTypeItem
(
const
CntContentTypeItem
&
rOrig
);
virtual
SfxPoolItem
*
Create
(
SvStream
&
rStream
,
virtual
SfxPoolItem
*
Create
(
SvStream
&
rStream
,
...
@@ -47,7 +47,7 @@ public:
...
@@ -47,7 +47,7 @@ public:
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
NULL
)
const
;
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
NULL
)
const
;
void
SetValue
(
const
Xub
String
&
rNewVal
);
void
SetValue
(
const
OU
String
&
rNewVal
);
using
SfxPoolItem
::
Compare
;
using
SfxPoolItem
::
Compare
;
virtual
int
Compare
(
const
SfxPoolItem
&
rWith
,
const
IntlWrapper
&
rIntlWrapper
)
const
;
virtual
int
Compare
(
const
SfxPoolItem
&
rWith
,
const
IntlWrapper
&
rIntlWrapper
)
const
;
...
...
svl/inc/svl/stritem.hxx
Dosyayı görüntüle @
2ffd82c3
...
@@ -31,7 +31,7 @@ public:
...
@@ -31,7 +31,7 @@ public:
SfxStringItem
()
{}
SfxStringItem
()
{}
SfxStringItem
(
sal_uInt16
which
,
const
Xub
String
&
rValue
)
:
SfxStringItem
(
sal_uInt16
which
,
const
OU
String
&
rValue
)
:
CntUnencodedStringItem
(
which
,
rValue
)
{}
CntUnencodedStringItem
(
which
,
rValue
)
{}
SfxStringItem
(
sal_uInt16
nWhich
,
SvStream
&
rStream
);
SfxStringItem
(
sal_uInt16
nWhich
,
SvStream
&
rStream
);
...
...
svl/source/items/ctypeitm.cxx
Dosyayı görüntüle @
2ffd82c3
...
@@ -46,7 +46,7 @@ CntContentTypeItem::CntContentTypeItem()
...
@@ -46,7 +46,7 @@ CntContentTypeItem::CntContentTypeItem()
}
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
CntContentTypeItem
::
CntContentTypeItem
(
sal_uInt16
which
,
const
Xub
String
&
rType
)
CntContentTypeItem
::
CntContentTypeItem
(
sal_uInt16
which
,
const
OU
String
&
rType
)
:
CntUnencodedStringItem
(
which
,
rType
),
:
CntUnencodedStringItem
(
which
,
rType
),
_eType
(
CONTENT_TYPE_NOT_INIT
)
_eType
(
CONTENT_TYPE_NOT_INIT
)
{
{
...
@@ -122,11 +122,11 @@ SfxPoolItem* CntContentTypeItem::Clone( SfxItemPool* /* pPool */ ) const
...
@@ -122,11 +122,11 @@ SfxPoolItem* CntContentTypeItem::Clone( SfxItemPool* /* pPool */ ) const
}
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void
CntContentTypeItem
::
SetValue
(
const
Xub
String
&
rNewVal
)
void
CntContentTypeItem
::
SetValue
(
const
OU
String
&
rNewVal
)
{
{
// De-initialize enum type and presentation.
// De-initialize enum type and presentation.
_eType
=
CONTENT_TYPE_NOT_INIT
;
_eType
=
CONTENT_TYPE_NOT_INIT
;
_aPresentation
.
Erase
();
_aPresentation
=
OUString
();
CntUnencodedStringItem
::
SetValue
(
rNewVal
);
CntUnencodedStringItem
::
SetValue
(
rNewVal
);
}
}
...
@@ -150,7 +150,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation(
...
@@ -150,7 +150,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation(
XubString
&
rText
,
XubString
&
rText
,
const
IntlWrapper
*
pIntlWrapper
)
const
const
IntlWrapper
*
pIntlWrapper
)
const
{
{
if
(
_aPresentation
.
Len
()
==
0
)
if
(
_aPresentation
.
isEmpty
()
)
{
{
DBG_ASSERT
(
pIntlWrapper
,
DBG_ASSERT
(
pIntlWrapper
,
"CntContentTypeItem::GetPresentation(): No IntlWrapper"
);
"CntContentTypeItem::GetPresentation(): No IntlWrapper"
);
...
@@ -160,7 +160,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation(
...
@@ -160,7 +160,7 @@ SfxItemPresentation CntContentTypeItem::GetPresentation(
pIntlWrapper
->
pIntlWrapper
->
getLocale
());
getLocale
());
}
}
if
(
_aPresentation
.
Len
()
>
0
)
if
(
!
_aPresentation
.
isEmpty
()
)
{
{
rText
=
_aPresentation
;
rText
=
_aPresentation
;
return
SFX_ITEM_PRESENTATION_COMPLETE
;
return
SFX_ITEM_PRESENTATION_COMPLETE
;
...
@@ -217,7 +217,7 @@ bool CntContentTypeItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uIn
...
@@ -217,7 +217,7 @@ bool CntContentTypeItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uIn
SetValue
(
aValue
);
SetValue
(
aValue
);
else
else
SetValue
(
SetValue
(
INetContentTypes
::
RegisterContentType
(
aValue
,
Uni
String
()));
INetContentTypes
::
RegisterContentType
(
aValue
,
OU
String
()));
return
true
;
return
true
;
}
}
...
...
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