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
b4a71858
Kaydet (Commit)
b4a71858
authored
Agu 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
skip importing properties if the desired start pos is invalid
Change-Id: Iae650d63ccdb95a0a74674b8689813069b750b60
üst
fed29842
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
ww8par.cxx
sw/source/filter/ww8/ww8par.cxx
+13
-10
ww8par.hxx
sw/source/filter/ww8/ww8par.hxx
+2
-2
No files found.
sw/source/filter/ww8/ww8par.cxx
Dosyayı görüntüle @
b4a71858
...
...
@@ -3728,7 +3728,7 @@ void SwWW8ImplReader::ProcessAktCollChange(WW8PLCFManResult& rRes,
}
}
long
SwWW8ImplReader
::
ReadTextAttr
(
WW8_CP
&
rTextPos
,
bool
&
rbStartLine
)
long SwWW8ImplReader::ReadTextAttr(WW8_CP& rTextPos,
long nTextEnd,
bool& rbStartLine)
{
long nSkipChars = 0;
WW8PLCFManResult aRes;
...
...
@@ -3793,7 +3793,9 @@ long SwWW8ImplReader::ReadTextAttr(WW8_CP& rTextPos, bool& rbStartLine)
}
}
m_pStrm
->
Seek
(
m_pSBase
->
WW8Cp2Fc
(
m_pPlcxMan
->
GetCpOfs
()
+
rTextPos
,
&
m_bIsUnicode
));
sal_Int32 nRequestedPos = m_pSBase->WW8Cp2Fc(m_pPlcxMan->GetCpOfs() + rTextPos, &m_bIsUnicode);
bool bValidPos = checkSeek(*m_pStrm, nRequestedPos);
SAL_WARN_IF(!bValidPos, "sw.ww8", "Document claimed to have text at an invalid position, skip attributes for region");
// Find next Attr position (and Skip attributes of field contents if needed)
if (nSkipChars && !m_bIgnoreText)
...
...
@@ -3807,7 +3809,7 @@ long SwWW8ImplReader::ReadTextAttr(WW8_CP& rTextPos, bool& rbStartLine)
{
if( bDoPlcxManPlusPLus )
m_pPlcxMan->advance();
nNext
=
m_pPlcxMan
->
Where
()
;
nNext =
bValidPos ? m_pPlcxMan->Where() : nTextEnd
;
if (m_pPostProcessAttrsInfo &&
m_pPostProcessAttrsInfo->mnCpStart == nNext)
...
...
@@ -3817,7 +3819,7 @@ long SwWW8ImplReader::ReadTextAttr(WW8_CP& rTextPos, bool& rbStartLine)
if( (0 <= nNext) && (nSkipPos >= nNext) )
{
nNext
=
ReadTextAttr
(
rTextPos
,
rbStartLine
);
nNext = ReadTextAttr(
rTextPos, nTextEnd, rbStartLine
);
bDoPlcxManPlusPLus = false;
m_bIgnoreText = true;
}
...
...
@@ -3868,7 +3870,7 @@ void SwWW8ImplReader::ClearParaEndPosition()
m_aEndParaPos.clear();
}
void
SwWW8ImplReader
::
ReadAttrs
(
WW8_CP
&
r
Next
,
WW8_CP
&
rTextPos
,
bool
&
rbStartLine
)
void SwWW8ImplReader::ReadAttrs(WW8_CP& r
TextPos, WW8_CP& rNext, long nTextEnd
, bool& rbStartLine)
{
// Dow we have attributes?
if( rTextPos >= rNext )
...
...
@@ -3876,7 +3878,7 @@ void SwWW8ImplReader::ReadAttrs(WW8_CP& rNext, WW8_CP& rTextPos, bool& rbStartLi
do
{
m_aCurrAttrCP = rTextPos;
rNext
=
ReadTextAttr
(
rTextPos
,
rbStartLine
);
rNext = ReadTextAttr(
rTextPos, nTextEnd, rbStartLine
);
if (rTextPos == rNext && rTextPos == WW8_CP_MAX)
break;
}
...
...
@@ -3952,18 +3954,19 @@ bool SwWW8ImplReader::ReadText(WW8_CP nStartCp, WW8_CP nTextLen, ManTypes nType)
SAL_WARN_IF(nTextLen > nMaxPossible, "sw.ww8", "TextLen too long");
nTextLen = nMaxPossible;
}
while
(
l
<
nStartCp
+
nTextLen
)
WW8_CP nTextEnd = nStartCp+nTextLen;
while (l < nTextEnd)
{
ReadAttrs
(
nNext
,
l
,
bStartLine
);
// Takes SectionBreaks into account, too
ReadAttrs(
l, nNext, nTextEnd
, bStartLine );// Takes SectionBreaks into account, too
OSL_ENSURE(m_pPaM->GetNode().GetTextNode(), "Missing txtnode");
if (m_pPostProcessAttrsInfo != NULL)
PostProcessAttrs();
if
(
l
>=
nStartCp
+
nTextLen
)
if
(l >= nTextEnd
)
break;
bStartLine
=
ReadChars
(
l
,
nNext
,
n
StartCp
+
nTextLen
,
nCpOfs
);
bStartLine = ReadChars(l, nNext, n
TextEnd
, nCpOfs);
// If the previous paragraph was a dropcap then do not
// create a new txtnode and join the two paragraphs together
...
...
sw/source/filter/ww8/ww8par.hxx
Dosyayı görüntüle @
b4a71858
...
...
@@ -1416,8 +1416,8 @@ private:
void
ProcessAktCollChange
(
WW8PLCFManResult
&
rRes
,
bool
*
pStartAttr
,
bool
bCallProcessSpecial
);
long
ReadTextAttr
(
WW8_CP
&
rTextPos
,
bool
&
rbStartLine
);
void
ReadAttrs
(
WW8_CP
&
r
Next
,
WW8_CP
&
rTextPos
,
bool
&
rbStartLine
);
long
ReadTextAttr
(
WW8_CP
&
rTextPos
,
long
nTextEnd
,
bool
&
rbStartLine
);
void
ReadAttrs
(
WW8_CP
&
r
TextPos
,
WW8_CP
&
rNext
,
long
nTextEnd
,
bool
&
rbStartLine
);
void
CloseAttrEnds
();
bool
ReadText
(
WW8_CP
nStartCp
,
WW8_CP
nTextLen
,
ManTypes
nType
);
...
...
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