Kaydet (Commit) ad3fcbb5 authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: turn RTFBmpStyle into a C++11 scoped enumeration

Change-Id: Idbb1b2f2573d5c807d647bc1ecfee3da82be5574
üst abbfb33c
......@@ -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)
{
}
......
......@@ -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;
RTFBmpStyles nStyle;
RTFBmpStyle eStyle;
};
class RTFParserState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment