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
6dec4dce
Kaydet (Commit)
6dec4dce
authored
Eyl 22, 2015
tarafından
Samuel Mehrbrodt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup: Reduce indentation
Change-Id: I12359c7063d4c2f160a4410a9e529f201ed1ffcd
üst
f4badd9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
28 deletions
+23
-28
DocumentStylePoolManager.cxx
sw/source/core/doc/DocumentStylePoolManager.cxx
+23
-28
No files found.
sw/source/core/doc/DocumentStylePoolManager.cxx
Dosyayı görüntüle @
6dec4dce
...
...
@@ -184,35 +184,34 @@ namespace
DefaultFontType
::
CTL_TEXT
,
rSet
);
}
if
(
pColl
)
if
(
!
pColl
)
return
;
if
(
!
(
nOutLvlBits
&
(
1
<<
nLevel
))
)
{
if
(
!
(
nOutLvlBits
&
(
1
<<
nLevel
))
)
pColl
->
AssignToListLevelOfOutlineStyle
(
nLevel
);
if
(
!
bHTMLMode
)
{
pColl
->
AssignToListLevelOfOutlineStyle
(
nLevel
);
if
(
!
bHTMLMode
)
SwNumRule
*
pOutlineRule
=
pDoc
->
GetOutlineNumRule
();
const
SwNumFormat
&
rNFormat
=
pOutlineRule
->
Get
(
nLevel
);
if
(
rNFormat
.
GetPositionAndSpaceMode
()
==
SvxNumberFormat
::
LABEL_WIDTH_AND_POSITION
&&
(
rNFormat
.
GetAbsLSpace
()
||
rNFormat
.
GetFirstLineOffset
()
)
)
{
SwNumRule
*
pOutlineRule
=
pDoc
->
GetOutlineNumRule
();
const
SwNumFormat
&
rNFormat
=
pOutlineRule
->
Get
(
nLevel
);
if
(
rNFormat
.
GetPositionAndSpaceMode
()
==
SvxNumberFormat
::
LABEL_WIDTH_AND_POSITION
&&
(
rNFormat
.
GetAbsLSpace
()
||
rNFormat
.
GetFirstLineOffset
()
)
)
{
SvxLRSpaceItem
aLR
(
static_cast
<
const
SvxLRSpaceItem
&>
(
pColl
->
GetFormatAttr
(
RES_LR_SPACE
))
);
aLR
.
SetTextFirstLineOfstValue
(
rNFormat
.
GetFirstLineOffset
()
);
aLR
.
SetTextLeft
(
rNFormat
.
GetAbsLSpace
()
);
pColl
->
SetFormatAttr
(
aLR
);
}
// All paragraph styles, which are assigned to a level of the
// outline style has to have the outline style set as its list style.
SwNumRuleItem
aItem
(
pOutlineRule
->
GetName
());
pColl
->
SetFormatAttr
(
aItem
);
SvxLRSpaceItem
aLR
(
static_cast
<
const
SvxLRSpaceItem
&>
(
pColl
->
GetFormatAttr
(
RES_LR_SPACE
))
);
aLR
.
SetTextFirstLineOfstValue
(
rNFormat
.
GetFirstLineOffset
()
);
aLR
.
SetTextLeft
(
rNFormat
.
GetAbsLSpace
()
);
pColl
->
SetFormatAttr
(
aLR
);
}
// All paragraph styles, which are assigned to a level of the
// outline style has to have the outline style set as its list style.
SwNumRuleItem
aItem
(
pOutlineRule
->
GetName
());
pColl
->
SetFormatAttr
(
aItem
);
}
pColl
->
SetNextTextFormatColl
(
*
pDoc
->
getIDocumentStylePoolAccess
().
GetTextCollFromPool
(
RES_POOLCOLL_TEXT
));
}
pColl
->
SetNextTextFormatColl
(
*
pDoc
->
getIDocumentStylePoolAccess
().
GetTextCollFromPool
(
RES_POOLCOLL_TEXT
));
}
static
void
lcl_SetRegister
(
SwDoc
*
pDoc
,
SfxItemSet
&
rSet
,
sal_uInt16
nFact
,
...
...
@@ -1075,11 +1074,7 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
}
if
(
aSet
.
Count
()
)
{
{
pNewColl
->
SetFormatAttr
(
aSet
);
}
}
pNewColl
->
SetFormatAttr
(
aSet
);
return
pNewColl
;
}
...
...
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