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
f5b325a7
Kaydet (Commit)
f5b325a7
authored
Nis 06, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid reserved identifiers
Change-Id: I3f077d9937a86b362942173e787dd7cc65a0bbce
üst
871f49e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
EnumContext.hxx
include/sfx2/sidebar/EnumContext.hxx
+2
-2
EnumContext.cxx
sfx2/source/sidebar/EnumContext.cxx
+6
-6
No files found.
include/sfx2/sidebar/EnumContext.hxx
Dosyayı görüntüle @
f5b325a7
...
...
@@ -59,7 +59,7 @@ public:
// wish to disable a deck or panel during debugging.
Application_None
,
__
LastApplicationEnum
=
Application_None
LastApplicationEnum
=
Application_None
};
enum
Context
{
...
...
@@ -107,7 +107,7 @@ public:
Context_Unknown
,
__
LastContextEnum
=
Context_Unknown
LastContextEnum
=
Context_Unknown
};
EnumContext
();
...
...
sfx2/source/sidebar/EnumContext.cxx
Dosyayı görüntüle @
f5b325a7
...
...
@@ -104,7 +104,7 @@ bool EnumContext::operator!= (const EnumContext& rOther)
void
EnumContext
::
AddEntry
(
const
::
rtl
::
OUString
&
rsName
,
const
Application
eApplication
)
{
maApplicationMap
[
rsName
]
=
eApplication
;
OSL_ASSERT
(
eApplication
<=
__
LastApplicationEnum
);
OSL_ASSERT
(
eApplication
<=
LastApplicationEnum
);
if
(
maApplicationVector
.
size
()
<=
size_t
(
eApplication
))
maApplicationVector
.
resize
(
eApplication
+
1
);
maApplicationVector
[
eApplication
]
=
rsName
;
...
...
@@ -114,7 +114,7 @@ void EnumContext::ProvideApplicationContainers()
{
if
(
maApplicationMap
.
empty
())
{
maApplicationVector
.
resize
(
static_cast
<
size_t
>
(
EnumContext
::
__
LastApplicationEnum
)
+
1
);
maApplicationVector
.
resize
(
static_cast
<
size_t
>
(
EnumContext
::
LastApplicationEnum
)
+
1
);
AddEntry
(
"com.sun.star.text.TextDocument"
,
EnumContext
::
Application_Writer
);
AddEntry
(
"com.sun.star.text.GlobalDocument"
,
EnumContext
::
Application_WriterGlobal
);
AddEntry
(
"com.sun.star.text.WebDocument"
,
EnumContext
::
Application_WriterWeb
);
...
...
@@ -148,7 +148,7 @@ const ::rtl::OUString& EnumContext::GetApplicationName (const Application eAppli
ProvideApplicationContainers
();
const
sal_Int32
nIndex
(
eApplication
);
if
(
nIndex
<
0
||
nIndex
>=
__
LastApplicationEnum
)
if
(
nIndex
<
0
||
nIndex
>=
LastApplicationEnum
)
return
maApplicationVector
[
Application_None
];
else
return
maApplicationVector
[
nIndex
];
...
...
@@ -157,7 +157,7 @@ const ::rtl::OUString& EnumContext::GetApplicationName (const Application eAppli
void
EnumContext
::
AddEntry
(
const
::
rtl
::
OUString
&
rsName
,
const
Context
eApplication
)
{
maContextMap
[
rsName
]
=
eApplication
;
OSL_ASSERT
(
eApplication
<=
__
LastContextEnum
);
OSL_ASSERT
(
eApplication
<=
LastContextEnum
);
if
(
maContextVector
.
size
()
<=
size_t
(
eApplication
))
maContextVector
.
resize
(
eApplication
+
1
);
maContextVector
[
eApplication
]
=
rsName
;
...
...
@@ -167,7 +167,7 @@ void EnumContext::ProvideContextContainers()
{
if
(
maContextMap
.
empty
())
{
maContextVector
.
resize
(
static_cast
<
size_t
>
(
__
LastContextEnum
)
+
1
);
maContextVector
.
resize
(
static_cast
<
size_t
>
(
LastContextEnum
)
+
1
);
AddEntry
(
"any"
,
Context_Any
);
AddEntry
(
"default"
,
Context_Default
);
AddEntry
(
"empty"
,
Context_Empty
);
...
...
@@ -221,7 +221,7 @@ const ::rtl::OUString& EnumContext::GetContextName (const Context eContext)
ProvideContextContainers
();
const
sal_Int32
nIndex
(
eContext
);
if
(
nIndex
<
0
||
nIndex
>=
__
LastContextEnum
)
if
(
nIndex
<
0
||
nIndex
>=
LastContextEnum
)
return
maContextVector
[
Context_Unknown
];
else
return
maContextVector
[
nIndex
];
...
...
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