Kaydet (Commit) 96422e99 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Remove ptr_deque.hpp header include from vcl/outdev.hxx.

This header is also a very high impact header.

Change-Id: Iab63f2ec2edebc14b47820c6377a7f83131cfd06
üst 5c3f47e4
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <StaticGeometry.h> #include <StaticGeometry.h>
#include "glm/gtc/matrix_inverse.hpp" #include "glm/gtc/matrix_inverse.hpp"
#include <boost/checked_delete.hpp> #include <boost/checked_delete.hpp>
#include <boost/scoped_array.hpp>
#define DEBUG_FBO 0 #define DEBUG_FBO 0
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <svtools/AccessibleBrowseBoxObjType.hxx> #include <svtools/AccessibleBrowseBoxObjType.hxx>
#include <svtools/accessibletableprovider.hxx> #include <svtools/accessibletableprovider.hxx>
#include <vector> #include <vector>
#include <stack>
#include <limits.h> #include <limits.h>
#include <memory> #include <memory>
......
...@@ -49,14 +49,12 @@ ...@@ -49,14 +49,12 @@
# //some problem with MacOSX and a check define # //some problem with MacOSX and a check define
# undef check # undef check
#endif #endif
#include <boost/ptr_container/ptr_deque.hpp>
#include <boost/intrusive_ptr.hpp> #include <boost/intrusive_ptr.hpp>
#include <com/sun/star/drawing/LineCap.hpp> #include <com/sun/star/drawing/LineCap.hpp>
#include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Reference.h>
#include <vector> #include <vector>
#include <stack>
#if defined UNX #if defined UNX
#define GLYPH_FONT_HEIGHT 128 #define GLYPH_FONT_HEIGHT 128
...@@ -235,6 +233,7 @@ class Printer; ...@@ -235,6 +233,7 @@ class Printer;
class FontSelectPattern; class FontSelectPattern;
class ImplFontMetricData; class ImplFontMetricData;
class VCLXGraphics; class VCLXGraphics;
class OutDevStateStack;
typedef boost::intrusive_ptr< FontCharMap > FontCharMapPtr; typedef boost::intrusive_ptr< FontCharMap > FontCharMapPtr;
...@@ -270,7 +269,7 @@ private: ...@@ -270,7 +269,7 @@ private:
mutable PhysicalFontCollection* mpFontCollection; mutable PhysicalFontCollection* mpFontCollection;
mutable ImplGetDevFontList* mpGetDevFontList; mutable ImplGetDevFontList* mpGetDevFontList;
mutable ImplGetDevSizeList* mpGetDevSizeList; mutable ImplGetDevSizeList* mpGetDevSizeList;
boost::ptr_deque<OutDevState>* mpOutDevStateStack; OutDevStateStack* mpOutDevStateStack;
ImplOutDevData* mpOutDevData; ImplOutDevData* mpOutDevData;
std::vector< VCLXGraphics* >* mpUnoGraphicsList; std::vector< VCLXGraphics* >* mpUnoGraphicsList;
vcl::PDFWriterImpl* mpPDFWriter; vcl::PDFWriterImpl* mpPDFWriter;
......
...@@ -20,13 +20,12 @@ ...@@ -20,13 +20,12 @@
#ifndef INCLUDED_VCL_OUTDEVSTATE_HXX #ifndef INCLUDED_VCL_OUTDEVSTATE_HXX
#define INCLUDED_VCL_OUTDEVSTATE_HXX #define INCLUDED_VCL_OUTDEVSTATE_HXX
#include <sal/types.h>
#include <vcl/mapmod.hxx> #include <vcl/mapmod.hxx>
#include <vcl/region.hxx> #include <vcl/region.hxx>
#include <vcl/font.hxx> #include <vcl/font.hxx>
#include <vcl/vclenum.hxx> #include <vcl/vclenum.hxx>
#include <tools/solar.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <tools/color.hxx> #include <tools/color.hxx>
#include <tools/fontenum.hxx> #include <tools/fontenum.hxx>
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include <comphelper/servicehelper.hxx> #include <comphelper/servicehelper.hxx>
#include <memory> #include <memory>
#include <stack>
#include "mathmlexport.hxx" #include "mathmlexport.hxx"
#include "register.hxx" #include "register.hxx"
......
...@@ -224,6 +224,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -224,6 +224,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/source/edit/xtextedt \ vcl/source/edit/xtextedt \
vcl/source/outdev/outdev \ vcl/source/outdev/outdev \
vcl/source/outdev/outdevstate \ vcl/source/outdev/outdevstate \
vcl/source/outdev/outdevstatestack \
vcl/source/outdev/clipping \ vcl/source/outdev/clipping \
vcl/source/outdev/polygon \ vcl/source/outdev/polygon \
vcl/source/outdev/transparent \ vcl/source/outdev/transparent \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_VCL_OUTDEVSTATESTACK_HXX
#define INCLUDED_VCL_OUTDEVSTATESTACK_HXX
#include <vcl/outdevstate.hxx>
#include <boost/ptr_container/ptr_deque.hpp>
class OutDevStateStack
{
typedef boost::ptr_deque<OutDevState> DataType;
DataType maData;
public:
bool empty() const;
size_t size() const;
void push_back( OutDevState* p );
void pop_back();
OutDevState& back();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#endif #endif
#include <algorithm> #include <algorithm>
#include <boost/scoped_array.hpp>
#ifdef DEBUG #ifdef DEBUG
//#define MULTI_SL_DEBUG //#define MULTI_SL_DEBUG
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <window.h> #include <window.h>
#include <outdev.h> #include <outdev.h>
#include <outdata.hxx> #include <outdata.hxx>
#include <outdevstatestack.hxx>
#include "PhysicalFontCollection.hxx" #include "PhysicalFontCollection.hxx"
...@@ -95,7 +96,7 @@ OutputDevice::OutputDevice() : ...@@ -95,7 +96,7 @@ OutputDevice::OutputDevice() :
mpFontCollection = NULL; mpFontCollection = NULL;
mpGetDevFontList = NULL; mpGetDevFontList = NULL;
mpGetDevSizeList = NULL; mpGetDevSizeList = NULL;
mpOutDevStateStack = new boost::ptr_deque<OutDevState>(); mpOutDevStateStack = new OutDevStateStack;
mpPDFWriter = NULL; mpPDFWriter = NULL;
mpAlphaVDev = NULL; mpAlphaVDev = NULL;
mpExtOutDevData = NULL; mpExtOutDevData = NULL;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/types.h> #include <vcl/outdevstate.hxx>
#include <vcl/outdev.hxx> #include <vcl/outdev.hxx>
#include <vcl/virdev.hxx> #include <vcl/virdev.hxx>
...@@ -33,10 +33,9 @@ ...@@ -33,10 +33,9 @@
#include <tools/color.hxx> #include <tools/color.hxx>
#include <tools/fontenum.hxx> #include <tools/fontenum.hxx>
#include <vcl/outdevstate.hxx>
#include "outdev.h" #include "outdev.h"
#include "outdata.hxx" #include "outdata.hxx"
#include <outdevstatestack.hxx>
#include "salgdi.hxx" #include "salgdi.hxx"
#include "sallayout.hxx" #include "sallayout.hxx"
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <outdevstatestack.hxx>
bool OutDevStateStack::empty() const
{
return maData.empty();
}
size_t OutDevStateStack::size() const
{
return maData.size();
}
void OutDevStateStack::push_back( OutDevState* p )
{
maData.push_back(p);
}
void OutDevStateStack::pop_back()
{
maData.pop_back();
}
OutDevState& OutDevStateStack::back()
{
return maData.back();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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