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
e27e53fe
Kaydet (Commit)
e27e53fe
authored
Agu 21, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert include/sfx2/viewfac.hxx from String to OUString
Change-Id: Ia0cea486e77e449f86cf21013dd193523868261f
üst
b2a196a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
viewfac.hxx
include/sfx2/viewfac.hxx
+5
-5
docfac.cxx
sfx2/source/doc/docfac.cxx
+1
-1
viewfac.cxx
sfx2/source/view/viewfac.cxx
+3
-3
No files found.
include/sfx2/viewfac.hxx
Dosyayı görüntüle @
e27e53fe
...
@@ -38,22 +38,22 @@ public:
...
@@ -38,22 +38,22 @@ public:
sal_uInt16
nOrdinal
,
const
sal_Char
*
asciiViewName
);
sal_uInt16
nOrdinal
,
const
sal_Char
*
asciiViewName
);
SfxViewShell
*
CreateInstance
(
SfxViewFrame
*
pViewFrame
,
SfxViewShell
*
pOldSh
);
SfxViewShell
*
CreateInstance
(
SfxViewFrame
*
pViewFrame
,
SfxViewShell
*
pOldSh
);
sal_uInt16
GetOrdinal
()
const
{
return
nOrd
;
}
sal_uInt16
GetOrdinal
()
const
{
return
nOrd
;
}
/// returns a legacy view name. This is "view" with an appended ordinal/ID.
/// returns a legacy view name. This is "view" with an appended ordinal/ID.
String
GetLegacyViewName
()
const
;
OUString
GetLegacyViewName
()
const
;
/** returns a API-compatible view name.
/** returns a API-compatible view name.
For details on which view names are specified, see the XModel2.getAvailableViewControllerNames
For details on which view names are specified, see the XModel2.getAvailableViewControllerNames
documentation.
documentation.
*/
*/
String
GetAPIViewName
()
const
;
OUString
GetAPIViewName
()
const
;
private
:
private
:
SfxViewCtor
fnCreate
;
SfxViewCtor
fnCreate
;
sal_uInt16
nOrd
;
sal_uInt16
nOrd
;
const
String
m_sViewName
;
const
OUString
m_sViewName
;
};
};
#endif
#endif
...
...
sfx2/source/doc/docfac.cxx
Dosyayı görüntüle @
e27e53fe
...
@@ -149,7 +149,7 @@ void SfxObjectFactory::RegisterViewFactory
...
@@ -149,7 +149,7 @@ void SfxObjectFactory::RegisterViewFactory
const
String
sViewName
(
rFactory
.
GetAPIViewName
()
);
const
String
sViewName
(
rFactory
.
GetAPIViewName
()
);
for
(
SfxViewFactoryArr_Impl
::
const_iterator
it
=
pImpl
->
aViewFactoryArr
.
begin
();
it
!=
pImpl
->
aViewFactoryArr
.
end
();
++
it
)
for
(
SfxViewFactoryArr_Impl
::
const_iterator
it
=
pImpl
->
aViewFactoryArr
.
begin
();
it
!=
pImpl
->
aViewFactoryArr
.
end
();
++
it
)
{
{
if
(
!
(
*
it
)
->
GetAPIViewName
().
Equals
(
sViewName
)
)
if
(
(
*
it
)
->
GetAPIViewName
()
!=
sViewName
)
continue
;
continue
;
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"SfxObjectFactory::RegisterViewFactory: duplicate view name '"
));
"SfxObjectFactory::RegisterViewFactory: duplicate view name '"
));
...
...
sfx2/source/view/viewfac.cxx
Dosyayı görüntüle @
e27e53fe
...
@@ -31,7 +31,7 @@ SfxViewShell *SfxViewFactory::CreateInstance(SfxViewFrame *pFrame, SfxViewShell
...
@@ -31,7 +31,7 @@ SfxViewShell *SfxViewFactory::CreateInstance(SfxViewFrame *pFrame, SfxViewShell
return
(
*
fnCreate
)(
pFrame
,
pOldSh
);
return
(
*
fnCreate
)(
pFrame
,
pOldSh
);
}
}
String
SfxViewFactory
::
GetLegacyViewName
()
const
OU
String
SfxViewFactory
::
GetLegacyViewName
()
const
{
{
OUStringBuffer
aViewName
;
OUStringBuffer
aViewName
;
aViewName
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"view"
));
aViewName
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
"view"
));
...
@@ -39,9 +39,9 @@ String SfxViewFactory::GetLegacyViewName() const
...
@@ -39,9 +39,9 @@ String SfxViewFactory::GetLegacyViewName() const
return
aViewName
.
makeStringAndClear
();
return
aViewName
.
makeStringAndClear
();
}
}
String
SfxViewFactory
::
GetAPIViewName
()
const
OU
String
SfxViewFactory
::
GetAPIViewName
()
const
{
{
if
(
m_sViewName
.
Len
()
>
0
)
if
(
!
m_sViewName
.
isEmpty
()
)
return
m_sViewName
;
return
m_sViewName
;
if
(
GetOrdinal
()
==
0
)
if
(
GetOrdinal
()
==
0
)
...
...
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