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
e4bd8e21
Kaydet (Commit)
e4bd8e21
authored
May 01, 2017
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid 'else' after 'return'
Change-Id: I38daa42f0f764e05c8894f26faad14e947ee77ef
üst
5e661008
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
objmisc.cxx
sfx2/source/doc/objmisc.cxx
+7
-7
No files found.
sfx2/source/doc/objmisc.cxx
Dosyayı görüntüle @
e4bd8e21
...
...
@@ -735,7 +735,8 @@ OUString SfxObjectShell::GetTitle( sal_uInt16 nMaxLength ) const
bRecur
=
false
;
return
aTitle
;
}
else
if
(
SFX_TITLE_APINAME
==
nMaxLength
)
if
(
SFX_TITLE_APINAME
==
nMaxLength
)
return
GetAPIName
();
// Picklist/Caption is mapped
...
...
@@ -785,9 +786,9 @@ OUString SfxObjectShell::GetTitle( sal_uInt16 nMaxLength ) const
{
if
(
nMaxLength
==
SFX_TITLE_FULLNAME
)
return
aURL
.
HasMark
()
?
INetURLObject
(
aURL
.
GetURLNoMark
()
).
PathToFileName
()
:
aURL
.
PathToFileName
();
else
if
(
nMaxLength
==
SFX_TITLE_FILENAME
)
if
(
nMaxLength
==
SFX_TITLE_FILENAME
)
return
aURL
.
getName
(
INetURLObject
::
LAST_SEGMENT
,
true
,
INetURLObject
::
DecodeMechanism
::
WithCharset
);
else
if
(
pImpl
->
aTitle
.
isEmpty
()
)
if
(
pImpl
->
aTitle
.
isEmpty
()
)
pImpl
->
aTitle
=
aURL
.
getBase
(
INetURLObject
::
LAST_SEGMENT
,
true
,
INetURLObject
::
DecodeMechanism
::
WithCharset
);
}
...
...
@@ -798,15 +799,14 @@ OUString SfxObjectShell::GetTitle( sal_uInt16 nMaxLength ) const
const
OUString
aComplete
(
aURL
.
GetMainURL
(
INetURLObject
::
DecodeMechanism
::
NONE
)
);
if
(
aComplete
.
getLength
()
>
nMaxLength
)
return
"..."
+
aComplete
.
copy
(
aComplete
.
getLength
()
-
nMaxLength
+
3
,
nMaxLength
-
3
);
else
return
aComplete
;
return
aComplete
;
}
else
if
(
nMaxLength
==
SFX_TITLE_FILENAME
)
if
(
nMaxLength
==
SFX_TITLE_FILENAME
)
{
const
OUString
aName
=
INetURLObject
::
decode
(
aURL
.
GetBase
(),
INetURLObject
::
DecodeMechanism
::
WithCharset
);
return
aName
.
isEmpty
()
?
aURL
.
GetURLNoPass
()
:
aName
;
}
else
if
(
nMaxLength
==
SFX_TITLE_FULLNAME
)
if
(
nMaxLength
==
SFX_TITLE_FULLNAME
)
return
aURL
.
GetMainURL
(
INetURLObject
::
DecodeMechanism
::
ToIUri
);
// Generate Title from file name if possible
...
...
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