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
bf0e8bda
Kaydet (Commit)
bf0e8bda
authored
Agu 28, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sfx2/source/inc/objshimp.hxx from String to OUString
Change-Id: I9f83effda2be8e7edbdd7fbb32245ecaf90cd1d2
üst
89102963
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
objmisc.cxx
sfx2/source/doc/objmisc.cxx
+10
-10
objxtor.cxx
sfx2/source/doc/objxtor.cxx
+1
-1
objshimp.hxx
sfx2/source/inc/objshimp.hxx
+4
-4
No files found.
sfx2/source/doc/objmisc.cxx
Dosyayı görüntüle @
bf0e8bda
...
...
@@ -814,7 +814,7 @@ OUString SfxObjectShell::GetTitle
return
String
();
// Create Title?
if
(
SFX_TITLE_DETECT
==
nMaxLength
&&
!
pImp
->
aTitle
.
Len
()
)
if
(
SFX_TITLE_DETECT
==
nMaxLength
&&
pImp
->
aTitle
.
isEmpty
()
)
{
static
sal_Bool
bRecur
=
sal_False
;
if
(
bRecur
)
...
...
@@ -843,7 +843,7 @@ OUString SfxObjectShell::GetTitle
return
X
(
GetAPIName
());
// Special case templates:
if
(
IsTemplate
()
&&
pImp
->
aTitle
.
Len
()
&&
if
(
IsTemplate
()
&&
!
pImp
->
aTitle
.
isEmpty
()
&&
(
nMaxLength
==
SFX_TITLE_CAPTION
||
nMaxLength
==
SFX_TITLE_PICKLIST
)
)
return
X
(
pImp
->
aTitle
);
...
...
@@ -863,7 +863,7 @@ OUString SfxObjectShell::GetTitle
if
(
!
HasName
()
||
!
pMed
)
{
// Title already set?
if
(
pImp
->
aTitle
.
Len
()
)
if
(
!
pImp
->
aTitle
.
isEmpty
()
)
return
X
(
pImp
->
aTitle
);
// must it be numbered?
...
...
@@ -898,7 +898,7 @@ OUString SfxObjectShell::GetTitle
else
if
(
nMaxLength
==
SFX_TITLE_FILENAME
)
return
X
(
aURL
.
getName
(
INetURLObject
::
LAST_SEGMENT
,
true
,
INetURLObject
::
DECODE_WITH_CHARSET
)
);
else
if
(
!
pImp
->
aTitle
.
Len
()
)
else
if
(
pImp
->
aTitle
.
isEmpty
()
)
pImp
->
aTitle
=
aURL
.
getBase
(
INetURLObject
::
LAST_SEGMENT
,
true
,
INetURLObject
::
DECODE_WITH_CHARSET
);
}
...
...
@@ -929,11 +929,11 @@ OUString SfxObjectShell::GetTitle
return
X
(
aURL
.
GetMainURL
(
INetURLObject
::
DECODE_TO_IURI
));
// Generate Title from file name if possible
if
(
!
pImp
->
aTitle
.
Len
()
)
if
(
pImp
->
aTitle
.
isEmpty
()
)
pImp
->
aTitle
=
aURL
.
GetBase
();
// workaround for the case when the name can not be retrieved from URL by INetURLObject
if
(
!
pImp
->
aTitle
.
Len
()
)
if
(
pImp
->
aTitle
.
isEmpty
()
)
pImp
->
aTitle
=
aURL
.
GetMainURL
(
INetURLObject
::
DECODE_WITH_CHARSET
);
}
...
...
@@ -952,7 +952,7 @@ void SfxObjectShell::InvalidateName()
*/
{
pImp
->
aTitle
.
Erase
()
;
pImp
->
aTitle
=
""
;
SetName
(
GetTitle
(
SFX_TITLE_APINAME
)
);
Broadcast
(
SfxSimpleHint
(
SFX_HINT_TITLECHANGED
)
);
...
...
@@ -965,7 +965,7 @@ void SfxObjectShell::SetNamedVisibility_Impl()
if
(
!
pImp
->
bIsNamedVisible
)
{
pImp
->
bIsNamedVisible
=
sal_True
;
if
(
!
HasName
()
&&
USHRT_MAX
==
pImp
->
nVisualDocumentNumber
&&
!
pImp
->
aTitle
.
Len
()
)
if
(
!
HasName
()
&&
USHRT_MAX
==
pImp
->
nVisualDocumentNumber
&&
pImp
->
aTitle
.
isEmpty
()
)
{
pImp
->
nVisualDocumentNumber
=
SFX_APP
()
->
GetFreeIndex
();
Broadcast
(
SfxSimpleHint
(
SFX_HINT_TITLECHANGED
)
);
...
...
@@ -1398,9 +1398,9 @@ void SfxObjectShell::PositionView_Impl()
if
(
pMark
)
{
SfxViewShell
*
pSh
=
pMark
->
pFrame
->
GetViewShell
();
if
(
pMark
->
aUserData
.
Len
()
)
if
(
!
pMark
->
aUserData
.
isEmpty
()
)
pSh
->
ReadUserData
(
pMark
->
aUserData
,
sal_True
);
else
if
(
pMark
->
aMark
.
Len
()
)
else
if
(
!
pMark
->
aMark
.
isEmpty
()
)
pSh
->
JumpToMark
(
pMark
->
aMark
);
DELETEZ
(
Get_Impl
()
->
pMarkData
);
}
...
...
sfx2/source/doc/objxtor.cxx
Dosyayı görüntüle @
bf0e8bda
...
...
@@ -402,7 +402,7 @@ SfxObjectShell::~SfxObjectShell()
}
// The removing of the temporary file must be done as the latest step in the document destruction
if
(
pImp
->
aTempName
.
Len
()
)
if
(
!
pImp
->
aTempName
.
isEmpty
()
)
{
OUString
aTmp
;
::
utl
::
LocalFileHelper
::
ConvertPhysicalNameToURL
(
pImp
->
aTempName
,
aTmp
);
...
...
sfx2/source/inc/objshimp.hxx
Dosyayı görüntüle @
bf0e8bda
...
...
@@ -40,8 +40,8 @@ DBG_NAMEEX(SfxObjectShell)
class
SfxViewFrame
;
struct
MarkData_Impl
{
String
aMark
;
String
aUserData
;
OU
String
aMark
;
OU
String
aUserData
;
SfxViewFrame
*
pFrame
;
};
...
...
@@ -61,8 +61,8 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess
::
sfx2
::
DocumentMacroMode
aMacroMode
;
SfxProgress
*
pProgress
;
String
aTitle
;
String
aTempName
;
OUString
aTitle
;
OUString
aTempName
;
DateTime
nTime
;
sal_uInt16
nVisualDocumentNumber
;
sal_Int16
nDocumentSignatureState
;
...
...
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