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
7a9d4cd5
Kaydet (Commit)
7a9d4cd5
authored
Mar 10, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: stylistic change to TextEffectsHandler
Change-Id: I5be926394dd97897dfb5ef3d4c03bb9ad9865a35
üst
fc46b5ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
TextEffectsHandler.cxx
writerfilter/source/dmapper/TextEffectsHandler.cxx
+8
-6
No files found.
writerfilter/source/dmapper/TextEffectsHandler.cxx
Dosyayı görüntüle @
7a9d4cd5
...
...
@@ -27,7 +27,7 @@ using namespace css::beans;
namespace
{
OUString
g
etNameForElementId
(
sal_uInt32
aId
)
OUString
lclG
etNameForElementId
(
sal_uInt32
aId
)
{
static
std
::
map
<
sal_uInt32
,
OUString
>
aIdMap
;
if
(
aIdMap
.
empty
())
...
...
@@ -69,6 +69,8 @@ OUString getNameForElementId(sal_uInt32 aId)
return
aIdMap
[
aId
];
}
const
char
constAttributesSequenceName
[]
=
"attributes"
;
}
OUString
TextEffectsHandler
::
getSchemeColorValTypeString
(
sal_Int32
nType
)
...
...
@@ -496,8 +498,8 @@ boost::optional<PropertyIds> TextEffectsHandler::getGrabBagPropertyId()
void
TextEffectsHandler
::
lcl_attribute
(
Id
aName
,
Value
&
aValue
)
{
if
(
mpGrabBagStack
->
getCurrentName
()
!=
"attributes"
)
mpGrabBagStack
->
push
(
"attributes"
);
if
(
mpGrabBagStack
->
getCurrentName
()
!=
constAttributesSequenceName
)
mpGrabBagStack
->
push
(
constAttributesSequenceName
);
switch
(
aName
)
{
...
...
@@ -720,11 +722,11 @@ void TextEffectsHandler::lcl_attribute(Id aName, Value& aValue)
void
TextEffectsHandler
::
lcl_sprm
(
Sprm
&
rSprm
)
{
if
(
mpGrabBagStack
->
getCurrentName
()
==
"attributes"
)
if
(
mpGrabBagStack
->
getCurrentName
()
==
constAttributesSequenceName
)
mpGrabBagStack
->
pop
();
sal_uInt32
nSprmId
=
rSprm
.
getId
();
OUString
aElementName
=
g
etNameForElementId
(
nSprmId
);
OUString
aElementName
=
lclG
etNameForElementId
(
nSprmId
);
if
(
aElementName
.
isEmpty
())
{
// Element is unknown -> leave.
...
...
@@ -739,7 +741,7 @@ void TextEffectsHandler::lcl_sprm(Sprm& rSprm)
pProperties
.
get
()
->
resolve
(
*
this
);
if
(
mpGrabBagStack
->
getCurrentName
()
==
"attributes"
)
if
(
mpGrabBagStack
->
getCurrentName
()
==
constAttributesSequenceName
)
mpGrabBagStack
->
pop
();
mpGrabBagStack
->
pop
();
...
...
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