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
ad3fcbb5
Kaydet (Commit)
ad3fcbb5
authored
Ara 26, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: turn RTFBmpStyle into a C++11 scoped enumeration
Change-Id: Idbb1b2f2573d5c807d647bc1ecfee3da82be5574
üst
abbfb33c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+4
-4
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+5
-5
No files found.
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
ad3fcbb5
...
...
@@ -776,7 +776,7 @@ RTFError RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing
pExtHeader
=
nullptr
;
OUString
aGraphicUrl
=
m_pGraphicHelper
->
importGraphicObject
(
xInputStream
,
pExtHeader
);
if
(
m_aStates
.
top
().
aPicture
.
nStyle
!=
BMPSTYLE_
NONE
)
if
(
m_aStates
.
top
().
aPicture
.
eStyle
!=
RTFBmpStyle
::
NONE
)
{
// In case of PNG/JPEG, the real size is known, don't use the values
// provided by picw and pich.
...
...
@@ -3294,10 +3294,10 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
// Noop, this is the default in Writer.
break
;
case
RTF_PNGBLIP
:
m_aStates
.
top
().
aPicture
.
nStyle
=
BMPSTYLE_
PNG
;
m_aStates
.
top
().
aPicture
.
eStyle
=
RTFBmpStyle
::
PNG
;
break
;
case
RTF_JPEGBLIP
:
m_aStates
.
top
().
aPicture
.
nStyle
=
BMPSTYLE_
JPEG
;
m_aStates
.
top
().
aPicture
.
eStyle
=
RTFBmpStyle
::
JPEG
;
break
;
case
RTF_POSYT
:
m_aStates
.
top
().
aFrame
.
setSprm
(
NS_ooxml
::
LN_CT_FramePr_yAlign
,
NS_ooxml
::
LN_Value_doc_ST_YAlign_top
);
...
...
@@ -6208,7 +6208,7 @@ RTFPicture::RTFPicture()
nCropL
(
0
),
nCropR
(
0
),
eWMetafile
(
0
),
nStyle
(
BMPSTYLE_
NONE
)
eStyle
(
RTFBmpStyle
::
NONE
)
{
}
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
ad3fcbb5
...
...
@@ -69,11 +69,11 @@ enum RTFFormFieldTypes
FORMFIELD_LIST
};
enum
RTFBmpStyles
enum
class
RTFBmpStyle
{
BMPSTYLE_
NONE
,
BMPSTYLE_
PNG
,
BMPSTYLE_
JPEG
NONE
,
PNG
,
JPEG
};
enum
RTFFieldStatus
...
...
@@ -173,7 +173,7 @@ public:
sal_uInt16
nScaleX
,
nScaleY
;
short
nCropT
,
nCropB
,
nCropL
,
nCropR
;
sal_uInt16
eWMetafile
;
RTFBmpStyle
s
n
Style
;
RTFBmpStyle
e
Style
;
};
class
RTFParserState
;
...
...
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