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
47b62399
Kaydet (Commit)
47b62399
authored
Mar 16, 2016
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GetItem/SetItem: use GetStyleSheetBase()
Change-Id: I7c3b563c6bd095ac9305a5cffdda206c5de94926
üst
a4d50fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
22 deletions
+10
-22
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+10
-22
No files found.
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
47b62399
...
...
@@ -3183,34 +3183,22 @@ SwXFrameStyle::~SwXFrameStyle()
void
SwXFrameStyle
::
SetItem
(
enum
RES_FRMATR
eAtr
,
const
SfxPoolItem
&
rItem
)
{
// As I was told, for some entirely unobvious reason getting an
// item from a style has to look as follows:
SfxStyleSheetBasePool
*
pBasePool
=
m_pBasePool
;
if
(
pBasePool
)
{
SfxStyleSheetBase
*
pBase
=
pBasePool
->
Find
(
GetStyleName
());
if
(
pBase
)
{
rtl
::
Reference
<
SwDocStyleSheet
>
xStyle
(
new
SwDocStyleSheet
(
*
static_cast
<
SwDocStyleSheet
*>
(
pBase
)
)
);
SfxItemSet
&
rStyleSet
=
xStyle
->
GetItemSet
();
SfxItemSet
aSet
(
*
rStyleSet
.
GetPool
(),
eAtr
,
eAtr
);
aSet
.
Put
(
rItem
);
xStyle
->
SetItemSet
(
aSet
);
}
}
SfxStyleSheetBase
*
pBase
=
GetStyleSheetBase
();
if
(
!
pBase
)
return
;
rtl
::
Reference
<
SwDocStyleSheet
>
xStyle
(
new
SwDocStyleSheet
(
*
static_cast
<
SwDocStyleSheet
*>
(
pBase
)));
SfxItemSet
&
rStyleSet
=
xStyle
->
GetItemSet
();
SfxItemSet
aSet
(
*
rStyleSet
.
GetPool
(),
eAtr
,
eAtr
);
aSet
.
Put
(
rItem
);
xStyle
->
SetItemSet
(
aSet
);
}
const
SfxPoolItem
*
SwXFrameStyle
::
GetItem
(
enum
RES_FRMATR
eAtr
)
{
// As I was told, for some entirely unobvious reason getting an
// item from a style has to look as follows:
SfxStyleSheetBasePool
*
pBasePool
=
m_pBasePool
;
if
(
!
pBasePool
)
return
nullptr
;
SfxStyleSheetBase
*
pBase
=
pBasePool
->
Find
(
GetStyleName
());
SfxStyleSheetBase
*
pBase
=
GetStyleSheetBase
();
if
(
!
pBase
)
return
nullptr
;
rtl
::
Reference
<
SwDocStyleSheet
>
xStyle
(
new
SwDocStyleSheet
(
*
static_cast
<
SwDocStyleSheet
*>
(
pBase
))
);
rtl
::
Reference
<
SwDocStyleSheet
>
xStyle
(
new
SwDocStyleSheet
(
*
static_cast
<
SwDocStyleSheet
*>
(
pBase
))
);
return
&
xStyle
->
GetItemSet
().
Get
(
eAtr
);
}
...
...
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