Kaydet (Commit) 0e791f4e authored tarafından Adrien Ollier's avatar Adrien Ollier Kaydeden (comit) Stephan Bergmann

tdf#74702 partial cleanup of OutDevType

XParaPortionList::RefDevIsVirtual() does not depend on eRefDevType

Change-Id: I22182bbe26502552125d24aa1a8c33ffb5a38971
Signed-off-by: 's avatarAdrien Ollier <adr.ollier@hotmail.fr>
Reviewed-on: https://gerrit.libreoffice.org/71649
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 7764439f
......@@ -91,8 +91,7 @@ void XEditAttribute::SetItem(const SfxPoolItem& rNew)
XParaPortionList::XParaPortionList(
OutputDevice* pRefDev, sal_uLong nPW, sal_uInt16 _nStretchX, sal_uInt16 _nStretchY)
: nRefDevPtr(pRefDev)
, eRefDevType(pRefDev->GetOutDevType())
: pRefDevPtr(pRefDev)
, aRefMapMode(pRefDev->GetMapMode())
, nStretchX(_nStretchX)
, nStretchY(_nStretchY)
......
......@@ -96,8 +96,7 @@ class XParaPortionList
typedef std::vector<std::unique_ptr<XParaPortion> > ListType;
ListType maList;
VclPtr<OutputDevice> nRefDevPtr;
OutDevType eRefDevType;
VclPtr<OutputDevice> pRefDevPtr;
MapMode aRefMapMode;
sal_uInt16 nStretchX;
sal_uInt16 nStretchY;
......@@ -109,10 +108,9 @@ public:
void push_back(XParaPortion* p);
const XParaPortion& operator[](size_t i) const;
OutputDevice* GetRefDevPtr() const { return nRefDevPtr; }
OutputDevice* GetRefDevPtr() const { return pRefDevPtr; }
sal_uLong GetPaperWidth() const { return nPaperWidth; }
bool RefDevIsVirtual() const
{ return (eRefDevType == OUTDEV_VIRDEV) || (eRefDevType == OUTDEV_PDF); }
bool RefDevIsVirtual() const {return pRefDevPtr->IsVirtual();}
const MapMode& GetRefMapMode() const { return aRefMapMode; }
sal_uInt16 GetStretchX() const { return nStretchX; }
sal_uInt16 GetStretchY() const { return nStretchY; }
......
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