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
50c3352e
Kaydet (Commit)
50c3352e
authored
Kas 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clean up and reduce indent levels, remove hugely scoped Any
Change-Id: I2681ddb9b9cba0529ea88c5b81c1f060d1df8eb4
üst
a9618132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
28 deletions
+19
-28
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+19
-28
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
50c3352e
...
...
@@ -576,39 +576,30 @@ uno::Any SwXStyleFamily::getByName(const OUString& rName)
throw
(
container
::
NoSuchElementException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
uno
::
Any
aRet
;
OUString
sStyleName
;
SwStyleNameMapper
::
FillUIName
(
rName
,
sStyleName
,
lcl_GetSwEnumFromSfxEnum
(
m_eFamily
),
true
);
if
(
m_pBasePool
)
SwStyleNameMapper
::
FillUIName
(
rName
,
sStyleName
,
lcl_GetSwEnumFromSfxEnum
(
m_eFamily
),
true
);
if
(
!
m_pBasePool
)
throw
uno
::
RuntimeException
();
m_pBasePool
->
SetSearchMask
(
m_eFamily
);
SfxStyleSheetBase
*
pBase
=
m_pBasePool
->
Find
(
sStyleName
);
if
(
!
pBase
)
throw
container
::
NoSuchElementException
();
uno
::
Reference
<
style
::
XStyle
>
xStyle
=
_FindStyle
(
sStyleName
);
if
(
!
xStyle
.
is
())
{
m_pBasePool
->
SetSearchMask
(
m_eFamily
);
SfxStyleSheetBase
*
pBase
=
m_pBasePool
->
Find
(
sStyleName
);
if
(
pBase
)
switch
(
m_eFamily
)
{
uno
::
Reference
<
style
::
XStyle
>
xStyle
=
_FindStyle
(
sStyleName
);
if
(
!
xStyle
.
is
())
{
switch
(
m_eFamily
)
{
case
SFX_STYLE_FAMILY_PAGE
:
xStyle
=
new
SwXPageStyle
(
*
m_pBasePool
,
m_pDocShell
,
m_eFamily
,
sStyleName
);
break
;
case
SFX_STYLE_FAMILY_FRAME
:
xStyle
=
new
SwXFrameStyle
(
*
m_pBasePool
,
m_pDocShell
->
GetDoc
(),
pBase
->
GetName
());
break
;
default
:
xStyle
=
new
SwXStyle
(
*
m_pBasePool
,
m_eFamily
,
m_pDocShell
->
GetDoc
(),
sStyleName
);
}
}
aRet
.
setValue
(
&
xStyle
,
cppu
::
UnoType
<
style
::
XStyle
>::
get
());
case
SFX_STYLE_FAMILY_PAGE
:
xStyle
=
new
SwXPageStyle
(
*
m_pBasePool
,
m_pDocShell
,
m_eFamily
,
sStyleName
);
break
;
case
SFX_STYLE_FAMILY_FRAME
:
xStyle
=
new
SwXFrameStyle
(
*
m_pBasePool
,
m_pDocShell
->
GetDoc
(),
pBase
->
GetName
());
break
;
default
:
xStyle
=
new
SwXStyle
(
*
m_pBasePool
,
m_eFamily
,
m_pDocShell
->
GetDoc
(),
sStyleName
);
}
else
throw
container
::
NoSuchElementException
();
}
else
throw
uno
::
RuntimeException
();
return
aRet
;
return
uno
::
makeAny
(
xStyle
);
}
uno
::
Sequence
<
OUString
>
SwXStyleFamily
::
getElementNames
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
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