Kaydet (Commit) 81819527 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fraction: Revert "do not forward-declare templates"

This reverts commit 091742e8.
üst dc90c5a3
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#ifndef INCLUDED_SFX2_IPCLIENT_HXX #ifndef INCLUDED_SFX2_IPCLIENT_HXX
#define INCLUDED_SFX2_IPCLIENT_HXX #define INCLUDED_SFX2_IPCLIENT_HXX
#include <boost/rational.hpp>
#include <sal/config.h> #include <sal/config.h>
#include <sfx2/dllapi.h> #include <sfx2/dllapi.h>
#include <sal/types.h> #include <sal/types.h>
...@@ -36,6 +34,9 @@ class SfxInPlaceClient_Impl; ...@@ -36,6 +34,9 @@ class SfxInPlaceClient_Impl;
class SfxViewShell; class SfxViewShell;
class SfxObjectShell; class SfxObjectShell;
namespace vcl { class Window; } namespace vcl { class Window; }
namespace boost { template<typename T> class rational; }
class SFX2_DLLPUBLIC SfxInPlaceClient class SFX2_DLLPUBLIC SfxInPlaceClient
{ {
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#ifndef INCLUDED_SFX2_VIEWFRM_HXX #ifndef INCLUDED_SFX2_VIEWFRM_HXX
#define INCLUDED_SFX2_VIEWFRM_HXX #define INCLUDED_SFX2_VIEWFRM_HXX
#include <boost/rational.hpp>
#include <sal/config.h> #include <sal/config.h>
#include <sfx2/dllapi.h> #include <sfx2/dllapi.h>
#include <sal/types.h> #include <sal/types.h>
...@@ -45,6 +43,7 @@ class SfxProgress; ...@@ -45,6 +43,7 @@ class SfxProgress;
class SvData; class SvData;
class SfxViewShell; class SfxViewShell;
class SystemWindow; class SystemWindow;
namespace boost { template<typename T> class rational; }
class Point; class Point;
class Size; class Size;
class SfxChildWindow; class SfxChildWindow;
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <tools/errcode.hxx> #include <tools/errcode.hxx>
#include <vcl/jobset.hxx> #include <vcl/jobset.hxx>
#include <boost/rational.hpp>
#include <vector> #include <vector>
class SfxBaseController; class SfxBaseController;
class Size; class Size;
namespace boost { template<typename T> class rational; }
namespace vcl { class Window; } namespace vcl { class Window; }
class KeyEvent; class KeyEvent;
class WorkWindow; class WorkWindow;
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
#include <svtools/svtdllapi.h> #include <svtools/svtdllapi.h>
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <boost/rational.hpp>
#include <vector> #include <vector>
class Point; class Point;
class Rectangle; class Rectangle;
class Size; class Size;
namespace boost { template<typename T> class rational; }
class IMapObject; class IMapObject;
typedef ::std::vector< IMapObject* > IMapObjectList_impl; typedef ::std::vector< IMapObject* > IMapObjectList_impl;
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
#ifndef INCLUDED_SVTOOLS_IMAPCIRC_HXX #ifndef INCLUDED_SVTOOLS_IMAPCIRC_HXX
#define INCLUDED_SVTOOLS_IMAPCIRC_HXX #define INCLUDED_SVTOOLS_IMAPCIRC_HXX
#include <boost/rational.hpp>
#include <svtools/svtdllapi.h> #include <svtools/svtdllapi.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <svtools/imapobj.hxx> #include <svtools/imapobj.hxx>
namespace boost { template<typename T> class rational; }
class SVT_DLLPUBLIC IMapCircleObject : public IMapObject class SVT_DLLPUBLIC IMapCircleObject : public IMapObject
{ {
Point aCenter; Point aCenter;
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
#ifndef INCLUDED_SVTOOLS_IMAPPOLY_HXX #ifndef INCLUDED_SVTOOLS_IMAPPOLY_HXX
#define INCLUDED_SVTOOLS_IMAPPOLY_HXX #define INCLUDED_SVTOOLS_IMAPPOLY_HXX
#include <boost/rational.hpp>
#include <svtools/svtdllapi.h> #include <svtools/svtdllapi.h>
#include <svtools/imapobj.hxx> #include <svtools/imapobj.hxx>
#include <tools/poly.hxx> #include <tools/poly.hxx>
namespace boost { template<typename T> class rational; }
class SVT_DLLPUBLIC IMapPolygonObject : public IMapObject class SVT_DLLPUBLIC IMapPolygonObject : public IMapObject
{ {
Polygon aPoly; Polygon aPoly;
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
#ifndef INCLUDED_SVTOOLS_IMAPRECT_HXX #ifndef INCLUDED_SVTOOLS_IMAPRECT_HXX
#define INCLUDED_SVTOOLS_IMAPRECT_HXX #define INCLUDED_SVTOOLS_IMAPRECT_HXX
#include <boost/rational.hpp>
#include <svtools/svtdllapi.h> #include <svtools/svtdllapi.h>
#include <svtools/imapobj.hxx> #include <svtools/imapobj.hxx>
#include <tools/gen.hxx> #include <tools/gen.hxx>
namespace boost { template<typename T> class rational; }
class SVT_DLLPUBLIC IMapRectangleObject : public IMapObject class SVT_DLLPUBLIC IMapRectangleObject : public IMapObject
{ {
Rectangle aRect; Rectangle aRect;
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef INCLUDED_SVX_SDR_PROPERTIES_PROPERTIES_HXX #ifndef INCLUDED_SVX_SDR_PROPERTIES_PROPERTIES_HXX
#define INCLUDED_SVX_SDR_PROPERTIES_PROPERTIES_HXX #define INCLUDED_SVX_SDR_PROPERTIES_PROPERTIES_HXX
#include <boost/rational.hpp>
#include <sal/types.h> #include <sal/types.h>
#include <svx/svxdllapi.h> #include <svx/svxdllapi.h>
...@@ -32,6 +30,7 @@ class SdrObject; ...@@ -32,6 +30,7 @@ class SdrObject;
class SfxItemSet; class SfxItemSet;
class SfxPoolItem; class SfxPoolItem;
class SfxStyleSheet; class SfxStyleSheet;
namespace boost { template<typename T> class rational; }
class SfxItemPool; class SfxItemPool;
class SdrModel; class SdrModel;
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <vector> #include <vector>
#include <boost/intrusive_ptr.hpp> #include <boost/intrusive_ptr.hpp>
#include <boost/rational.hpp>
#include <mdds/flat_segment_tree.hpp> #include <mdds/flat_segment_tree.hpp>
namespace editeng { class SvxBorderLine; } namespace editeng { class SvxBorderLine; }
...@@ -70,6 +69,7 @@ class RefMovedHint; ...@@ -70,6 +69,7 @@ class RefMovedHint;
} }
namespace boost { template<typename T> class rational; }
class OutputDevice; class OutputDevice;
class SfxItemPoolCache; class SfxItemPoolCache;
class SvtListener; class SvtListener;
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef INCLUDED_SC_INC_PATATTR_HXX #ifndef INCLUDED_SC_INC_PATATTR_HXX
#define INCLUDED_SC_INC_PATATTR_HXX #define INCLUDED_SC_INC_PATATTR_HXX
#include <boost/rational.hpp>
#include <svl/poolitem.hxx> #include <svl/poolitem.hxx>
#include <svl/itemset.hxx> #include <svl/itemset.hxx>
#include <unotools/fontcvt.hxx> #include <unotools/fontcvt.hxx>
...@@ -30,6 +28,7 @@ ...@@ -30,6 +28,7 @@
namespace vcl { class Font; } namespace vcl { class Font; }
class OutputDevice; class OutputDevice;
namespace boost { template<class T> class rational; }
class ScStyleSheet; class ScStyleSheet;
class SvNumberFormatter; class SvNumberFormatter;
class ScDocument; class ScDocument;
......
...@@ -20,10 +20,9 @@ ...@@ -20,10 +20,9 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_DRAWUTIL_HXX #ifndef INCLUDED_SC_SOURCE_UI_INC_DRAWUTIL_HXX
#define INCLUDED_SC_SOURCE_UI_INC_DRAWUTIL_HXX #define INCLUDED_SC_SOURCE_UI_INC_DRAWUTIL_HXX
#include <boost/rational.hpp>
#include "address.hxx" #include "address.hxx"
namespace boost { template<typename T> class rational; }
class OutputDevice; class OutputDevice;
class ScDocument; class ScDocument;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project. * This file is part of the LibreOffice project.
* *
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
...@@ -19,8 +20,6 @@ ...@@ -19,8 +20,6 @@
#ifndef INCLUDED_SVX_INC_SDR_PROPERTIES_ITEMSETTOOLS_HXX #ifndef INCLUDED_SVX_INC_SDR_PROPERTIES_ITEMSETTOOLS_HXX
#define INCLUDED_SVX_INC_SDR_PROPERTIES_ITEMSETTOOLS_HXX #define INCLUDED_SVX_INC_SDR_PROPERTIES_ITEMSETTOOLS_HXX
#include <boost/rational.hpp>
#include <sal/types.h> #include <sal/types.h>
...@@ -29,6 +28,8 @@ ...@@ -29,6 +28,8 @@
class SdrObject; class SdrObject;
class SfxItemSet; class SfxItemSet;
class Rectangle; class Rectangle;
namespace boost { template<class T> class rational; }
// class to remember broadcast start positions // class to remember broadcast start positions
namespace sdr namespace sdr
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
// template class <std::vector> // template class <std::vector>
#include <vector> #include <vector>
#include <boost/rational.hpp>
// datatypes sal_xyz // datatypes sal_xyz
#include <sal/types.h> #include <sal/types.h>
// classes <Point>, <Size> and <Rectangle> // classes <Point>, <Size> and <Rectangle>
...@@ -33,6 +32,7 @@ ...@@ -33,6 +32,7 @@
class SwViewShell; class SwViewShell;
class SwRootFrm; class SwRootFrm;
class SwPageFrm; class SwPageFrm;
namespace boost { template<typename T> class rational; }
struct PreviewPage; struct PreviewPage;
/** page preview functionality in the writer /** page preview functionality in the writer
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <vcl/timer.hxx> #include <vcl/timer.hxx>
#include <swrect.hxx> #include <swrect.hxx>
#include <swtypes.hxx> #include <swtypes.hxx>
#include <boost/rational.hpp>
#include <vector> #include <vector>
class SwViewShell; class SwViewShell;
...@@ -41,6 +40,7 @@ class SwPageFrm; ...@@ -41,6 +40,7 @@ class SwPageFrm;
class SwRegionRects; class SwRegionRects;
class SwAccessibleMap; class SwAccessibleMap;
class SdrObject; class SdrObject;
namespace boost { template<typename T> class rational; }
class SwPrintData; class SwPrintData;
class SwPagePreviewLayout; class SwPagePreviewLayout;
struct PreviewPage; struct PreviewPage;
......
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