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
f4d50ca5
Kaydet (Commit)
f4d50ca5
authored
Eki 10, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CID#704368 RtfAttributeOutput::ParaNumRule_Impl(): logically dead code
Change-Id: I7dae57f890a32511bb00ae5a6e1741fb6701046e
üst
463ba7b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
28 deletions
+20
-28
rtfattributeoutput.cxx
sw/source/filter/ww8/rtfattributeoutput.cxx
+20
-28
No files found.
sw/source/filter/ww8/rtfattributeoutput.cxx
Dosyayı görüntüle @
f4d50ca5
...
@@ -2584,20 +2584,17 @@ void RtfAttributeOutput::ParaNumRule_Impl( const SwTxtNode* pTxtNd, sal_Int32 nL
...
@@ -2584,20 +2584,17 @@ void RtfAttributeOutput::ParaNumRule_Impl( const SwTxtNode* pTxtNd, sal_Int32 nL
{
{
SAL_WARN_IF
(
pTxtNd
->
GetActualListLevel
()
<
0
||
pTxtNd
->
GetActualListLevel
()
>=
MAXLEVEL
,
"sw.rtf"
,
"text node does not have valid list level"
);
SAL_WARN_IF
(
pTxtNd
->
GetActualListLevel
()
<
0
||
pTxtNd
->
GetActualListLevel
()
>=
MAXLEVEL
,
"sw.rtf"
,
"text node does not have valid list level"
);
const
bool
bExportNumRule
=
USHRT_MAX
!=
nNumId
;
const
SwNumFmt
*
pFmt
=
pRule
->
GetNumFmt
(
nLvl
);
const
SwNumFmt
*
pFmt
=
pRule
->
GetNumFmt
(
nLvl
);
if
(
!
pFmt
)
if
(
!
pFmt
)
pFmt
=
&
pRule
->
Get
(
nLvl
);
pFmt
=
&
pRule
->
Get
(
nLvl
);
const
SfxItemSet
&
rNdSet
=
pTxtNd
->
GetSwAttrSet
();
const
SfxItemSet
&
rNdSet
=
pTxtNd
->
GetSwAttrSet
();
if
(
bExportNumRule
)
{
m_aStyles
.
append
(
'{'
);
m_aStyles
.
append
(
'{'
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_LISTTEXT
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_LISTTEXT
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_PARD
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_PARD
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_PLAIN
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_PLAIN
);
m_aStyles
.
append
(
' '
);
m_aStyles
.
append
(
' '
);
}
SvxLRSpaceItem
aLR
(
(
SvxLRSpaceItem
&
)
rNdSet
.
Get
(
RES_LR_SPACE
)
);
SvxLRSpaceItem
aLR
(
(
SvxLRSpaceItem
&
)
rNdSet
.
Get
(
RES_LR_SPACE
)
);
aLR
.
SetTxtLeft
(
aLR
.
GetTxtLeft
()
+
pFmt
->
GetIndentAt
()
);
aLR
.
SetTxtLeft
(
aLR
.
GetTxtLeft
()
+
pFmt
->
GetIndentAt
()
);
...
@@ -2621,32 +2618,27 @@ void RtfAttributeOutput::ParaNumRule_Impl( const SwTxtNode* pTxtNd, sal_Int32 nL
...
@@ -2621,32 +2618,27 @@ void RtfAttributeOutput::ParaNumRule_Impl( const SwTxtNode* pTxtNd, sal_Int32 nL
m_aStyles
.
append
(
msfilter
::
rtfutil
::
OutString
(
sTxt
,
m_rExport
.
eDefaultEncoding
));
m_aStyles
.
append
(
msfilter
::
rtfutil
::
OutString
(
sTxt
,
m_rExport
.
eDefaultEncoding
));
}
}
if
(
bExportNumRule
)
if
(
OUTLINE_RULE
!=
pRule
->
GetRuleType
()
)
{
{
if
(
OUTLINE_RULE
!=
pRule
->
GetRuleType
()
)
if
(
sTxt
.
Len
())
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_TAB
);
m_aStyles
.
append
(
'}'
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_ILVL
);
if
(
nLvl
>
8
)
// RTF knows only 9 levels
{
{
if
(
sTxt
.
Len
())
m_aStyles
.
append
((
sal_Int32
)
8
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_TAB
);
m_aStyles
.
append
(
"{"
OOO_STRING_SVTOOLS_RTF_IGNORE
OOO_STRING_SVTOOLS_RTF_SOUTLVL
);
m_aStyles
.
append
((
sal_Int32
)
nLvl
);
m_aStyles
.
append
(
'}'
);
m_aStyles
.
append
(
'}'
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_ILVL
);
if
(
nLvl
>
8
)
// RTF knows only 9 levels
{
m_aStyles
.
append
((
sal_Int32
)
8
);
m_aStyles
.
append
(
"{"
OOO_STRING_SVTOOLS_RTF_IGNORE
OOO_STRING_SVTOOLS_RTF_SOUTLVL
);
m_aStyles
.
append
((
sal_Int32
)
nLvl
);
m_aStyles
.
append
(
'}'
);
}
else
m_aStyles
.
append
((
sal_Int32
)
nLvl
);
}
}
else
else
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_TAB
"}"
);
m_aStyles
.
append
((
sal_Int32
)
nLvl
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_LS
);
m_aStyles
.
append
((
sal_Int32
)
m_rExport
.
GetId
(
*
pRule
)
+
1
);
m_aStyles
.
append
(
' '
);
}
}
else
if
(
sTxt
.
Len
()
)
else
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_TAB
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_TAB
"}"
);
m_aStyles
.
append
(
OOO_STRING_SVTOOLS_RTF_LS
);
m_aStyles
.
append
((
sal_Int32
)
m_rExport
.
GetId
(
*
pRule
)
+
1
);
m_aStyles
.
append
(
' '
);
}
}
FormatLRSpace
(
aLR
);
FormatLRSpace
(
aLR
);
}
}
...
...
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