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
f2a167c9
Kaydet (Commit)
f2a167c9
authored
Eyl 18, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sd/.../MasterPageContainer.hxx from String to OUString
Change-Id: I88f8bcd6f6f447f3184beedee04b4aab1fddd41e
üst
85670708
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
MasterPageContainer.cxx
sd/source/ui/toolpanel/controls/MasterPageContainer.cxx
+10
-10
MasterPageContainer.hxx
sd/source/ui/toolpanel/controls/MasterPageContainer.hxx
+5
-5
RecentlyUsedMasterPages.cxx
sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
+1
-1
No files found.
sd/source/ui/toolpanel/controls/MasterPageContainer.cxx
Dosyayı görüntüle @
f2a167c9
...
@@ -374,12 +374,12 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForIndex (int nIndex)
...
@@ -374,12 +374,12 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForIndex (int nIndex)
MasterPageContainer
::
Token
MasterPageContainer
::
GetTokenForURL
(
MasterPageContainer
::
Token
MasterPageContainer
::
GetTokenForURL
(
const
String
&
sURL
)
const
OU
String
&
sURL
)
{
{
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
Token
aResult
(
NIL_TOKEN
);
Token
aResult
(
NIL_TOKEN
);
if
(
sURL
.
Len
()
>
0
)
if
(
!
sURL
.
isEmpty
()
)
{
{
MasterPageContainerType
::
iterator
iEntry
(
MasterPageContainerType
::
iterator
iEntry
(
::
std
::
find_if
(
::
std
::
find_if
(
...
@@ -395,12 +395,12 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForURL (
...
@@ -395,12 +395,12 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForURL (
MasterPageContainer
::
Token
MasterPageContainer
::
GetTokenForStyleName
(
const
String
&
sStyleName
)
MasterPageContainer
::
Token
MasterPageContainer
::
GetTokenForStyleName
(
const
OU
String
&
sStyleName
)
{
{
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
Token
aResult
(
NIL_TOKEN
);
Token
aResult
(
NIL_TOKEN
);
if
(
sStyleName
.
Len
()
>
0
)
if
(
!
sStyleName
.
isEmpty
()
)
{
{
MasterPageContainerType
::
iterator
iEntry
(
MasterPageContainerType
::
iterator
iEntry
(
::
std
::
find_if
(
::
std
::
find_if
(
...
@@ -438,7 +438,7 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForPageObject (
...
@@ -438,7 +438,7 @@ MasterPageContainer::Token MasterPageContainer::GetTokenForPageObject (
String
MasterPageContainer
::
GetURLForToken
(
OU
String
MasterPageContainer
::
GetURLForToken
(
MasterPageContainer
::
Token
aToken
)
MasterPageContainer
::
Token
aToken
)
{
{
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
...
@@ -447,13 +447,13 @@ String MasterPageContainer::GetURLForToken (
...
@@ -447,13 +447,13 @@ String MasterPageContainer::GetURLForToken (
if
(
pDescriptor
.
get
()
!=
NULL
)
if
(
pDescriptor
.
get
()
!=
NULL
)
return
pDescriptor
->
msURL
;
return
pDescriptor
->
msURL
;
else
else
return
String
();
return
OU
String
();
}
}
String
MasterPageContainer
::
GetPageNameForToken
(
OU
String
MasterPageContainer
::
GetPageNameForToken
(
MasterPageContainer
::
Token
aToken
)
MasterPageContainer
::
Token
aToken
)
{
{
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
...
@@ -462,13 +462,13 @@ String MasterPageContainer::GetPageNameForToken (
...
@@ -462,13 +462,13 @@ String MasterPageContainer::GetPageNameForToken (
if
(
pDescriptor
.
get
()
!=
NULL
)
if
(
pDescriptor
.
get
()
!=
NULL
)
return
pDescriptor
->
msPageName
;
return
pDescriptor
->
msPageName
;
else
else
return
String
();
return
OU
String
();
}
}
String
MasterPageContainer
::
GetStyleNameForToken
(
OU
String
MasterPageContainer
::
GetStyleNameForToken
(
MasterPageContainer
::
Token
aToken
)
MasterPageContainer
::
Token
aToken
)
{
{
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
mpImpl
->
maMutex
);
...
@@ -477,7 +477,7 @@ String MasterPageContainer::GetStyleNameForToken (
...
@@ -477,7 +477,7 @@ String MasterPageContainer::GetStyleNameForToken (
if
(
pDescriptor
.
get
()
!=
NULL
)
if
(
pDescriptor
.
get
()
!=
NULL
)
return
pDescriptor
->
msStyleName
;
return
pDescriptor
->
msStyleName
;
else
else
return
String
();
return
OU
String
();
}
}
...
...
sd/source/ui/toolpanel/controls/MasterPageContainer.hxx
Dosyayı görüntüle @
f2a167c9
...
@@ -128,13 +128,13 @@ public:
...
@@ -128,13 +128,13 @@ public:
*/
*/
Token
GetTokenForIndex
(
int
nIndex
);
Token
GetTokenForIndex
(
int
nIndex
);
Token
GetTokenForURL
(
const
String
&
sURL
);
Token
GetTokenForURL
(
const
OU
String
&
sURL
);
Token
GetTokenForStyleName
(
const
String
&
sStyleName
);
Token
GetTokenForStyleName
(
const
OU
String
&
sStyleName
);
Token
GetTokenForPageObject
(
const
SdPage
*
pPage
);
Token
GetTokenForPageObject
(
const
SdPage
*
pPage
);
String
GetURLForToken
(
Token
aToken
);
OU
String
GetURLForToken
(
Token
aToken
);
String
GetPageNameForToken
(
Token
aToken
);
OU
String
GetPageNameForToken
(
Token
aToken
);
String
GetStyleNameForToken
(
Token
aToken
);
OU
String
GetStyleNameForToken
(
Token
aToken
);
SdPage
*
GetPageObjectForToken
(
Token
aToken
,
bool
bLoad
=
true
);
SdPage
*
GetPageObjectForToken
(
Token
aToken
,
bool
bLoad
=
true
);
Origin
GetOriginForToken
(
Token
aToken
);
Origin
GetOriginForToken
(
Token
aToken
);
sal_Int32
GetTemplateIndexForToken
(
Token
aToken
);
sal_Int32
GetTemplateIndexForToken
(
Token
aToken
);
...
...
sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
Dosyayı görüntüle @
f2a167c9
...
@@ -414,7 +414,7 @@ void RecentlyUsedMasterPages::AddMasterPage (
...
@@ -414,7 +414,7 @@ void RecentlyUsedMasterPages::AddMasterPage (
// has to have a valid URL. This excludes master pages that do not come
// has to have a valid URL. This excludes master pages that do not come
// from template files.
// from template files.
if
(
aToken
!=
MasterPageContainer
::
NIL_TOKEN
if
(
aToken
!=
MasterPageContainer
::
NIL_TOKEN
&&
mpContainer
->
GetURLForToken
(
aToken
).
Len
()
>
0
)
&&
!
mpContainer
->
GetURLForToken
(
aToken
).
isEmpty
()
)
{
{
MasterPageList
::
iterator
aIterator
(
MasterPageList
::
iterator
aIterator
(
...
...
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