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
83f3cefa
Kaydet (Commit)
83f3cefa
authored
Ock 13, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unusedmethods unused return value in writerfilter/
Change-Id: I0eef0cb336a2d9450ede01c8fe1c02fbd3b2b57f
üst
5b5f3ccd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+5
-7
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+1
-1
No files found.
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
83f3cefa
...
@@ -741,7 +741,7 @@ void RTFDocumentImpl::resolve(Stream& rMapper)
...
@@ -741,7 +741,7 @@ void RTFDocumentImpl::resolve(Stream& rMapper)
}
}
}
}
RTFError
RTFDocumentImpl
::
resolvePict
(
bool
const
bInline
,
uno
::
Reference
<
drawing
::
XShape
>
const
&
i_xShape
)
void
RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing::XShape> const& i_xShape)
{
{
SvMemoryStream aStream;
SvMemoryStream aStream;
SvStream* pStream = nullptr;
SvStream* pStream = nullptr;
...
@@ -761,7 +761,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
...
@@ -761,7 +761,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
b = b << 4;
b = b << 4;
sal_Int8 parsed = RTFTokenizer::asHex(ch);
sal_Int8 parsed = RTFTokenizer::asHex(ch);
if (parsed == -1)
if (parsed == -1)
return
RTFError
::
HEX_INVALID
;
return;
b += parsed;
b += parsed;
count--;
count--;
if (!count)
if (!count)
...
@@ -778,7 +778,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
...
@@ -778,7 +778,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
if (!pStream->Tell())
if (!pStream->Tell())
// No destination text? Then we'll get it later.
// No destination text? Then we'll get it later.
return
RTFError
::
OK
;
return;
// Store, and get its URL.
// Store, and get its URL.
pStream->Seek(0);
pStream->Seek(0);
...
@@ -866,7 +866,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
...
@@ -866,7 +866,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
auto pShapeValue = std::make_shared<RTFValue>(xShape);
auto pShapeValue = std::make_shared<RTFValue>(xShape);
m_aObjectAttributes.set(NS_ooxml::LN_shape, pShapeValue);
m_aObjectAttributes.set(NS_ooxml::LN_shape, pShapeValue);
return
RTFError
::
OK
;
return;
}
}
if (xPropertySet.is())
if (xPropertySet.is())
...
@@ -877,7 +877,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
...
@@ -877,7 +877,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
// Send the shape directly, no section is started, to additional properties will be ignored anyway.
// Send the shape directly, no section is started, to additional properties will be ignored anyway.
Mapper().startShape(xShape);
Mapper().startShape(xShape);
Mapper().endShape();
Mapper().endShape();
return
RTFError
::
OK
;
return;
}
}
// Send it to the dmapper.
// Send it to the dmapper.
...
@@ -1013,8 +1013,6 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
...
@@ -1013,8 +1013,6 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
auto pValue = std::make_shared<RTFValue>(aAttributes, aSprms);
auto pValue = std::make_shared<RTFValue>(aAttributes, aSprms);
m_aStates.top().pCurrentBuffer->push_back(Buf_t(BUFFER_PROPS, pValue));
m_aStates.top().pCurrentBuffer->push_back(Buf_t(BUFFER_PROPS, pValue));
}
}
return
RTFError
::
OK
;
}
}
RTFError RTFDocumentImpl::resolveChars(char ch)
RTFError RTFDocumentImpl::resolveChars(char ch)
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
83f3cefa
...
@@ -373,7 +373,7 @@ public:
...
@@ -373,7 +373,7 @@ public:
bool
isInBackground
();
bool
isInBackground
();
void
setDestinationText
(
OUString
&
rString
);
void
setDestinationText
(
OUString
&
rString
);
/// Resolve a picture: If not inline, then anchored.
/// Resolve a picture: If not inline, then anchored.
RTFError
resolvePict
(
bool
bInline
,
css
::
uno
::
Reference
<
css
::
drawing
::
XShape
>
const
&
xShape
);
void
resolvePict
(
bool
bInline
,
css
::
uno
::
Reference
<
css
::
drawing
::
XShape
>
const
&
xShape
);
/// If this is the first run of the document, starts the initial paragraph.
/// If this is the first run of the document, starts the initial paragraph.
void
checkFirstRun
();
void
checkFirstRun
();
...
...
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