Kaydet (Commit) 17c86785 authored tarafından Alexandre Vicenzi's avatar Alexandre Vicenzi Kaydeden (comit) Caolán McNamara

fdo#63154 Remove old solar.h references

Remove some unused references in tools.
Change sal_uLong to sal_uInt32 in filter and vcl.

Change-Id: I92b928b980b2e7371edddfd74face10d5bec07df
Reviewed-on: https://gerrit.libreoffice.org/8480Tested-by: 's avatarLibreOffice gerrit bot <gerrit@libreoffice.org>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c95abf20
...@@ -221,7 +221,7 @@ LineInfo DXFTransform::Transform(const DXFLineInfo& aDXFLineInfo) const ...@@ -221,7 +221,7 @@ LineInfo DXFTransform::Transform(const DXFLineInfo& aDXFLineInfo) const
return aLineInfo; return aLineInfo;
} }
sal_uLong DXFTransform::TransLineWidth(double fW) const sal_uInt32 DXFTransform::TransLineWidth(double fW) const
{ {
double fex,fey; double fex,fey;
...@@ -229,7 +229,7 @@ sal_uLong DXFTransform::TransLineWidth(double fW) const ...@@ -229,7 +229,7 @@ sal_uLong DXFTransform::TransLineWidth(double fW) const
fey=sqrt(aMY.fx*aMY.fx + aMY.fy*aMY.fy); fey=sqrt(aMY.fx*aMY.fx + aMY.fy*aMY.fy);
// ### // ###
// printf("fex=%f fey=%f\n", fex, fey); // printf("fex=%f fey=%f\n", fex, fey);
return (sal_uLong)(fabs(fW)*(fex+fey)/2.0+0.5); return (sal_uInt32)(fabs(fW)*(fex+fey)/2.0+0.5);
} }
......
...@@ -148,7 +148,7 @@ public: ...@@ -148,7 +148,7 @@ public:
// arbitrary position would be created, sal_False is returned. // arbitrary position would be created, sal_False is returned.
// (The center point will not be transformed, use Transform(..)) // (The center point will not be transformed, use Transform(..))
sal_uLong TransLineWidth(double fW) const; sal_uInt32 TransLineWidth(double fW) const;
// Transforms the thickness of a line (as good as possible) // Transforms the thickness of a line (as good as possible)
double CalcRotAngle() const; double CalcRotAngle() const;
......
...@@ -26,11 +26,12 @@ ...@@ -26,11 +26,12 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <sal/types.h> #include <sal/types.h>
#include <vcl/metric.hxx> #include <vcl/metric.hxx>
#include <tools/solar.h>
class ImplFontListNameInfo; class ImplFontListNameInfo;
class OutputDevice; class OutputDevice;
/************************************************************************* /*
Beschreibung Beschreibung
============ ============
...@@ -130,10 +131,7 @@ Point. Der letzte Wert des Array ist 0. Das Array, was zurueckgegeben wird, ...@@ -130,10 +131,7 @@ Point. Der letzte Wert des Array ist 0. Das Array, was zurueckgegeben wird,
wird von der FontList wieder zerstoert. Nach dem Aufruf der naechsten Methode wird von der FontList wieder zerstoert. Nach dem Aufruf der naechsten Methode
von der FontList, sollte deshalb das Array nicht mehr referenziert werden. von der FontList, sollte deshalb das Array nicht mehr referenziert werden.
*************************************************************************/ */
// - FontList -
#define FONTLIST_FONTINFO_NOTFOUND ((sal_uInt16)0xFFFF) #define FONTLIST_FONTINFO_NOTFOUND ((sal_uInt16)0xFFFF)
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#define INCLUDED_TOOLS_FONTENUM_HXX #define INCLUDED_TOOLS_FONTENUM_HXX
#include <sal/types.h> #include <sal/types.h>
#include <tools/solar.h>
#ifndef ENUM_FONTFAMILY_DECLARED #ifndef ENUM_FONTFAMILY_DECLARED
#define ENUM_FONTFAMILY_DECLARED #define ENUM_FONTFAMILY_DECLARED
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#define INCLUDED_TOOLS_FRACT_HXX #define INCLUDED_TOOLS_FRACT_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/solar.h>
class SvStream; class SvStream;
......
...@@ -37,7 +37,7 @@ class SvStream; ...@@ -37,7 +37,7 @@ class SvStream;
class Impl_Gradient class Impl_Gradient
{ {
public: public:
sal_uLong mnRefCount; sal_uInt32 mnRefCount;
GradientStyle meStyle; GradientStyle meStyle;
Color maStartColor; Color maStartColor;
Color maEndColor; Color maEndColor;
......
...@@ -33,7 +33,7 @@ class SvStream; ...@@ -33,7 +33,7 @@ class SvStream;
struct ImplHatch struct ImplHatch
{ {
sal_uLong mnRefCount; sal_uInt32 mnRefCount;
Color maColor; Color maColor;
HatchStyle meStyle; HatchStyle meStyle;
long mnDistance; long mnDistance;
......
...@@ -35,7 +35,7 @@ namespace basegfx { class B2DPolyPolygon; } ...@@ -35,7 +35,7 @@ namespace basegfx { class B2DPolyPolygon; }
struct ImplLineInfo struct ImplLineInfo
{ {
sal_uLong mnRefCount; sal_uInt32 mnRefCount;
LineStyle meStyle; LineStyle meStyle;
long mnWidth; long mnWidth;
sal_uInt16 mnDashCount; sal_uInt16 mnDashCount;
......
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